Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 36188

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

$
0
0

Script Download: VBSFindOU.zip
http://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

 

imageimage
imageimage

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


Viewing all articles
Browse latest Browse all 36188

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>