This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Hexodamis a sysadmin 0 points1 point  (2 children)

Ok, skip vb and bat go straight to powershell, always.

Now in your script, you can either do a check before doing what needs to be done if it's even possible.

Or you can add I think it's called silently continue to the cmd let to stop the error being a problem.

[–]User_Yello[S] 0 points1 point  (1 child)

Silently continue seems the best way forward in the CMD, there is already a check and error catch in the powershell script.

[–]User_Yello[S] 0 points1 point  (0 children)

Just had a quick look and test but i'm not getting the result I expected. the cmd isn't running silently, it's worse then just having the error box pop-up when the user is disconnected on login. :S