{"id":4058,"date":"2024-11-18T13:14:39","date_gmt":"2024-11-18T13:14:39","guid":{"rendered":"https:\/\/www.systools.in\/blog\/?p=4058"},"modified":"2024-11-19T12:45:27","modified_gmt":"2024-11-19T12:45:27","slug":"how-to-find-computer-ou-in-active-directory","status":"publish","type":"post","link":"https:\/\/www.systools.in\/blog\/how-to-find-computer-ou-in-active-directory\/","title":{"rendered":"How to Find Computer OU in Active Directory &#038; Export CSV List\u00a0"},"content":{"rendered":"<p>Even experienced IT administrators sometimes wonder how to find computer OU in Active Directory environment. Getting the exact location of a computer is just part of the process, as they then have to export the results in CSV format. However, depending on the structure of the AD, this is easier said than done. Organizations may find that their AD\u2019s OUs are like a complicated tree, with layers of hierarchical arrangement.<\/p>\n<div class=\"alert alert-info\">\n<p><strong>Table of Contents<\/strong><\/p>\n<ul>\n<li><a href=\"#compare-groups\"><strong>Compare Groups, Containers, and OUs<\/strong><\/a><\/li>\n<li><a href=\"#find-ou-powershell\"><strong>Find OU Using PowerShell<\/strong><\/a><\/li>\n<li><a href=\"#find-ou-cmd\"><strong>Find OU Using CMD<\/strong><\/a><\/li>\n<li><a href=\"#default-ad-options\"><strong>Default AD Options<\/strong><\/a><\/li>\n<li><a href=\"#smart-way\"><strong>Smart Way to Get Computer List<\/strong><\/a><\/li>\n<li><a href=\"#automated-utility\"><strong>Find Computer OU via Utility<\/strong><\/a><\/li>\n<li><a href=\"#compare-methods\"><strong>Compare Methods<\/strong><\/a><\/li>\n<li><a href=\"#conclusion\"><strong>Conclusion<\/strong><\/a><\/li>\n<li><a href=\"#faqs\"><strong>FAQs on Finding Computer OU<\/strong><\/a><\/li>\n<\/ul>\n<\/div>\n<p>The fact that a computer can simultaneously be part of more than one OU does not help in this assignment. Moreover, if administrators were absent when the AD design was being finalized, then it became all the more difficult to pinpoint the location where a computer is in this digital maze.<\/p>\n<p>Not to worry, as there are multiple methods through which admins can not only locate but also export the results in one go. Before we begin we want to clear out the most confusing aspect of object location i.e. the difference between a group, container, and OU.<\/p>\n<h2 id=\"compare-groups\">Compare Groups, Containers, and OUs in an Active Directory<\/h2>\n<div style=\"overflow-x: auto;\">\n<table class=\"table-bordered\" cellpadding=\"10\">\n<tbody>\n<tr>\n<td><b>Feature<\/b><\/td>\n<td><b>Group<\/b><\/td>\n<td><b>Container<\/b><\/td>\n<td><b>OU (Organizational Unit)<\/b><\/td>\n<\/tr>\n<tr>\n<td>Purpose<\/td>\n<td>Manages permissions<\/td>\n<td>Organizes objects<\/td>\n<td>Manages objects &amp; Policies<\/td>\n<\/tr>\n<tr>\n<td>Members<\/td>\n<td>Users &amp; Groups<\/td>\n<td>OUs, Users, Groups<\/td>\n<td>Users, Groups, OUs, Computers<\/td>\n<\/tr>\n<tr>\n<td>Group Policy<\/td>\n<td>Not applicable<\/td>\n<td>Not applicable<\/td>\n<td>Can apply Group Policy<\/td>\n<\/tr>\n<tr>\n<td>Permissions<\/td>\n<td>Manages access<\/td>\n<td>Limited permissions<\/td>\n<td>Manages permissions &amp; delegation<\/td>\n<\/tr>\n<tr>\n<td>Creation<\/td>\n<td>Manual<\/td>\n<td>Default &amp; Manual<\/td>\n<td>Manual<\/td>\n<\/tr>\n<tr>\n<td>Example<\/td>\n<td>Marketing Team<\/td>\n<td>Users container<\/td>\n<td>Finance department OU<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>Now that we know what to look for let&#8217;s start with the method that is by far the most requested, i.e. PowerShell.<\/p>\n<h2 id=\"find-ou-powershell\">How to Find OU of a Computer Using PowerShell?<\/h2>\n<p>We can not only get the computer location but also <a href=\"https:\/\/www.systools.in\/blog\/rename-ad-user-with-powershell\/\" target=\"_blank\" rel=\"noopener\">change user logon name in Active Directory using PowerShell<\/a> scripts. The one we are about to use is provided below.<\/p>\n<pre># Import the Active Directory module\r\nImport-Module ActiveDirectory\r\n# Get all computer objects\r\n$computers = Get-ADComputer -Filter * -Property DistinguishedName\r\n# Create a custom object to store computer name and OU\r\n$computerOUs = $computers | ForEach-Object {\r\n \u00a0\u00a0\u00a0$dnComponents = ($_ | Select-Object -ExpandProperty DistinguishedName).Split(',')\r\n \u00a0\u00a0\u00a0$ouComponents = $dnComponents | Where-Object { $_ -like 'OU=*' }\r\n \u00a0\u00a0\u00a0$ouPath = ($ouComponents -join ',').Replace('OU=', '').Replace(',', '\/')\r\n \u00a0\u00a0\u00a0[PSCustomObject]@{\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0ComputerName = $_.Name\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0OU = $ouPath\r\n \u00a0\u00a0\u00a0}\r\n}\r\n# Export the results to a CSV file\r\n$computerOUs | Export-Csv -Path \"ComputerOUs.csv\" -NoTypeInformation\r\nWrite-Output \"The list of computer OUs has been saved to ComputerOUs.csv\"<\/pre>\n<p>Explanation of the script that allows you to get adcomputer filter OU in a straightforward manner.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4060\" src=\"https:\/\/www.systools.in\/blog\/wp-content\/uploads\/2024\/06\/powershell.webp\" alt=\"PowerShell\" width=\"995\" height=\"425\" \/><\/p>\n<p><b>Import-Module ActiveDirectory<\/b>: Imports the Active Directory module to use its cmdlets.<\/p>\n<p><b>Get-ADComputer -Filter * -Property DistinguishedName<\/b>: Retrieves all computer objects, including their distinguished names.<\/p>\n<p><b>ForEach-Object<\/b>: Iterates over each computer object to extract and format the OU path.<\/p>\n<p><b>Split and Where-Object<\/b>: Splits the DN into components and filters out the ones that represent OUs.<\/p>\n<p><b>[PSCustomObject]<\/b>: Creates a custom PowerShell object for each computer with its name and OU path.<\/p>\n<p><b>Export-Csv<\/b>: Exports the custom objects to a CSV file.<\/p>\n<p>You need not use PowerShell to get adcomputer filter by ou. As next up we cover another code-based method available inside Active Directory environments.<\/p>\n<h3 id=\"find-ou-cmd\">How to Find OU of a Computer Using CMD?<\/h3>\n<p>The following command line query helps to bring out the computer location, although some limitations exist. Like not being able to export the results in CSV.<\/p>\n<pre>dsquery computer -limit 0 | dsget computer -dn -samid<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4061\" src=\"https:\/\/www.systools.in\/blog\/wp-content\/uploads\/2024\/06\/cmd.webp\" alt=\"Command Line\" width=\"982\" height=\"513\" \/><\/p>\n<p>After locating the computers many admins want to <a href=\"https:\/\/www.systools.in\/blog\/how-to-export-user-group-membership-from-active-directory\/\" target=\"_blank\" rel=\"noopener\">export user group membership from Active Directory<\/a> to get started with a <a href=\"https:\/\/www.systools.in\/blog\/active-directory-cross-forest-migration\/\" target=\"_blank\" rel=\"noopener\">cross forest active directory migration<\/a>. Moreover, if you still believe that you might have to search for how to find computer OU in Active Directory as the code and scripts are too technical. Then you can access the computer location data with the help of GUI options like ADAC, and ADUC.<\/p>\n<p>Here is an advanced script that churns out the Computer along with its OU<\/p>\n<pre>echo Computer,Organizational Unit &gt; C:\\Users\\Administrator\\Desktop\\result.csv &amp;&amp; dsquery computer | dsget computer -dn -samid | for \/f \"tokens=1,2* delims=,\" %a in ('findstr \/i \"OU=\"') do @for \/f \"tokens=1,* delims= \" %c in (\"%c\") do @for \/f \"tokens=2 delims==\" %e in (\"%b\") do @for \/f \"tokens=1 delims=$\" %f in (\"%d\") do @(echo Computer: %f, OU: %e &amp; echo %f,%e &gt;&gt; C:\\Users\\Administrator\\Desktop\\result.csv)<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4215\" src=\"https:\/\/www.systools.in\/blog\/wp-content\/uploads\/2024\/06\/dsquery-which-ou-a-computer-is-in.png\" alt=\"Computer Location Detection in AD With CMD\" width=\"745\" height=\"173\" \/><\/p>\n<h3>Explanation of the Query<\/h3>\n<p>With this command, you can search the entire AD for all computer objects (Domain Controllers are also treated as Computers by the AD) and list out the Organizational Unit of that computer.<\/p>\n<p>Create a blank CSV with just the headers (Computers and Organizational Unit). Then the query iterates to find AD computer objects and pull out the\u00a0 Distinguished Name and SamID. Then it scans for the\u00a0 &#8220;OU=&#8221;, which it uses to separate the get all computers in OU PowerShell parameter from the rest of the computer object details.<\/p>\n<p>It uses loops to perform the required task and prints out the result in the console. Simultaneously the admin receives a CSV file output for documentation purposes.<\/p>\n<p>You can convert this into a batch script which adds reusability. Note if you don&#8217;t change the csv file path it overwrites the existing report. The script is designed only to fetch two things the computer name and its OU. Moreover, the above query fails for edge cases like Nested OU which is quite a common scenario in modern AD environments. Besides that, complexity makes admins wonder if there is any other way to find what OU a computer is in. Yes, there is.<\/p>\n<h3 id=\"default-ad-options\">How to Find the OU of a Computer in Active Directory with Alternative Steps<\/h3>\n<p>There are two options for admins first one is ADUC or active directory users and computers portal.<\/p>\n<ul>\n<li>Step 1: <strong>Open ADUC<\/strong><\/li>\n<li>Step 2: Click on the <strong>search<\/strong> icon.<\/li>\n<li>Step 3: Select <strong>Computers<\/strong> &gt; Click on <strong>Find Now<\/strong>.<\/li>\n<li>Step 4: <strong>Select<\/strong> any one <strong>Computer<\/strong> from the results<\/li>\n<li>Step 5: On the Properties Window &gt; <strong>toggle \u201cMembers Of\u201d<\/strong> and view the location.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4062 size-full\" src=\"https:\/\/www.systools.in\/blog\/wp-content\/uploads\/2024\/06\/aduc.webp\" alt=\"use ADUC and Find Computer OU in Active Directory\" width=\"1122\" height=\"608\" \/><\/p>\n<p>Sometimes the ADUC may not be installed in your AD environment. In that case, instead of asking how to find computer OU in Active Directory use the Admin Center instead.<\/p>\n<ul>\n<li>Launch <strong>ADAC<\/strong><\/li>\n<li>Go to <strong>Global Search<\/strong><\/li>\n<li>Toggle<strong> Convert to LDAP<\/strong> and type (&amp;(objectClass=computer))<\/li>\n<li>Click on Apply &gt; See the<strong> Path Column for Computer Location<\/strong> Data.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4064 size-full\" src=\"https:\/\/www.systools.in\/blog\/wp-content\/uploads\/2024\/06\/adac.webp\" alt=\"How to Find Computer OU in Active Directory via ADAC\" width=\"1054\" height=\"590\" \/><\/p>\n<p>However, none of the two traditional GUI methods allow admins to export the results in CSV format. Not to mention they they need to check for each Computer object one by one as the location won&#8217;t be visible en-mass.<\/p>\n<p>Significantly increasing the overall time of the operation. Admins can view the OU and try to filter out computer objects how ever this is counterintuitive and may only be a marginal upgrade over the default method. Therefore, a better approach would be to skip over the traditional methods altogether.<\/p>\n<h3 id=\"smart-way\">Smart Way to Get Computer List from Active Directory<\/h3>\n<p>Would be to use the <b>SysTools Active Directory Reporting Software<\/b>. Designed with a user-first approach the tool simplifies finding computer location in any AD environment.\u00a0 Moreover, it provides the CSV export ability of PowerShell along with the easiness of the GUI not found even in the native AD management tools.<\/p>\n<p class=\"text-center mr-2\"><a class=\"btn btn-lg btn-md-block text-white\" style=\"background: #28a745; color: #ffffff !important; cursor: text;\" href=\"https:\/\/systoolskart.com\/download\/SYS4A2D6R\/29\" rel=\"nofollow\"> Download Now<\/a> <a class=\"btn btn-lg btn-md-block text-white\" style=\"background: #ff6800; color: #ffffff !important; cursor: text;\" href=\"https:\/\/systoolskart.com\/buy\/SYS4A2D6R\/29\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">Purchase Now<\/a><\/p>\n<p>So check out the following steps and get the path of a computer object in AD<\/p>\n<h4 id=\"automated-utility\">Export Computers from Active Directory OU to CSV PowerShell Free via Automated Utility Step-By-Step<\/h4>\n<ul>\n<li>Step 1. Launch the software on your machine. Wait for the default administrator credentials to fill up and log in.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/systoolskart.com\/imgp\/ad-reporter\/step-1.webp\" alt=\"Log into tool and get adcomputer filter ou\" width=\"900\" height=\"482\" \/><\/li>\n<li>Step 2. Select the \u201cREGISTER DOMAIN CONTROLLER\u201d button and fill in the details, like the domain-friendly name and IP address.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/systoolskart.com\/imgp\/ad-reporter\/step-7.webp\" alt=\"Register Domain Controller screen from where you want to get adcomputer filter by ou\" width=\"900\" height=\"482\" \/><\/li>\n<li>Step 3. Go to the Domain Details Page in the Info section, add your admin details, and validate the domain.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/systoolskart.com\/imgp\/ad-reporter\/step-9-5.webp\" alt=\"Validate Credentials to get computers from OU PowerShell\" width=\"900\" height=\"482\" \/><\/li>\n<li>Step 4. Then go to the Reports column under the Computers workload and choose the All category to answer the query on how to find computer OU in Active Directory.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/systoolskart.com\/imgp\/ad-reporter\/step-13.webp\" alt=\"Pick the right category if you don't know how to find the OU of a computer in Active Directory.\" width=\"900\" height=\"482\" \/><\/li>\n<li>Step 5. Click on the Preview button and check the OU column.<br \/>\n<img decoding=\"async\" src=\"https:\/\/systoolskart.com\/imgp\/ad-reporter\/computer-report-2.webp\" alt=\"press Preview\" \/><\/li>\n<li>Step 6. Expand the Download Report button and select CSV.<br \/>\n<img decoding=\"async\" src=\"https:\/\/systoolskart.com\/imgp\/ad-reporter\/computer-report-4.webp\" alt=\"Download button\" \/><\/li>\n<\/ul>\n<h4 id=\"compare-methods\">Compare and Contrast the Methods<\/h4>\n<p>Due to the availability of multiple methods admins might get confused on what to use so here is a tabular comparison matrix highlighting the pros and cons of the various methods described in this post.<\/p>\n<div style=\"overflow-x: auto;\">\n<table class=\"table-bordered\" cellpadding=\"10\">\n<tbody>\n<tr>\n<td><b>Method<\/b><\/td>\n<td><b>Difficulty<\/b><\/td>\n<td><b>Functionality<\/b><\/td>\n<td><b>Export to CSV?<\/b><\/td>\n<\/tr>\n<tr>\n<td>Active Directory Users and Computers (ADUC)<\/td>\n<td>Easy<\/td>\n<td>View OU membership for individual computers<\/td>\n<td>No<\/td>\n<\/tr>\n<tr>\n<td>Active Directory Administrative Center (ADAC)<\/td>\n<td>Easy<\/td>\n<td>Search OUs using LDAP queries, limited information<\/td>\n<td>No (Bypass Via Copy\/Pasting)<\/td>\n<\/tr>\n<tr>\n<td>Command Line Queries<\/td>\n<td>Moderate<\/td>\n<td>Find computer OU using CMD queries<\/td>\n<td>Possible<\/td>\n<\/tr>\n<tr>\n<td>PowerShell Scripting<\/td>\n<td>Moderate<\/td>\n<td>Powerful filtering and data manipulation, bulk retrieval answer on how to find the OU of a computer in Active Directory setup.<\/td>\n<td>Yes (With Additional Code)<\/td>\n<\/tr>\n<tr>\n<td>Professional Reporting Tools (e.g., SysTools)<\/td>\n<td>Easy<\/td>\n<td>User-friendly interface, pre-built reports, extensive filtering<\/td>\n<td>Yes<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>It is now more clear than ever that the automated utility offers the best means of computer OU retrieval.<\/p>\n<h4 id=\"conclusion\">Conclusion<\/h4>\n<p>In this write-up, we taught users how to find computer OU in Active Directory.\u00a0 So now they should have no problems in formulating a new AD Audit Checklist. Moreover, when locating computers they can either use the Command line or export computers from Active Directory OU to CSV PowerShell.<\/p>\n<p>However, the complexity involved may turn some users away. So instead of using command line query or inbuilt GUI tools that lack CSV export options, administrators can use the professional tool instead.<\/p>\n<h4 id=\"faqs\">Frequently Asked Questions on How to Find Computer OU in Active Directory<\/h4>\n<p><strong>I want the OU of a particular computer using Get-ADComputer cmdlet, but I only remember the first few characters of the name. What to do?<\/strong><\/p>\n<p>You can substitute the missing characters with a wild card symbol. In both PowerShell and LDAP the asterisk ( * ) symbol will do the trick. Otherwise, you can also use other filtering options if similar to the one that are used to <a href=\"https:\/\/www.systools.in\/blog\/find-inactive-computers-in-active-directory\/\" target=\"_blank\" rel=\"noopener\">locate inactive computers in AD<\/a>.<\/p>\n<p><strong>Is it possible for one computer object to exist in more than one OU how does the CSV report behave in such a situation?<\/strong><\/p>\n<p>When admins search for how to find computer ou using cmd, PowerShell, or any other previously unknown method on thing does not change that Computers follow a one to one mapping with their OU. Even when there is OU nesting a computer can only have one primary OU, but it can inherit Group Policies from parent OUs in the hierarchy. However, within a OU there can be multiple computer objects.<\/p>\n<p>The CSV reflects the same it shows the entire OU path until of the object. Only the PowerShell and Tool possess this ability for command line admins have to add in the functionality themselves.<\/p>\n<p><strong>I know for sure that there is a computer object in the OU but during the search, it won&#8217;t show up at all how is this possible?<\/strong><\/p>\n<p>There can be several reasons for which the computer is absent from your searches.<\/p>\n<p>It is possible that a the computer object is deleted. To verify check the Event Viewer logs.<\/p>\n<p>Your privilege to use cmd or PowerShell may have been revoked by admin so consult with the relevant figures in your organization regarding the same.<\/p>\n<p><strong>Why my Computer location CSV contains Domain Controllers?<\/strong><\/p>\n<p>Every Active Directory treats DCs as computer objects.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Even experienced IT administrators sometimes wonder how to find computer OU in Active Directory environment. Getting the exact location of a computer is just part of the process, as they <\/p>\n","protected":false},"author":7,"featured_media":4063,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[361],"class_list":["post-4058","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-active-directory"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Find Computer OU in Active Directory Via CMD &amp; Get CSV<\/title>\n<meta name=\"description\" content=\"Learn how to find computer OU in Active Directory and export the list in CSV format using CMD, PowerShell, AD Features, and an automated tool\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.systools.in\/blog\/how-to-find-computer-ou-in-active-directory\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"siddharth\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.systools.in\\\/blog\\\/how-to-find-computer-ou-in-active-directory\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.systools.in\\\/blog\\\/how-to-find-computer-ou-in-active-directory\\\/\"},\"author\":{\"name\":\"siddharth\",\"@id\":\"https:\\\/\\\/www.systools.in\\\/blog\\\/#\\\/schema\\\/person\\\/a719240fe0eff759b37c012b65b0f138\"},\"headline\":\"How to Find Computer OU in Active Directory &#038; Export CSV List\u00a0\",\"datePublished\":\"2024-11-18T13:14:39+00:00\",\"dateModified\":\"2024-11-19T12:45:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.systools.in\\\/blog\\\/how-to-find-computer-ou-in-active-directory\\\/\"},\"wordCount\":1746,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.systools.in\\\/blog\\\/how-to-find-computer-ou-in-active-directory\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.systools.in\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/how-to-find-computer-ou-in-active-directory.webp\",\"articleSection\":[\"Active Directory\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.systools.in\\\/blog\\\/how-to-find-computer-ou-in-active-directory\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.systools.in\\\/blog\\\/how-to-find-computer-ou-in-active-directory\\\/\",\"url\":\"https:\\\/\\\/www.systools.in\\\/blog\\\/how-to-find-computer-ou-in-active-directory\\\/\",\"name\":\"How to Find Computer OU in Active Directory Via CMD & Get CSV\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.systools.in\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.systools.in\\\/blog\\\/how-to-find-computer-ou-in-active-directory\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.systools.in\\\/blog\\\/how-to-find-computer-ou-in-active-directory\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.systools.in\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/how-to-find-computer-ou-in-active-directory.webp\",\"datePublished\":\"2024-11-18T13:14:39+00:00\",\"dateModified\":\"2024-11-19T12:45:27+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.systools.in\\\/blog\\\/#\\\/schema\\\/person\\\/a719240fe0eff759b37c012b65b0f138\"},\"description\":\"Learn how to find computer OU in Active Directory and export the list in CSV format using CMD, PowerShell, AD Features, and an automated tool\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.systools.in\\\/blog\\\/how-to-find-computer-ou-in-active-directory\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.systools.in\\\/blog\\\/how-to-find-computer-ou-in-active-directory\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.systools.in\\\/blog\\\/how-to-find-computer-ou-in-active-directory\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.systools.in\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/how-to-find-computer-ou-in-active-directory.webp\",\"contentUrl\":\"https:\\\/\\\/www.systools.in\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/how-to-find-computer-ou-in-active-directory.webp\",\"width\":636,\"height\":357,\"caption\":\"How to Find Computer OU in Active Directory\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.systools.in\\\/blog\\\/how-to-find-computer-ou-in-active-directory\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.systools.in\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Find Computer OU in Active Directory &#038; Export CSV List\u00a0\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.systools.in\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.systools.in\\\/blog\\\/\",\"name\":\"Informative Blogs Related To Technologies &amp; Data Recovery Solutions\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.systools.in\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.systools.in\\\/blog\\\/#\\\/schema\\\/person\\\/a719240fe0eff759b37c012b65b0f138\",\"name\":\"siddharth\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/36008fc382c078c0181bbc3f19fd908ee42a71cf3d336b9b2864d3ba99da3786?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/36008fc382c078c0181bbc3f19fd908ee42a71cf3d336b9b2864d3ba99da3786?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/36008fc382c078c0181bbc3f19fd908ee42a71cf3d336b9b2864d3ba99da3786?s=96&d=mm&r=g\",\"caption\":\"siddharth\"},\"description\":\"With years experience in Data Recovery field, I am well aware of the technicalities faced by the user while working on various technologies and applications. I love to sharing technical data through my blogs and articles regarding the technology.\",\"url\":\"https:\\\/\\\/www.systools.in\\\/blog\\\/author\\\/siddharth\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Find Computer OU in Active Directory Via CMD & Get CSV","description":"Learn how to find computer OU in Active Directory and export the list in CSV format using CMD, PowerShell, AD Features, and an automated tool","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.systools.in\/blog\/how-to-find-computer-ou-in-active-directory\/","twitter_misc":{"Written by":"siddharth","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.systools.in\/blog\/how-to-find-computer-ou-in-active-directory\/#article","isPartOf":{"@id":"https:\/\/www.systools.in\/blog\/how-to-find-computer-ou-in-active-directory\/"},"author":{"name":"siddharth","@id":"https:\/\/www.systools.in\/blog\/#\/schema\/person\/a719240fe0eff759b37c012b65b0f138"},"headline":"How to Find Computer OU in Active Directory &#038; Export CSV List\u00a0","datePublished":"2024-11-18T13:14:39+00:00","dateModified":"2024-11-19T12:45:27+00:00","mainEntityOfPage":{"@id":"https:\/\/www.systools.in\/blog\/how-to-find-computer-ou-in-active-directory\/"},"wordCount":1746,"commentCount":0,"image":{"@id":"https:\/\/www.systools.in\/blog\/how-to-find-computer-ou-in-active-directory\/#primaryimage"},"thumbnailUrl":"https:\/\/www.systools.in\/blog\/wp-content\/uploads\/2024\/06\/how-to-find-computer-ou-in-active-directory.webp","articleSection":["Active Directory"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.systools.in\/blog\/how-to-find-computer-ou-in-active-directory\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.systools.in\/blog\/how-to-find-computer-ou-in-active-directory\/","url":"https:\/\/www.systools.in\/blog\/how-to-find-computer-ou-in-active-directory\/","name":"How to Find Computer OU in Active Directory Via CMD & Get CSV","isPartOf":{"@id":"https:\/\/www.systools.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.systools.in\/blog\/how-to-find-computer-ou-in-active-directory\/#primaryimage"},"image":{"@id":"https:\/\/www.systools.in\/blog\/how-to-find-computer-ou-in-active-directory\/#primaryimage"},"thumbnailUrl":"https:\/\/www.systools.in\/blog\/wp-content\/uploads\/2024\/06\/how-to-find-computer-ou-in-active-directory.webp","datePublished":"2024-11-18T13:14:39+00:00","dateModified":"2024-11-19T12:45:27+00:00","author":{"@id":"https:\/\/www.systools.in\/blog\/#\/schema\/person\/a719240fe0eff759b37c012b65b0f138"},"description":"Learn how to find computer OU in Active Directory and export the list in CSV format using CMD, PowerShell, AD Features, and an automated tool","breadcrumb":{"@id":"https:\/\/www.systools.in\/blog\/how-to-find-computer-ou-in-active-directory\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.systools.in\/blog\/how-to-find-computer-ou-in-active-directory\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systools.in\/blog\/how-to-find-computer-ou-in-active-directory\/#primaryimage","url":"https:\/\/www.systools.in\/blog\/wp-content\/uploads\/2024\/06\/how-to-find-computer-ou-in-active-directory.webp","contentUrl":"https:\/\/www.systools.in\/blog\/wp-content\/uploads\/2024\/06\/how-to-find-computer-ou-in-active-directory.webp","width":636,"height":357,"caption":"How to Find Computer OU in Active Directory"},{"@type":"BreadcrumbList","@id":"https:\/\/www.systools.in\/blog\/how-to-find-computer-ou-in-active-directory\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.systools.in\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Find Computer OU in Active Directory &#038; Export CSV List\u00a0"}]},{"@type":"WebSite","@id":"https:\/\/www.systools.in\/blog\/#website","url":"https:\/\/www.systools.in\/blog\/","name":"Informative Blogs Related To Technologies &amp; Data Recovery Solutions","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.systools.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.systools.in\/blog\/#\/schema\/person\/a719240fe0eff759b37c012b65b0f138","name":"siddharth","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/36008fc382c078c0181bbc3f19fd908ee42a71cf3d336b9b2864d3ba99da3786?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/36008fc382c078c0181bbc3f19fd908ee42a71cf3d336b9b2864d3ba99da3786?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/36008fc382c078c0181bbc3f19fd908ee42a71cf3d336b9b2864d3ba99da3786?s=96&d=mm&r=g","caption":"siddharth"},"description":"With years experience in Data Recovery field, I am well aware of the technicalities faced by the user while working on various technologies and applications. I love to sharing technical data through my blogs and articles regarding the technology.","url":"https:\/\/www.systools.in\/blog\/author\/siddharth\/"}]}},"_links":{"self":[{"href":"https:\/\/www.systools.in\/blog\/wp-json\/wp\/v2\/posts\/4058","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.systools.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.systools.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.systools.in\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.systools.in\/blog\/wp-json\/wp\/v2\/comments?post=4058"}],"version-history":[{"count":0,"href":"https:\/\/www.systools.in\/blog\/wp-json\/wp\/v2\/posts\/4058\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.systools.in\/blog\/wp-json\/wp\/v2\/media\/4063"}],"wp:attachment":[{"href":"https:\/\/www.systools.in\/blog\/wp-json\/wp\/v2\/media?parent=4058"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.systools.in\/blog\/wp-json\/wp\/v2\/categories?post=4058"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}