Playing with Computers
My 2cent tips & tricks on computer technology & Application Virtualization ...
Monday, March 8, 2010
Tips: VBScript: Get Full NT User Name using VBScript
Set oNetwork = CreateObject("WScript.Network")
sDomain = "test"
sUser = "johri"
sADSPath= sDomain & "/" & sUser
Set oUser = GetObject("WinNT://" & sADSPath & ",user")
WScript.Echo oUser.FullName
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment