Challenge : Import reg key settings to a remote compute Requires WinRM to be running Execute as Administrator **This script worked when tested on a Window 2021 server to a…
VMware Horizon and Zero Clients Enabling Rapid Remote Secure IT Working
2020, the year where the country went into lock down. In the UK we were told to work from home. This got me thinking more about options for rapid deployment…
Outlook Credentials Flashing and Closing Constantly
Challenge : Outlook would connect to one MS365 mailbox but then started constantly flashing for authentication for the disconnected Hotmail mailbox, but the credentials window disappears before being able to…
Azure – Monitoring Alert On Virtual Machine CPU Usage
Create a monitoring alert on virtual machine CPU spike/usage. Prep work you will need a virtual machine to monitor. An action group set to send emails to admins For this…
Multiple displays on Windows 10
Connecting a monitor to your laptop. Find the correct cable and port. Next, dual-monitor, which screen is where? Any order would work but having the physical location match the logical…
Ping sweep script test
POWERSHELL import-CSV "" | foreach { $result = Test-Connection -ComputerName $_.Name -Count 1 -Quiet $_.name, $result -join ',' | out-file "c:\scripts\PingSweep\computer_results.txt" -Append } COMMAND /BATCH SCRIPT Create list of computers…
List User Profile Status On A Client Windows 10 Machine
Run on client machine to see the status of user profiles on a Windows10 machine Type the following PowerShell command : gwmi win32_userprofile | select localpath, roamingpath, status
Robocopy Mirror Files and Folders
Map network drives to the correct locations Run CMD as Administrator Mirror file & directories and output detail to text file robocopy E:\..... z:\.... /MIR /S >c:\temp\detail.txt
List all users in the domain and email addresses
import-module activedirectory #List all users in the domain # Display Name and Email Address get-aduser -Filter * -SearchBase "dc=Test,dc=com" -Properties Displayname,emailaddress | select displayname ,emailaddress | Export-Csv C:\temp\users_and_email.csv
Troubleshooting Windows Updates and WSUS
Troubleshooting Windows Updates #Windows 10 #Windows 2016 Windows Update Log PowerShell command to check the Windows Update log • Get-WindowsUpdateLog Check Registry Keys Run command prompt as adminitrator and…