Recent Posts
Azure Virtual Desktop Optimization Options
So you want to replace your Citrix farm. You roll out Azure Virtual Desktop. Deploy the image. Get users logged…
The trust relationship between this workstation and the primary domain failed – Azure Restore
When restoring an Azure server you may run into the following issue, “The trust relationship between this workstation and the…
Create an Event Log Entry and Source
This PowerShell script demonstrates how to write an event with a specific Event ID (3009) to the event logs. It…
Sending an e-Mail using Python and Office365 SMTP
Parameters to change username – This is your e-mail addresssubject from_address – This has to be the same as the…
Using RoboCopy with PowerShell – Parameterized
The code sets the source path, destination path, and log file path using variables. It creates an array variable ($robocopyParams)…
Creating a Scheduled Task Using PowerShell to Run A Script Every Hour”
To create a scheduled task that runs a specific batch file every 1 hour using PowerShell, you can use the…
How Do I Use Variables in PowerShell
In PowerShell, a variable is a container that stores a value or reference to an object. You can use variables…
Query Active Directory Computers
To query all Active Directory (AD) computers in a specific organizational unit (OU) using PowerShell, you can use the Get-ADComputer…
Searching an Event Log Using PowerShell
Suppose you want to search your event logs for the last time someone logged onto a server. PowerShell makes it…