Windows NT Logon ID - VBScript

J

Josh

I am trying to retrieve the Windows NT Logon ID value from
a given PC, using VBScript code within an Outlook form
(not from the Outlook user profile as
in "Application.GetNamespace("MAPI").CurrentUser" but
rather from the hard drive registry.

If anyone could help me get that information, it would be
greatly appreciated.

Thanks,
Josh
 
K

Ken Slovak - [MVP - Outlook]

The WshNetwork class of IWshRuntimeLibrary (wshom.ocx) has UserDomain and
UserName properties you can get as string values.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top