Grab our RSS feeds Follow us on Twitter Join our Facebook Group Connect with us on LinkedIn
myITforum.com, Powered by You.
you are not logged in

Articles

Newslinks

Links

Downloads

Site Services

Community Forums

Discussion Lists

Article Search

Newsletter

Web Blogs

FAQs

Live Support

myITforum TV

Take a Poll

Monthly Drawing

myITforum Network

User Group Directory

Our Partners

About Us

Register

Login

BRONZE PARTNER:

BRONZE PARTNER:



Industry News:




  Home : Articles : Scripting print | email | | Forums |   print | email | | Blogs |   print | email | | Wiki |   print | email | | FAQs |   print | email | Article Search  
Auto-Run SysPrep


Bookmark and Share

By: Rod Trent
Posted On: 5/16/2002

This script creates a shortcut to Sysprep in the computer's Startup folder to initiate the Sysprep process.

Copy and paste the following script (between the lines) into Notepad, making sure to have Word Wrap disabled, then save it with a .vbs extension.

==================================
On Error Resume Next

'get main objects/variables
set ws = WScript.CreateObject("WScript.Shell")
strStartup = ws.SpecialFolders ( "Startup" )
Set oSCut = ws.CreateShortcut ( strStartup & "\Sysprep.lnk" )

'set shortcut properties
oSCut.TargetPath = "c:\sysprep\sysprep.exe"
oSCut.Arguments = "-quiet -nosidgen -reboot"
oSCut.WorkingDirectory = "c:\sysprep"

'save shortcut
oSCut.Save
==================================

NOTE: Make sure you have the latest scripting engines on the workstation you run this script from. Download the latest scripting engines here: Microsoft Scripting Home Page

  myITforum.com ©2010 | Legal | Privacy