Let's create a simple script make computer tell hour while you logoff.
Objective: understanding about using Local Group Policy Editor.
Creating Batch file with VBScript
1. open notepad for writing script below:
cscript %userprofile%\desktop\time.vbs
2. then save as batch file "logoff.batch".
Local Group Policy Editor
To open local group policy you can press Key Windows + R then type gpedit.msc.after that it will show popup of Local Group Policy. In the left side panel go to User Configuration -> Windows Setting -> Scripts (Logon/Logoff) then double click on Logoff to open property.
Watch this video:
No comments:
Post a Comment