Login

  • Thread starter Thread starter Jeet
  • Start date Start date
J

Jeet

Is there any way of scripting from which i could get the
user name as well as computer name (or IP address) where
the user get logs in.
 
You can use Wscript.CreateObject("Wscript.Network")

--
Regards
Christoffer Andersson
Microsoft MVP - Directory Services

No email replies please - reply in the newsgroup
 
Hi i m poor in scripting so could u please explain it that
how could i use this it will be a great help to me..
 
There is a scripting group here also, see if you can get more information
there.

To start it may can look like.


Dim net, DomainString, UserString

set net = Wscript.CreateObject("Wscript.Network")

DomainString = net.UserDomain ' DomainString return the domain name.

UserString = net.UserName ' UserString returnes the username.


--
Regards
Christoffer Andersson
Microsoft MVP - Directory Services

No email replies please - reply in the newsgroup
 

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

Back
Top