having problems getting my script to work. it fundamentally needs to copy an app folder from the server and drop it to the workstations, so I'm using a script to achieve this. however its throwing up multiple errors of the same type, weirdly some files copy ok.
I don't understand why you're putting in the username and password, your better option would be to use a scheduled task and then implement the username from there.
I'm launching the PowerShell script from our software deployment platform. The software determines the workstations to install on, whether its all of them or certain selected ones or even just one. the script remains the same.
Here is a script from the MS Gallery that will help.
In Powershell you can run other commands and use variables from powerhsell cmdlets to be passed to the command..
Thus, only leaving you with
Open in new window
Or do a run as on your powershell application.
Regards
Alex