First Logon Batch Script

Yes it works, but I would look to have a few lines run at first logon as they wont work during post setup.
 
You can add the commands to the setupcomplete (Post-Setup page) or integrate to the registry with NTLite.

Code:
REG ADD HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce /v 1stcommand /d "command" /f

Code:
Windows Registry Editor Version 5.00

[HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce]
1stcommand="command"
 
You can add the commands to the setupcomplete (Post-Setup page) or integrate to the registry with NTLite.

Code:
REG ADD HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce /v 1stcommand /d "command" /f

Code:
Windows Registry Editor Version 5.00

[HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce]
1stcommand="command"

This worked, thanks.:)
 
Back
Top