Hi, i have a logoff script set by Group Policy.
Script is a bat file which creates a log file, copies a powershell script locally and the runs the powershell script and deletes it again.
It works fine in 32 machines but not in the new 64 bit machines..
The .ver file gets created but it doesn't run the powershell bit.
If i go to the share and run the bat file it works!
Any idea why?
Script runs from \\DFSShare\logoff.bat
Script below..
echo. 2>c:\temp\%time:~0,2%%time:~3,2%%time:~6,2%_%date:~-10,2%%date:~-7,2%%date:~-4,4%.ver
DEL c:\temp\powershell.ps1
xcopy \\DFSShare\logoff.ps1 c:\temp\ /a
powershell.exe c:\temp\logoff.ps1
DEL c:\temp\logoff.ps1
Thanks