Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Execute function from local script in the remote host. #135

Open
Corbent opened this issue Mar 13, 2023 · 0 comments
Open

[Question] Execute function from local script in the remote host. #135

Corbent opened this issue Mar 13, 2023 · 0 comments

Comments

@Corbent
Copy link

Corbent commented Mar 13, 2023

Greetings. Didn't know where to ask.

Let's say I have a ps1 script locally, and I need to run a function on the remote host.

Does this library provide a way to run said function in the remote in a way similar to how "Invoke-Command -ComputerName ServerName -FilePath c:\Scripts\scriptname.ps1" would in powershell?

Or do I need to copy the script into the host first, then use RunPSWithContextWithString to run it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant