Use Invoke Powershell Activity to execute a single command

Can someone please show me how to use the Invoke Powershell activity to run a simple command like

NET USE G: \somenetworkpath mypassword /USER:myusername\mydomain

So i can create a mapped drive.

Running the exact command above gives an error.
Invoke Power Shell: The term ‘NET USE G: \somenetworkpath mypassword /USER:myusername\mydomain’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

All I had to do is check the IsScript checkbox!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.