This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM. Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 5 years and 7 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
$GetName = Read-Host "Enter a serial number to search for"
$Value = "*$GetName*"
Get-ADComputer -Filter{ name -like $Value} -Properties * | Select-Object name, lastlogondate
The output shows all machines that share a partial name. i.e. HR- when I run this from within PowerShell Studio I get no results.
Yes, I am running this as Administrator. What is funny is this: In ISE if I search for HVP it returns 3 computers that have HVP in their name. But when run from PowerShell Studio it returns nothing when I enter HVP. if I enter the full name of a machine then it does return that 1 machine. How do I make this mimic what ISE returns?
This topic is 5 years and 7 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.