Logoff script
copy/y logoff.exe %WINDIR%\system32\GroupPolicy\User\Scripts\LogoffShutdown script
REG ADD "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System\Scripts\Logoff\0\0" /v Script /d logoff.exe /t REG_SZ /f
copy/y poweroff.exe %WINDIR%\system32\GroupPolicy\Machine\Scripts\Shutdown
REG ADD "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\System\Scripts\Shutdown\0\0" /v Script /d poweroff.exe /t REG_SZ /f
* /d 後也可直接用絕對路徑
Reference :
沒有留言:
張貼留言