| |
rruck
Posts: 1
Score: 0
Joined: 3/30/2004
From: USA
Status: offline
|
All, I am trying to retrieve the NT4 account description of a user logging on. I want this so that I can set the users ÓHome ServerÔ to map drives. I created the previous script in VBS and here is a snippet, Dim StrUser Dim StrComp Dim StrLoc Dim HomeServer 'Determine the homeserver & assign it to a variable to make script universal. set wshshell = wscript.createobject("wscript.shell") StrComp = wshshell.expandenvironmentstrings("%computername%") StrLoc = Left(StrComp, 3) If StrLoc = "TPA" then HomeServer = "\\TPAFS001" 'Tampa Server ElseIf StrLoc = "NYK" then HomeServer = "\\NYKFS001" 'New York Server This worked well with our workstation naming convention; the problem is we are now using Citrix servers and I want the code to work. If I use the account description, it will be independent of the userÒs computer and should work. The problem is, I canÒt figure out how to so this! In VBS, I want to grab the NT 4.0 account description and set it to a variable as I did with the computer name above. This is much easier with Windows 2000 AD; unfortunately I need it for NT4 Can anyone help with this? Much thanks in advance.
|
|