Windows 8 Setup Script

Microsoft Ms oem office pro 2007 v2
November 7, 2012 at 06:43:36
Specs: Windows 8, AMD Phenom 9600
Afternoon all

Would any of you good folk, be able to tell me how to automatically run a script after Windows 8 setup procedure completes?

i am wanting to run the following VB script:

'
' This script will create shortcuts in the Start Menu
' Written by Tor Fey Systems - 02/11/2012
' Version: 0.1
'
set WshShell = WScript.CreateObject("WScript.Shell")
strStartMenu = WshShell.SpecialFolders("StartMenu")
set oShellLink = WshShell.CreateShortcut(strStartMenu & "\Shutdown.lnk")
oShellLink.TargetPath = "%systemroot%\System32\shutdown.exe"
oShellLink.Arguments = "-s -t 0"
oShellLink.WindowStyle = 1
oShellLink.IconLocation = "%systemroot%\System32\shell32.dll,27"
oShellLink.Description = "Shutdown Computer (Power Off)"
oShellLink.WorkingDirectory = "%systemroot%\System32\"
oShellLink.Save
Set oShellLink = Nothing
set oShellLink = WshShell.CreateShortcut(strStartMenu & "\Log Off.lnk")
oShellLink.TargetPath = "%systemroot%\System32\shutdown.exe"
oShellLink.Arguments = "-l"
oShellLink.WindowStyle = 1
oShellLink.IconLocation = "%systemroot%\System32\shell32.dll,44"
oShellLink.Description = "Log Off (Switch User)"
oShellLink.WorkingDirectory = "%systemroot%\System32\"
oShellLink.Save
Set oShellLink = Nothing
set oShellLink = WshShell.CreateShortcut(strStartMenu & "\Restart.lnk")
oShellLink.TargetPath = "%systemroot%\System32\shutdown.exe"
oShellLink.Arguments = "-r -t 0"
oShellLink.WindowStyle = 1
oShellLink.IconLocation = "%systemroot%\System32\shell32.dll,176"
oShellLink.Description = "Restart Computer (Reboot)"
oShellLink.WorkingDirectory = "%systemroot%\System32\"
oShellLink.Save
Set oShellLink = Nothing
Wscript.Echo "Created Shutdown, Restart and Log Off buttons"

Any help would greatly be appreciated.

Kind Regards
Tor Fey


See More: Windows 8 Setup Script

Report •

#1
November 20, 2012 at 22:16:52
You have to manually prepare windows 8 installer with MDT http://fix-target.com/microsoft-dep...

Report •

#2
November 20, 2012 at 23:34:23
Good Day

Why can't I add the scripts I want to the following command file/area:

%WINDIR%\Setup\Scripts\SetupComplete.cmd area.

After some research; it seems this would be the better solution rather than using MDT, as the idea; is to have the installation run from a DVD not a server?

Regards
Tor Fey


Report •
Related Solutions


Ask Question