Link to home
Create AccountLog in
Avatar of VIVEKANANDHAN_PERIASAMY
VIVEKANANDHAN_PERIASAMY

asked on

Vbscripting

I have windows 2000 ,2win2k3,win2k8 servers

I need to get all successful logins for past one month order by desc.
I have morethan 200 servers.How we get this info through vbscripting?
Avatar of David Lee
David Lee
Flag of United States of America image

This script should get the job done.

http://www.rlmueller.net/Programs/LastLogon.txt
Avatar of VIVEKANANDHAN_PERIASAMY
VIVEKANANDHAN_PERIASAMY

ASKER

I'm getting below error

---------------------------
Windows Script Host
---------------------------
Script:      F:\logins.vbs
Line:      28
Char:      1
Error:      The specified domain either does not exist or could not be contacted.
Code:      8007054B
Source:       (null)

---------------------------
OK  
---------------------------


I'M NOT QUERYING LDAP.I need to collect these info from remote server.
The only way I know of to get that information is to query Active Directory (LDAP).
Your error showing DC is not available. So please ensure you are  running this script in a domain member PC. with an enterprises log in user
Still i'm getting with same error.
ASKER CERTIFIED SOLUTION
Avatar of r_korinek
r_korinek
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer