{"id":72,"date":"2016-06-20T08:59:44","date_gmt":"2016-06-20T07:59:44","guid":{"rendered":"http:\/\/www.kneefel-ict.nl\/?post_type=kbe_knowledgebase&#038;p=72"},"modified":"2016-07-19T07:42:23","modified_gmt":"2016-07-19T06:42:23","slug":"get-all-computers-in-ad","status":"publish","type":"kbe_knowledgebase","link":"https:\/\/kneefel-ict.nl\/en\/knowledgebase\/get-all-computers-in-ad\/","title":{"rendered":"PowerShell: Get all computers in AD"},"content":{"rendered":"<p><\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\n#Get all computers in AD\r\nGet-ADComputer -Filter * -Property * | Format-Table DNSHostName,IPv4Address,OperatingSystem,OperatingSystemVersion,OperatingSystemServicePack -Wrap \u2013Auto\r\n\r\n#Get all computers in AD starting in specific OU\r\nGet-ADComputer -Filter * -Property * -SearchBase &amp;amp;amp;quot;CN=Computers,DC=kneefel-ict,DC=local&amp;amp;amp;quot; | Format-Table DNSHostName,IPv4Address,OperatingSystem,OperatingSystemVersion,OperatingSystemServicePack -Wrap \u2013Auto\r\n\r\n#Get all computers in AD that start with SRV\r\nGet-ADComputer -Filter &amp;amp;amp;quot;SRV* -Property * | Format-Table DNSHostName,IPv4Address,OperatingSystem,OperatingSystemVersion,OperatingSystemServicePack -Wrap \u2013Auto\r\n<\/pre>\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>#Get all computers in AD Get-ADComputer -Filter * -Property * | Format-Table DNSHostName,IPv4Address,OperatingSystem,OperatingSystemVersion,OperatingSystemServicePack -Wrap \u2013Auto #Get all computers in AD starting in specific OU Get-ADComputer -Filter * -Property * -SearchBase &amp;amp;amp;quot;CN=Computers,DC=kneefel-ict,DC=local&amp;amp;amp;quot; | Format-Table DNSHostName,IPv4Address,OperatingSystem,OperatingSystemVersion,OperatingSystemServicePack -Wrap \u2013Auto #Get all computers in AD that start with SRV Get-ADComputer -Filter &amp;amp;amp;quot;SRV* -Property * | Format-Table DNSHostName,IPv4Address,OperatingSystem,OperatingSystemVersion,OperatingSystemServicePack -Wrap \u2013Auto<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","kbe_taxonomy":[4],"kbe_tags":[10],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PowerShell: Get all computers in AD - Kneefel ICT B.V.<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kneefel-ict.nl\/en\/knowledgebase\/get-all-computers-in-ad\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PowerShell: Get all computers in AD - Kneefel ICT B.V.\" \/>\n<meta property=\"og:description\" content=\"#Get all computers in AD Get-ADComputer -Filter * -Property * | Format-Table DNSHostName,IPv4Address,OperatingSystem,OperatingSystemVersion,OperatingSystemServicePack -Wrap \u2013Auto #Get all computers in AD starting in specific OU Get-ADComputer -Filter * -Property * -SearchBase &amp;amp;amp;quot;CN=Computers,DC=kneefel-ict,DC=local&amp;amp;amp;quot; | Format-Table DNSHostName,IPv4Address,OperatingSystem,OperatingSystemVersion,OperatingSystemServicePack -Wrap \u2013Auto #Get all computers in AD that start with SRV Get-ADComputer -Filter &amp;amp;amp;quot;SRV* -Property * | Format-Table DNSHostName,IPv4Address,OperatingSystem,OperatingSystemVersion,OperatingSystemServicePack -Wrap \u2013Auto\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kneefel-ict.nl\/en\/knowledgebase\/get-all-computers-in-ad\/\" \/>\n<meta property=\"og:site_name\" content=\"Kneefel ICT B.V.\" \/>\n<meta property=\"article:modified_time\" content=\"2016-07-19T06:42:23+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kneefel-ict.nl\/en\/knowledgebase\/get-all-computers-in-ad\/\",\"url\":\"https:\/\/kneefel-ict.nl\/en\/knowledgebase\/get-all-computers-in-ad\/\",\"name\":\"PowerShell: Get all computers in AD - Kneefel ICT B.V.\",\"isPartOf\":{\"@id\":\"https:\/\/kneefel-ict.nl\/#website\"},\"datePublished\":\"2016-06-20T07:59:44+00:00\",\"dateModified\":\"2016-07-19T06:42:23+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/kneefel-ict.nl\/en\/knowledgebase\/get-all-computers-in-ad\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kneefel-ict.nl\/en\/knowledgebase\/get-all-computers-in-ad\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kneefel-ict.nl\/en\/knowledgebase\/get-all-computers-in-ad\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/kneefel-ict.nl\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Knowledgebase\",\"item\":\"https:\/\/kneefel-ict.nl\/en\/knowledgebase\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"PowerShell: Get all computers in AD\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kneefel-ict.nl\/#website\",\"url\":\"https:\/\/kneefel-ict.nl\/\",\"name\":\"Kneefel ICT B.V.\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/kneefel-ict.nl\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kneefel-ict.nl\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kneefel-ict.nl\/#organization\",\"name\":\"Kneefel ICT B.V.\",\"url\":\"https:\/\/kneefel-ict.nl\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kneefel-ict.nl\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i1.wp.com\/www.kneefel-ict.nl\/wp-content\/uploads\/2016\/01\/logo_kneefel-ict-1200x280dpi.jpg?fit=1200%2C280&ssl=1\",\"contentUrl\":\"https:\/\/i1.wp.com\/www.kneefel-ict.nl\/wp-content\/uploads\/2016\/01\/logo_kneefel-ict-1200x280dpi.jpg?fit=1200%2C280&ssl=1\",\"width\":1200,\"height\":280,\"caption\":\"Kneefel ICT B.V.\"},\"image\":{\"@id\":\"https:\/\/kneefel-ict.nl\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PowerShell: Get all computers in AD - Kneefel ICT B.V.","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:\/\/kneefel-ict.nl\/en\/knowledgebase\/get-all-computers-in-ad\/","og_locale":"en_US","og_type":"article","og_title":"PowerShell: Get all computers in AD - Kneefel ICT B.V.","og_description":"#Get all computers in AD Get-ADComputer -Filter * -Property * | Format-Table DNSHostName,IPv4Address,OperatingSystem,OperatingSystemVersion,OperatingSystemServicePack -Wrap \u2013Auto #Get all computers in AD starting in specific OU Get-ADComputer -Filter * -Property * -SearchBase &amp;amp;amp;quot;CN=Computers,DC=kneefel-ict,DC=local&amp;amp;amp;quot; | Format-Table DNSHostName,IPv4Address,OperatingSystem,OperatingSystemVersion,OperatingSystemServicePack -Wrap \u2013Auto #Get all computers in AD that start with SRV Get-ADComputer -Filter &amp;amp;amp;quot;SRV* -Property * | Format-Table DNSHostName,IPv4Address,OperatingSystem,OperatingSystemVersion,OperatingSystemServicePack -Wrap \u2013Auto","og_url":"https:\/\/kneefel-ict.nl\/en\/knowledgebase\/get-all-computers-in-ad\/","og_site_name":"Kneefel ICT B.V.","article_modified_time":"2016-07-19T06:42:23+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/kneefel-ict.nl\/en\/knowledgebase\/get-all-computers-in-ad\/","url":"https:\/\/kneefel-ict.nl\/en\/knowledgebase\/get-all-computers-in-ad\/","name":"PowerShell: Get all computers in AD - Kneefel ICT B.V.","isPartOf":{"@id":"https:\/\/kneefel-ict.nl\/#website"},"datePublished":"2016-06-20T07:59:44+00:00","dateModified":"2016-07-19T06:42:23+00:00","breadcrumb":{"@id":"https:\/\/kneefel-ict.nl\/en\/knowledgebase\/get-all-computers-in-ad\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kneefel-ict.nl\/en\/knowledgebase\/get-all-computers-in-ad\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kneefel-ict.nl\/en\/knowledgebase\/get-all-computers-in-ad\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kneefel-ict.nl\/"},{"@type":"ListItem","position":2,"name":"Knowledgebase","item":"https:\/\/kneefel-ict.nl\/en\/knowledgebase\/"},{"@type":"ListItem","position":3,"name":"PowerShell: Get all computers in AD"}]},{"@type":"WebSite","@id":"https:\/\/kneefel-ict.nl\/#website","url":"https:\/\/kneefel-ict.nl\/","name":"Kneefel ICT B.V.","description":"","publisher":{"@id":"https:\/\/kneefel-ict.nl\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kneefel-ict.nl\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/kneefel-ict.nl\/#organization","name":"Kneefel ICT B.V.","url":"https:\/\/kneefel-ict.nl\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kneefel-ict.nl\/#\/schema\/logo\/image\/","url":"https:\/\/i1.wp.com\/www.kneefel-ict.nl\/wp-content\/uploads\/2016\/01\/logo_kneefel-ict-1200x280dpi.jpg?fit=1200%2C280&ssl=1","contentUrl":"https:\/\/i1.wp.com\/www.kneefel-ict.nl\/wp-content\/uploads\/2016\/01\/logo_kneefel-ict-1200x280dpi.jpg?fit=1200%2C280&ssl=1","width":1200,"height":280,"caption":"Kneefel ICT B.V."},"image":{"@id":"https:\/\/kneefel-ict.nl\/#\/schema\/logo\/image\/"}}]}},"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/kneefel-ict.nl\/en\/wp-json\/wp\/v2\/kbe_knowledgebase\/72"}],"collection":[{"href":"https:\/\/kneefel-ict.nl\/en\/wp-json\/wp\/v2\/kbe_knowledgebase"}],"about":[{"href":"https:\/\/kneefel-ict.nl\/en\/wp-json\/wp\/v2\/types\/kbe_knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/kneefel-ict.nl\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kneefel-ict.nl\/en\/wp-json\/wp\/v2\/comments?post=72"}],"version-history":[{"count":4,"href":"https:\/\/kneefel-ict.nl\/en\/wp-json\/wp\/v2\/kbe_knowledgebase\/72\/revisions"}],"predecessor-version":[{"id":159,"href":"https:\/\/kneefel-ict.nl\/en\/wp-json\/wp\/v2\/kbe_knowledgebase\/72\/revisions\/159"}],"wp:attachment":[{"href":"https:\/\/kneefel-ict.nl\/en\/wp-json\/wp\/v2\/media?parent=72"}],"wp:term":[{"taxonomy":"kbe_taxonomy","embeddable":true,"href":"https:\/\/kneefel-ict.nl\/en\/wp-json\/wp\/v2\/kbe_taxonomy?post=72"},{"taxonomy":"kbe_tags","embeddable":true,"href":"https:\/\/kneefel-ict.nl\/en\/wp-json\/wp\/v2\/kbe_tags?post=72"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}