Automating Office & Active Directory: A Comprehensive Guide

Managing Microsoft Office and Active Directory are core responsibilities for any Windows administrator. This comprehensive guide provides a complete toolkit for automating and troubleshooting these critical systems. You will learn how to perform silent installations of Office 2021 while removing older versions, resolve complex firewall-related activation issues, master the Get-ADUser cmdlet to query and report on AD users, and navigate the tricky process of rejoining a machine to a domain in a hybrid Azure AD environment. This pillar post consolidates four essential guides into a single, indispensable resource for streamlined IT administration. ...

December 25, 2025 · The PwshTips Team

Essential PowerShell Security: Privileges, Firewalls, and File Safety

Security is not an afterthought; it’s a core component of effective system administration. This guide provides PowerShell users with an essential toolkit for managing security-related tasks on Windows. We will cover three critical areas: first, how to handle administrator privilege elevation for both interactive and automated scripts using modern tools like gsudo. Second, you’ll learn to manage the Windows Defender Firewall directly from the command line to control network traffic. Finally, we’ll demystify the ‘Mark of the Web’ and show you how to use the Unblock-File cmdlet to safely run downloaded scripts and executables. This pillar post consolidates three key security topics into one definitive resource. ...

December 25, 2025 · The PwshTips Team

Mastering PowerShell Fundamentals: A Deep Dive into Operators, Objects, and Scripting

PowerShell is more than just a command line; it’s a powerful automation framework built on .NET. This guide covers modern operators that streamline your code, demystify the object-oriented pipeline, manage script paths for portability, leverage the full power of the .NET framework, and handle asynchronous tasks with background jobs. Whether you’re a beginner looking to build a strong foundation or an experienced scripter wanting to fill in some gaps, this guide will equip you with the knowledge to write more robust, efficient, and reliable PowerShell scripts. ...

December 25, 2025 · The PwshTips Team

PowerShell for Cross-Platform Administration

In today’s hybrid IT landscape, administrators rarely work within a single operating system. Mastering cross-platform skills is essential. This guide focuses on leveraging PowerShell as a bridge between Windows and Linux environments. We will explore the core concepts of interoperability, showing you how to seamlessly call Bash from PowerShell, PowerShell from Bash, and mix PowerShell with legacy CMD scripts. We’ll then apply these concepts to a practical, real-world scenario: accessing and managing USB drives within the Windows Subsystem for Linux (WSL). This consolidated guide provides the foundation for building powerful, cross-platform automation. ...

December 25, 2025 · The PwshTips Team

PowerShell for IT Inventory: Getting All Installed Apps from Remote Windows PCs

In the dynamic world of IT administration, keeping an accurate inventory of software installed across all machines is not just a best practice—it’s a necessity. Whether you’re conducting a security audit, ensuring license compliance, troubleshooting application conflicts, or planning system upgrades, knowing exactly what’s running where is paramount. Manually checking each machine is impractical, especially in environments with dozens or hundreds of computers. This guide provides a comprehensive, step-by-step approach to leverage PowerShell’s robust capabilities for remote system management. We’ll show you how to discover target machines within your network using DNS queries, remotely connect to them, extract a detailed list of all installed applications (including DisplayName, DisplayVersion, Publisher, and InstallDate) from both user and system contexts, and finally, compile this invaluable data into a single, easy-to-digest CSV report. By the end of this guide, you’ll have a powerful, automated solution to maintain an up-to-date software inventory across your Windows infrastructure. ...

December 25, 2025 · The PwshTips Team

PowerShell Remoting: The Ultimate Guide to WinRM and SSH

PowerShell Remoting is a cornerstone of Windows administration and automation. For years, it was synonymous with one protocol: WinRM. But with modern PowerShell and the ubiquity of SSH, we now have a powerful, cross-platform alternative. So, which protocol should you use? WinRM or SSH? This guide provides the definitive answer. We’ll explore the fundamental differences between the protocols, provide practical, step-by-step instructions for using both, and give clear recommendations for when to choose each one. ...

December 14, 2025 · The PwshTips Team

File Transfer Speed: SCP vs. Robocopy vs. Copy-Item

When it comes to transferring large files (10–100 GB) between Windows systems, the tool I choose can have a massive impact on speed, reliability, and security. In this ultimate showdown, I compare three titans of file transfer: the secure and universal SCP (OpenSSH), the multi-threaded powerhouse Robocopy (SMB), and the PowerShell-native Copy-Item (WinRM). I tested them across different network conditions, from a high-speed 10 GbE LAN to a real-world 5G wireless connection, to help me decide which tool reigns supreme for my specific needs. ...

November 7, 2025 · The PwshTips Team

Manage Pinned Taskbar Items with PowerShell

For system administrators, creating a standardized desktop environment often involves customizing the Windows taskbar. While pinning items is easy for a user, automating the process of listing or unpinning applications can be surprisingly difficult. Windows intentionally does not provide a simple, built-in command to manage pinned items to prevent applications from pinning themselves without user consent. However, with a bit of PowerShell scripting, I can gain control over the taskbar. This guide will walk through the most effective methods I use to list, unpin, and manage taskbar items programmatically. ...

October 28, 2025 · The PwshTips Team