
& psexec \$Pingy.Address -u DOMAIN_NAME\USER_NAME -p USER_PASSWORD \SERVER\BATCHFILE. $Pingy.Address, $Pingy.StatusCode,"Deploying Script." If the IP address is active, run the PSEXEC command. $Pingy = Get-WmiObject Win32_PingStatus -f "Address='$Ip4th'"

# Set the octect to start scanning at 10. Set-alias psexec "c:\windows\system32\psexec.exe" Copy\paste the text in notepad and save the file as PINGBATCH.PS1.
#Powershell ip scanner install#
So if you are looking to push out a software installation with this script, and that install is fairly large and lengthy, then this script is not for you. Once we can comfortably run PowerShell commands, we can progress to the next step. This script has it configured to run on the local computer that needs the printer. (1) First step is typically to circumvent the restrictions and spawn a shell. inf file to the remote computer first though.
#Powershell ip scanner driver#
One caveat to this Powershell script is that once PSEXEC successfully launches the batch file, it waits for the batch file to finish before moving on to the next computer. driver 'KONICA MINOLTA C754SeriesPCL' address '.XX' name 'PRINTER' sleep '3' The invoke command can be added to specify a remote computer by adding -computername. Lets look at the following tools: Nmap, Advanced IP Scanner, Angry IP Scanner, free IP scanner by Eusing and the built-in command line and PowerShell.

With that said, here is a script that I would like to share with the world! Here is what the script does, in order: But the more I use Powershell, the more I am liking it. I have been using VBScript and batch files forever. located hereĪh yes, more administrative scripting. All credit for this script goes to the guys at .uk. This powerful asynchronus IP port scanner allows you to scan every port range you want (500 to 2600 would work). *** Disclaimer: This is a modified script originally posted on .uk.
