0

How can Powershell script be invoked in a windows system from a unix system. I have a windows system, where the Powershell script has to run. This Powershell script must run only when it is invoked/called from another system which is a unix system. Is it possible to call a powershell script like that from a unix system. Please help me out.

2 Answers 2

1

You can try winexe.

winexe -U 'user%pass' //hostname 'powershell.exe my_power_script'

This assumes that your powershell script is located on the remote windows system.

Sign up to request clarification or add additional context in comments.

Comments

0

Powershell over ssh is one way - http://www.powershellinside.com/powershell/ssh/download.aspx

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.