Automating PowerShell Scripts with Windows Task SchedulerAutomating PowerShell Scripts with Windows Task Scheduler 1. Using Task Scheduler (Graphical Interface) Open Task Scheduler: – Click on Start and type “Task Scheduler” to open it. – Alternatively, find it in the Start Menu under Windows Administrative Tools (or Windows Tools in […]
Powershell
As IT professionals, we perform numerous tasks daily. While automation is crucial, we often wonder if the time invested in scripting pays off. Let’s address this by leveraging AI. Consider a common scenario: managing Azure resources. We want to identify resources lacking proper tags (such as username and environment). Instead […]
PowerShell Copilot is a community-developed module that extends the capabilities of PowerShell by integrating with the GPT-4 language model. This innovative tool is designed to assist users in generating code quickly and efficiently, leveraging the vast repository of code available on GitHub. It’s particularly useful for those new to PowerShell […]
Group Policy is a powerful tool for managing Windows environments, but keeping track of changes can be challenging. In this article, we’ll explore how to use PowerShell to monitor and identify group policy drift, ensuring that your policies remain consistent. Prerequisites Before we begin, ensure you have the following prerequisites: […]
Accessing Azure AD in PowerShell Microsoft Azure Active Directory (Azure AD) is a cloud-based identity and access management service that provides authentication and authorization for applications, services, and users. As a PowerShell enthusiast, understanding how to interact with Azure AD using PowerShell is essential. In this article, we’ll explore the […]
The first online training for PowerShell was a huge success, I actually enjoyed the discussions and the opportunity to showcase what PowerShell does.
Let’s unravel the intricacies of using Windows PowerShell to uncover the nuances between two instances of the same process running on your system. This illuminating technique involves the adept utilization of the Compare-Object cmdlet, revealing insights that might otherwise remain hidden. Imagine you’re on a quest to scrutinize and distinguish […]
The built-in Teams app for Windows is a pre-installed version of Microsoft Teams that comes bundled with the Windows operating system. This integration aims to provide users with seamless access to Teams’ collaboration and communication features right from their desktop, without the need to separately install the application. However, it’s […]
Let’s dive into using Windows PowerShell to set static IP and DNS addresses on a server. In this walkthrough, I’ll walk you through the process with a concise breakdown of the steps. Here’s the script, named `SetStaticIP.ps1`, that performs the IP and DNS configuration: $wmi = Get-WmiObject win32_networkadapterconfiguration -filter “ipenabled […]
For those familiar with Unix or Linux, the concept of parallel processing using jobs isn’t foreign. PowerShell brings forth the ability to execute commands in the background, freeing up the console for other tasks. I explored cmdlets like “Start-Job,” which enable launching multiple jobs simultaneously, thus sidestepping the delay of […]
Toast notifications are a type of unobtrusive and visually appealing pop-up notification that appears on the screen of a Windows device. They are designed to grab the user’s attention without interrupting their workflow. The term “toast” is derived from the way these notifications resemble a slice of toast popping up […]
As mentioned in the previous blog post, as an IT Pro you are usually executing commands within the NT System\Administrator account, meaning you cannot delete files simply on the current logged in user. But fear not, we can fix this with the following PowerShell code: $users = Get-ChildItem “Registry::HKEY_USERS” | […]