This file contains 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
If ($PCName -contains "-","_") { | |
#If it looks like a server, ignore it. | |
$LookupTest = "NWS" | |
#####This Should Trigger first, ignoring the rest of the statements##### | |
#####This looks for anything that follows our standard naming convention, granted nothing gets through the first If statement, | |
#and the other elseif statements I removed##### | |
} elseif ($PCName -like "*X[0-9][0-9][0-9][0-9][0-9][0-9]") { |