Tag: PowerShell
PowerShell: Searching text string on files.
1. Looking for string "janice" and create an output file as "output.txt" dir C:\MyFolder I *.txt -R | Select-String -Pattern janice > C:\MyFolder\output.txt…
Cisco device output by Powershell script
Here is simple tip of How to retrieve Cisco device output by Powershell script $User = "John" $pw = "ipBalance" $IP = "192.168.7.77" #List…
Simple Ping Script in PowerShell with IP list
Here is a simple Ping script with list of IP address or computer names. 1. IPList.txt Format of "IPList.text" would be like below. …
Simple Ping Script in PowerShell for block of IPs
Here is a simple ping script for block of IPs. Bring PowerSheel ISE and copy & paste below script. $ping = New-Object System.Net.NetworkInformation.Ping…
MS PowerShell Script Basic
1. Execution policy – Restricted – Unrestricted – RemoteSigned – AllSigned – Bypass > get-executionpolicy Restricted > set-executionpolicy unrestricted ; you must be…
Recent Comments