In this article, I outline why I chose the Go programming language over PowerShell, Python, and JavaScript for my...
Tag Archive for: powershell
4sysops - The online community for SysAdmins and DevOps
Restore Azure Files with PowerShell

On Azure, the files in file shares can be protected with integration of a Recovery Services vault. In this...
Using PowerShell with $PSStyle

PowerShell 7.2 introduced the automatic variable $PSStyle for a new feature called PSAnsiRendering. In this post, I show you...
FileZilla: Migrate settings and connections, read stored passwords

The open-source FTP client FileZilla offers the option of saving connections, including passwords. If you have entered many FTP...
Perform Active Directory security assessment using PowerShell

My Active Directory security assessment script pulls important security facts from Active Directory and generates nicely viewable reports in...
Configure iSCSI connections with PowerShell

Windows offers the iSCSI initiator applet, which enables configuring iSCSI connections interactively. However, if you want to automate connecting...
Manage Activity Logs in Azure using PowerShell

When we need to monitor Azure activities, we use Azure Activity Logs. These logs are automatically created in Azure...
Compress-Vhdx: Compress multiple VHDX files using the PowerShell cmdlet Optimize-VHD

My PowerShell function Compress-Vhdx allows you to compress multiple VHDX files with a single command to reclaim space from...
Running PowerShell scripts remotely on Azure virtual machines

With organizations moving more workloads into Azure, administrators now have more options for running PowerShell commands and scripts across...
Boost PowerShell with Resource Graph queries in Azure

Can you imagine how long it would take to generate a list of VMs across hundreds of subscriptions on...
Rename files with PowerShell

In this beginner's guide, you will learn how to rename files with PowerShell. I will demonstrate how to list...
Interact with Azure Cosmos DB with PowerShell

Learn how to perform core administrative tasks on the Azure Cosmos DB using Azure PowerShell.
Powerline: Customize your PowerShell console

Learn how to customize your PowerShell console to display meaningful metadata in your Windows command shell with Powerline.
Manage Azure Policy using PowerShell

Azure policies are becoming increasingly popular, as they provide a wide range of management capabilities over Azure resources. Not...
How to reset an Active Directory password with PowerShell

Active Directory (AD) account password reset is a common task for support personnel. In this post, we will take...
Display the progress of long-running tasks in PowerShell with Show-Progress instead of Write-Progress

The Show-Progress function provides a nice, compact way to display the progress of longer-running tasks in PowerShell. You can...
ScriptRunner Portal Edition: Manage PowerShell scripts throughout your organization

Managing PowerShell across an organization can be difficult. ScriptRunner Portal Edition R1 is a PowerShell management platform with a...
Import Microsoft Defender Firewall rules from an Excel sheet with PowerShell in Windows 10

With my PowerShell script, you can easily import rules from an Excel sheet to the Microsoft Defender Firewall in...
How to install the PowerShell 7 Active Directory module

Officially, the Active Directory module for PowerShell 7 is only supported for Windows 10 and Windows Server 2019. However,...
Using the Convert-EventLogRecord function alongside the Get-WinEvent PowerShell cmdlet to search Windows event logs

Finding a particular event in the Windows Event Viewer to troubleshoot a certain issue is often a difficult, cumbersome...