I am trying to get a Powershell startup script to run on windows XP and nothing seem to happen. The Domain is a single Windows 2008 R2 server with one WXP and one Windows 7. The script runs fine manually on both systems.
I started by using the Powershell tab in the GPO. This worked fine for the Windows 7 workstation. The script ran correctly on reboot. but when I put the Windows XP in the same OU, nothing happend. The first thing the script does it write an message to the event log and I never see it on Windows XP.
The next thing I tried was to wrapper the powershell script in a .Bat file and move the bat file to the Scripts Tab in the GPO. I put the actual powershell script in the netlogon share and the startup.bat file is a single line showed below.
powershell -noexit -file \\%userdomain%\netlogon\startup.ps1
Again, I tested the Bat file manually on both machines (WXP and W7) and it ran successfully. I restarted the Windows 7 box and the Startup script ran successfully. I restarted the WXP and got nothing.
So my question is, can you run a Powershell script on windows XP? If so how? Thanks in advance.
Roger
Roger