Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Variable Values Lost When Executed via group policy shutdown

$
0
0

We're running windows 2008 R2, powershell v2.

I have a script that runs just fine when I execute it manually in powershell.

If I call the same script from the group policy, shutdown powershell scripts the variables within the script lose their values.

If I shutdown the server the scipt is executed but the values of the variables in the script are lost. There is no looping in the script.

Thanks,

Dan


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>