Get Computer DNS Suffix

Simple Powershell script that will take a list of computers that you provide as an argument, delimited by a comma, the script will check of the computer existence in Active Directory.If the script does not find one of the computers, it will throw an error, but also it will reach

5 Star
380 times
Add to favorites
E-mail Twitter Digg Facebook
  • Null
    1 Posts | Last post February 05, 2019
    • Why not just If($ComputerTest = (Get-ADComputer -Filter * | Where-Object {$_.Name -like "*$Computer*"})_ versus the $null test...