Jump to content

Recommended Posts


Posted

Sure you can use SYSPREP to execute a vbscript like this:

Dim adsinfo,nw

Set adsinfo = CreateObject("adsysteminfo")

Set ThisComp = GetObject("LDAP://" & adsinfo.ComputerName)

Set oUser = GetObject("LDAP://" & adsinfo.UserName)

wscript.echo ThisComp.Description

Thiscomp.put "description", oUser.department & "-" & adsinfo.UserName

ThisComp.Setinfo

to set the computer description. Call the vbScript from the GuiRunOnce section of the SYSPREP.INF file.

Posted

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?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...