Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check if a DC is up.

Status
Not open for further replies.

GerritR

Technical User
Jun 18, 2002
41
NL
How can I check from the logonscript
if one of my dc's is down?

I need this to check before I map a drive to a share that is on this machine.
Just to not get error message's
 
Ping? or perhaps a simple AD query directly to it?

--------------------------------------------------------------------------------
dm4ever
My philosophy: K.I.S.S - Keep It Simple Stupid
 
You can just throw ON ERROR RESUME NEXT at the top of your script. If the script cant map it, it will just move on and not popup an error.

RoadKi11
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top