May 18, 2024
Microsoft Defender Smartscreen
Understanding and Enabling Microsoft Defender SmartScreen In the digital age, where threats lurk at every corner of the internet, protecting…
November 14, 2023
MAC – Manage with Intune
Microsoft Intune has positioned itself as a leader in Unified Endpoint Management (UEM), focusing on simplifying management and enhancing the…
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…