JmcClain_MI Posted March 27, 2006 Posted March 27, 2006 Is it possible to add the computer description(under Network Identificiation) during the Sysprep Process?
tguy Posted March 27, 2006 Posted March 27, 2006 Sure you can use SYSPREP to execute a vbscript like this:Dim adsinfo,nwSet adsinfo = CreateObject("adsysteminfo")Set ThisComp = GetObject("LDAP://" & adsinfo.ComputerName)Set oUser = GetObject("LDAP://" & adsinfo.UserName)wscript.echo ThisComp.DescriptionThiscomp.put "description", oUser.department & "-" & adsinfo.UserNameThisComp.Setinfoto set the computer description. Call the vbScript from the GuiRunOnce section of the SYSPREP.INF file.
fizban2 Posted March 27, 2006 Posted March 27, 2006 Question:how is the script going to know what user name to load into the description, if done at GuiRunOnce won't it pickup either SYSTEM or the Administrator account?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now