Retrieve Network Logon?

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Dexter1
Pro Scripter
Posts: 64
Joined: Mon Jun 19, 2006 3:28 pm

Retrieve Network Logon?

Post by Dexter1 » Tue Feb 17, 2009 5:31 pm

I have a macro which uses different values in various parts of the job. I would like some of these to vary based on which user is running the macro. How can I retrieve the user's network logon name?
Thanks,
Josh

mpopkin
Newbie
Posts: 15
Joined: Wed Dec 17, 2008 5:56 pm

Post by mpopkin » Tue Feb 17, 2009 6:23 pm

use this system variable:

USER_NAME

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Tue Feb 17, 2009 9:51 pm

GetEnvVar>USER_NAME,vUserName
MessageModal>%vUserName% is currently logged in.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts