[Script of Nov 23rd] How to verify if an OU exists (VBScript)

Script Download: VBSFindOU.zip https://gallery.technet.microsoft.com/scriptcenter/How-to-verify-if-an-OU-b0317c33 

This VBScript illustrates how to check or verify if an Active Directory (AD) Organizational Unit (OU) exists

If we bind to a particular OU that does not exist using VBScript, the script terminates with object not found exception. Using this sample script we can verify the existence of required OU before we perform some operation on respective OU

 

image image
image image

You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery