Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Worker identity of worker process (script)

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,61953
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Worker identity of worker process (script)
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Worker identity of worker process (script) - 6/28/2008 2:14:31 PM   
  deostroll

 

Posts: 18
Score: 0
Joined: 1/21/2008
Status: offline
I want to know if there is a way to find out under whose identity is a script running? For e.g. if I were to run my vbscripts from an iis virtual directory, then the identity (if the iis application is an asp.net application) would show ASP.NET. This is the default identity all asp.net applications runs under...

If "I" ran the script in my login it should show my name... Hope you get the point.
 
 
Post #: 1
 
 RE: Worker identity of worker process (script) - 6/29/2008 3:45:41 AM   
  yfki

 

Posts: 78
Score: 0
Joined: 12/12/2007
Status: offline
Maybe this will help


      

or


      

< Message edited by yfki -- 6/29/2008 3:47:09 AM >

(in reply to deostroll)
 
 
Post #: 2
 
 RE: Worker identity of worker process (script) - 6/29/2008 1:49:25 PM   
  deostroll

 

Posts: 18
Score: 0
Joined: 1/21/2008
Status: offline
I am getting an error at the following line:

Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")

It says "(null): 0x80041021"

(in reply to yfki)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Worker identity of worker process (script) Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts