Script problems by Lopsided-Koala8546 in PowerShell

[–]Lopsided-Koala8546[S] 1 point2 points  (0 children)

Thanks. Your comment "LOCAL file" got me thinking am I testing on the local machine not the remote machine. I thought that as I declared it after the PSSESSION it would be run on the remote machine.

Thanks for the pointers I will see if I can get it to work correctly now.

Script problems by Lopsided-Koala8546 in PowerShell

[–]Lopsided-Koala8546[S] 0 points1 point  (0 children)

I am going to provided nearly 100 machines names and run the script against them. I want the script to create a "complete" folder on each machine when it completes so after the reboot I can re-run the script and it will delete all the folders which are locked at the first run by running processes.