Created
          April 12, 2019 12:17 
        
      - 
      
- 
        Save nopslider/84266bafc0dc0b7c28ae9efe490d60bf to your computer and use it in GitHub Desktop. 
    Get all servers without ad tools
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | $Search = [adsisearcher]"(&(&(&(&(samAccountType=805306369))(objectCategory=computer)(operatingSystem=Windows Server*))))" | |
| (($Search.findall()).properties).dnshostname | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment