Clone a Bootable USB to an ISO

Creating a full, bootable backup of a USB drive as an .iso or .img file is a critical task for IT professionals and tech enthusiasts. Whether you’re archiving a custom Windows installer, preserving a Linux live environment, or creating deployment images, a sector-by-sector clone ensures that the bootloader, partition table, and all data are perfectly preserved. This guide provides three reliable methods to clone a bootable USB drive, catering to different user preferences: the command-line power of PowerShell with WSL, the simplicity of a GUI tool on Windows, and the classic dd command on Linux. ...

November 2, 2025 · The PwshTips Team

Unblock-File Cmdlet in PowerShell

If you’ve ever downloaded a script, installer, or even a help file from the internet, you’ve likely encountered a frustrating Windows security feature: the file is “blocked,” preventing it from running or displaying correctly. This is due to the “Mark of the Web,” a security mechanism designed to protect you from potentially malicious content. PowerShell provides a simple and elegant solution to this problem: the Unblock-File cmdlet. This guide will explain what the Mark of the Web is, how to identify blocked files, and how to use Unblock-File to safely manage them. ...

October 29, 2025 · The PwshTips Team

dsregcmd /status: Windows Identity & Join States

The dsregcmd command-line tool is an indispensable utility for any administrator managing Windows devices in a modern, hybrid environment. It provides a wealth of information about a device’s identity and its join state with both on-premises Active Directory (AD) and cloud-based Azure AD (Entra ID). However, the output can sometimes be confusing. A common scenario is running dsregcmd /status and seeing that AzureAdJoined, EnterpriseJoined, and DomainJoined are all set to NO. While this might look like an error, it simply means the computer is in a standalone workgroup state. ...

October 28, 2025 · The PwshTips Team

Stale Computer Identities in AD & Azure AD

Have you ever removed a computer from an Active Directory (AD) domain, only to find that you can still ping it and connect to it via RDP? This confusing behavior is a common source of frustration for system administrators and is often a symptom of a larger issue: stale computer identities. In a modern, hybrid environment, a single computer can have multiple identities across different systems. Understanding these identities is the key to resolving these conflicts and properly managing your devices. ...

October 28, 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, you can gain control over the taskbar. This guide will walk you through the most effective methods to list, unpin, and manage taskbar items programmatically. ...

October 28, 2025 · The PwshTips Team

Rejoin Windows PC to Active Directory Domain

Leaving and rejoining a Windows computer to an Active Directory (AD) domain is a common troubleshooting step, but it can lead to major headaches if not done correctly, especially in a modern hybrid environment. A common pitfall is being locked out of the machine, unable to log in with a local account because the device is still partially tied to a cloud identity like Azure AD (Microsoft Entra ID). This guide will walk you through the proper way to leave and rejoin a domain, and how to recover if you find yourself locked out. ...

October 28, 2025 · The PwshTips Team

PowerShell & Bash: Cross-Shell Scripting

In a modern Linux environment, it’s increasingly common to find both PowerShell (pwsh) and Bash installed on the same system. This provides a unique opportunity for system administrators and developers to leverage the strengths of both shells. You can use Bash for its powerful text-processing utilities and then pipe the results to PowerShell for its object-oriented data manipulation, or vice versa. This guide will walk you through the techniques for calling Bash from PowerShell and PowerShell from Bash, enabling you to create powerful, cross-shell automation scripts. ...

October 28, 2025 · The PwshTips Team

Fix TPM 2.0 Error on VMware Windows 11

When installing Windows 11 on a VMware virtual machine (Workstation, Player, or ESXi), it’s common to run into a frustrating roadblock: “This PC can’t run Windows 11” or “TPM 2.0 requirement not met.” This error occurs because Windows 11 has stricter security requirements than its predecessors, mandating features that are not enabled by default on most virtual machines. Fortunately, this is easy to fix. This guide will walk you through the best ways to resolve the TPM error, from the official VMware method to simple bypasses. ...

October 28, 2025 · The PwshTips Team

Access a USB Drive in WSL

If you’re a user of the Windows Subsystem for Linux (WSL), you might have noticed that when you plug in a USB flash drive, it doesn’t automatically appear in your Linux environment. Unlike your C: drive, which is typically mounted at /mnt/c, WSL does not automatically mount removable drives. Fortunately, accessing your USB drive from within WSL is a straightforward process. This guide will walk you through the two primary methods for mounting a USB drive in WSL2, from a simple drive letter mount to accessing the raw physical disk. ...

October 28, 2025 · The PwshTips Team

PowerShell SSH Remoting: Windows & Linux

PowerShell Remoting is a powerful feature that allows you to run commands on remote computers. While it traditionally used WinRM on Windows, modern PowerShell (pwsh) can now use SSH as its transport layer. This is a game-changer, as it provides a single, secure, and universal protocol to manage your entire fleet of servers, whether they are running Windows or Linux. This guide will walk you through setting up and using PowerShell SSH remoting, from basic commands to a real-world example of deploying an application to multiple servers at once. ...

October 27, 2025 · The PwshTips Team