-
Initializing and Syncing a Git Repository with Remote
Setting up a Git repository and synchronizing it with a remote repository is an essential process for effective version control and collaboration in software development projects. This article will...
-
AZ-400
Azure DSC – Maintain a consistent configuration. You need to setup a Configuration, Node, and a Resource. To manage the consistency of a machine, you need to onboard the virtual machines to azure ...
-
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 on. It just works. However, like Citrix, AVD has quirks also. These are the challenge...
-
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 primary domain failed,” where you see an error when logging in as Local...
-
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 includes a try-catch block to create the event source if it doesn’t already exist. T...
-
Sending an e-Mail using Python and Office365 SMTP
import smtplib from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart # Email server information smtp_server = 'smtp.example.com' smtp_port = 587 # Email content subj...
-
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) that holds the parameters for the robocopy command, including the ...
-
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 New-ScheduledTask cmdlet. Here’s an example command: $action = New-ScheduledTaskAction -Ex...
-
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 to store and manipulate data, and to pass data between commands and scripts. To use v...
-
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 cmdlet and specify the -SearchBase parameter to specify the OU. ...
Page 1 of 5
Next