Slight code adjustment will help with this:
On error resume next <thing that might cause an error you don't want users to see> If err.num <> 0 Then Wscript.quit(1) End If Carl From: David Lum [mailto:david....@nwea.org] Sent: Wednesday, November 16, 2011 11:13 AM To: NT System Admin Issues Subject: A hump-day puzzler Deployed the nifty "update machine description in AD" VBScript and it works great! This morning, my director got this puzzling message (puzzling because you need to hit a DC for this GPO to run). The GPO has been rolled out for weeks and today is the first time she's seen this message, but I can see from AD it was successful yesterday. "Windows Script Host" Script: \\ <file:///\\%3cdomain\sysvol\domain\policies\> <domain\sysvol\domain\policies\ > Line: 4 Char: 5 Error: The specified domain either does not exist or could not be contacted Code: 80070548 Source: (null) Line 4 is: Set objUser = GetObject("LDAP://" & ad.UserName) So it seems like there was either a network interruption that caused the LDAP lookup to time out or maybe the DC's were very busy at that time, but those are only SWAG's. Any ideas of where to look is welcome! David Lum Systems Engineer // NWEATM Office 503.548.5229 // Cell (voice/text) 503.267.9764 ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to listmana...@lyris.sunbeltsoftware.com with the body: unsubscribe ntsysadmin ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to listmana...@lyris.sunbeltsoftware.com with the body: unsubscribe ntsysadmin