in reply to Re: Can I condense the variable usage here?
in thread Can I condense the variable usage here?
Oddly enough the code supplies catches .company.com look ups we found. I was getting blank input and caught it with that. I am sure I meant $Host eq '' but the code I cut and paste worked. Though it may have been off the edit version I was working on to change the regex. When I get back to work I will look at the in production code versus the new version I was working on. I believe we tried a regex like you supplied but the problem is their is a value in the string with a value of .company.com but after the regex that is reduced to '' and it was a catch at the bottom.
Besides catching this in the script I need to know than how to fix these machines that have a null computer name, but that is another query for another place.
|
|---|