March 25, 2022
Get-hotfix -asJob Remote machine
use this script to get hotfix details from remote machine as -asJob #$servers = ('chn6vmdp01', 'ca7vmdp01', 'gbr2vmdp01') $servers =…
March 25, 2022
install module on remote machine
use this script to install powershell module on remote machine $s = 'server1' [Net.ServicePointManager]::SecurityProtocol += [Net.SecurityProtocolType]::Tls12 Enter-PSSession -ComputerName $c invoke-command…
March 25, 2022
get patch installed as background job
$servers = Get-Content -Path "C:\servers.txt" foreach($comp in $servers){ $pingtest = Test-Connection -ComputerName $comp -Quiet -Count 1 -ErrorAction SilentlyContinue if($pingtest){ Write-Host($comp…
March 25, 2022
Background job – examples
Use background job to run multiple script same time in background without waiting for session to complete $computer = @('server1',…
March 25, 2022
check Single Patch KB ID installed on Remote Machine
Use this script to check if a single patch kb id installed on remote server use single line of command…
March 25, 2022
Check Patches Installed and send email
$RemoteComputers = get-content "C:\test\dpservers.txt" ForEach ($Computer in $RemoteComputers) { Try { Invoke-Command -Computername $Computer -ScriptBlock { $head=@” <style> @charset “UTF-8”;…
March 25, 2022
Post Patching Server Validation
Use This script to validate server after post patching installation up time auto service pending reboot # Descritption : This…
March 25, 2022
Copy Log files from remote machine
Use this script to copy log file from a remote machine and save it locally $device = Get-Content -Path "C:\clients…
March 25, 2022
Check Multiple Patch IDs installed on Remote Machine
Use this script to find out if multiple Patch using KB IDs installed on remote machine it checks if machine…
March 25, 2022
List Available Patches (windows update) – Remote machine
Use this script to check if a remote machine has any new windows update available <# .SYNOPSIS This script…