janhoedt
asked on
Powershell: scan for computername prefix xyz
Hi,
Is there a way to use https://www.powershelladmin.com/wiki/Port_scan_subnets_with_PSnmap_for_PowerShell#Screenshot_examples_of_PSnmap
psnmap for powershell and scan to computername prefixxyz so it would scan
prefixxyz01
prefixxyz02
prefixxyz03
etc?
Please advise.
J.
Is there a way to use https://www.powershelladmin.com/wiki/Port_scan_subnets_with_PSnmap_for_PowerShell#Screenshot_examples_of_PSnmap
psnmap for powershell and scan to computername prefixxyz so it would scan
prefixxyz01
prefixxyz02
prefixxyz03
etc?
Please advise.
J.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
David's solution is the way to go when you have a source (like ActiveDirectory) that will have all your potential hosts. If you were in a peer-to-peer situation, or scanning hosts which you couldn't pull their names from a masterlist, then I think mine is the way to go.
But if your list of machines is just a number after the prefix (like in your examples "prefixxyz01","prefixxyz02
For example:
Open in new window