You can configure various settings for BitLocker using group policies, but this doesn't initiate encryption. Similarly, it doesn't create...
Tag Archive for: powershell
4sysops - The online community for SysAdmins and DevOps
Connect to Exchange Online with PowerShell and certificate-based authentication

Connecting to Exchange Online with PowerShell to automate tasks was made slightly more challenging when Microsoft discontinued basic authentication...
Connect to Exchange Online with PowerShell

Learn how to connect to Exchange Online PowerShell using multifactor authentication.
How to map a network drive with PowerShell

If you want to assign a drive letter to file shares via the command line, you can use PowerShell...
ScriptRunner Portal Edition R5—New Query configuration and Action configuration

ScriptRunner provides a centralized management interface for PowerShell scripts, allowing users, even with little or no scripting experience, to...
Resolve-DnsName: nslookup for PowerShell

nslookup has established itself as a popular tool for troubleshooting DNS problems. It exists on multiple platforms, including Windows....
Bitwise operators in PowerShell: -band, -bor, -bxor, -bnot, -shl, and -shr

PowerShell provides multiple operators to manipulate binary numbers at the bit level. In addition to an AND and an...
How to change the PowerShell prompt

All modern shells and command lines offer a prompt that provides the user with essential information about his context....
Azure PowerShell vs. Azure CLI

In your work in Microsoft Azure, should you focus your energies on Azure PowerShell, Azure CLI, or both? This...
Trim characters from strings in PowerShell

Most programming languages provide string functions that can be used to selectively truncate leading or trailing characters. String objects...
Unlock AD accounts with PowerShell

IT admins or helpdesk teams often use graphical tools, such as Active Directory Users and Computers (ADUC), to unlock...
If a Windows service hangs, restart the service with PowerShell

That a Windows service hangs (that is, becomes unresponsive or fails to stop) is a common issue admins face....
Find and remove duplicate files with PowerShell

You can use PowerShell to find and remove duplicate files that are only wasting valuable storage. Once you identify...
PsInfo: Get disk space, installed applications, and other information about local and remote Windows systems

PsInfo, a command-line tool that is part of the Sysinternals suite, gets key information about Windows systems, such as...
Use PowerShell splatting and PSBoundParameters to pass parameters

The automatic variable PSBoundParameters stores the parameters that you explicitly passed to a function in a hash table. With...
Install, remove, list, and set default printer with PowerShell

With PowerShell, you can easily install a printer driver, add a printer to the repository, and then add a...
Format time and date output of PowerShell New-TimeSpan

My function, Get-TimespanPretty, allows you to view the time span—the difference between two time points or dates—in a compact,...
Configuring the cloud clipboard in Windows 10/11 with Group Policy and PowerShell

In Windows 10 1809, Microsoft introduced a clipboard with multiple entries and added the ability to sync its contents...
Common BitLocker errors

In my previous post, I explained how to enable BitLocker with PowerShell and how to unlock, suspend, resume, and...
Unlock, suspend, resume, and disable BitLocker with PowerShell

In my last post, I outlined how you can enable BitLocker with PowerShell and manage key protectors. Today, I...