Unsolved
This post is more than 5 years old
1 Rookie
•
72 Posts
0
1228
August 22nd, 2011 03:00
executing a powershell script as NW precmd
Hallo,
I have a problem. I try to execute a powershell script as precommand in savepnpc W2k8R2,
NW 7.6.2SP3. The ps scripts hangs.
Are there some special environment or call parameters neccessary? nsrexecd run as local
system. If it runs are local administrator the problem is the same.
regards
Bernd
No Events found!



ble1
2 Intern
•
14.3K Posts
0
August 22nd, 2011 06:00
How do you call it?
gotschy
1 Rookie
•
72 Posts
0
August 22nd, 2011 06:00
I call it from a batch file which is the precommand of savepnpc.
ble1
2 Intern
•
14.3K Posts
0
August 23rd, 2011 04:00
yeah yeah,ok, but how... I think you are pretty aware that calling a ps script does take some care (especially since env setting when called from savepnpc are tabula rasa)... An example on some pre-care taking can be found here: http://technet.microsoft.com/en-us/library/ee176949.aspx