How to Show Logged-In Users with PowerShell

Show Logged-In Users with PowerShell

Recently, I got a requirement to show logged-in users. In this tutorial, I will explain how to show logged-in users with PowerShell. For each method, I will provide you with some real-world examples. Note: You need to have administrative privileges on the machine, and you should have PowerShell 5.1 or later installed. Now, let me … Read more

How to Add a Computer to a Domain Using PowerShell

In today’s tutorial, we will discuss an advanced topic. Here, I will explain how to add a computer to a domain using PowerShell. This will help you to add computers to your domain, ensuring they are correctly configured and managed within your network. Prerequisites Here are some prerequisites that you should follow before trying to … Read more

Set the Default Printer Using PowerShell in Windows

Recently, I was helping an organization automate their workstation setup process, and one of the requirements was to set the default printer via script. If you manage multiple computers or frequently need to switch your default printer, it’s a good idea to use PowerShell. In this tutorial, I will show you several ways to set … Read more

Set Password Never Expires for Local User Using PowerShell

Recently, I was working on a project where I had to manage several local user accounts on multiple Windows machines. One common requirement was to set certain accounts to have passwords that never expire, especially for service accounts where password changes could cause service interruptions. While you can do this manually through the GUI, it … Read more

Set Password for Local User in Windows 11 Using PowerShell

Recently, I assisted a client in securing their Windows 11 workstations by implementing effective password management for local user accounts. While many administrators rely on the graphical user interface (GUI) for this task, I find that PowerShell offers greater flexibility and efficiency. In this article, I will share multiple methods to set or change passwords … Read more

How to Set the Time Zone Using PowerShell in Windows

Set the Time Zone Using PowerShell

As an IT administrator, you may be required to set the correct time zone across multiple servers located in different regions. This is a common requirement. You can easily achieve this using PowerShell. In this tutorial, I will explain how to set the time zone using PowerShell in Windows. In PowerShell, you can use the … Read more

How to Set Folder Permissions Using PowerShell

Set Folder Permissions Using PowerShell

Today, I got an interesting requirement from one of my clients. They wanted to set permissions for a folder and nested folders. In this tutorial, I will explain how to set folder permissions using PowerShell. Before setting permissions, let us first understand what NTFS permissions. Understanding NTFS Permissions NTFS (New Technology File System) permissions control … Read more

How to Update PowerShell on Windows 11?

Update PowerShell on Windows 11

In this tutorial, I will explain how to update PowerShell on Windows 11. You need to update PowerShell to get the latest features, security updates, and performance improvements. There are several methods for updating PowerShell on Windows. Let me show you. Before you start the update, ensure you have administrative privileges, as you will need … Read more

How to Get Default Browser Using PowerShell?

PowerShell Get Default Browser

If you are a system administrator, you might need to determine the default browser on multiple machines within your network. Using PowerShell, you can easily get a system’s default browser. In this tutorial, I will explain how to get the default browser using PowerShell. Note: You should have administrative privileges on the machine(s) you are … Read more

100 PowerShell cmdlets download free

100 POWERSHELL CMDLETS E-BOOK

FREE Download an eBook that contains 100 PowerShell cmdlets with complete script and examples.