In the previous tip we introduced the PowerShell “SmbShare” module which comes with Windows and enables you to manage file shares. We looked at the...
ps1
Reading Installed Software (Part 1)
In the previous tip we introduced the PowerShell “SmbShare” module which comes with Windows and enables you to manage file shares. We looked at the...
Keeping Windows (and PowerShell) Running
In the previous tip we introduced the PowerShell “SmbShare” module which comes with Windows and enables you to manage file shares. We looked at the...
Reading Event Logs (Part 4)
In the previous tip we introduced the PowerShell “SmbShare” module which comes with Windows and enables you to manage file shares. We looked at the...
Reading Event Logs (Part 3)
In the previous tip we introduced the PowerShell “SmbShare” module which comes with Windows and enables you to manage file shares. We looked at the...
Reading Event Logs (Part 2)
In the previous tip we introduced the PowerShell “SmbShare” module which comes with Windows and enables you to manage file shares. We looked at the...
Reading Event Logs (Part 1)
In the previous tip we introduced the PowerShell “SmbShare” module which comes with Windows and enables you to manage file shares. We looked at the...
Reading Last Logged-On User and Other Registry Values
In the previous tip we introduced the PowerShell “SmbShare” module which comes with Windows and enables you to manage file shares. We looked at the...
Constant Functions
In PowerShell, you can write-protect functions. When you do, a function cannot be changed, overwritten or removed anymore during a running...
Suppressing Errors
With cmdlets, suppressing errors seems easy: simply add the –ErrorAction Ignore parameter. However, it turns out that this doesn’t...
Finding PowerShell Host Arguments and Executable
PowerShell hosts may be launched with arguments, i.e. you may run powershell.exe or pwsh.exe with arguments like –NoProfile, or submit paths...
Managing Installed Modules (Part 2)
Whenever you install new modules via Install-Module or update existing modules via Update-Module, new module versions are installed side-by-side. If...
Managing Installed Modules (Part 1)
When you install new PowerShell modules via Install-Module, PowerShell remembers the install location. So it is easy to get a list of modules you...
Repairing PowerShell Gallery Access
The PowerShell Gallery (www.powershellgallery.com) is a perfect place to look for new PowerShell commands. With Install-Module, you can easily...
Creating Icons
In the previous tip we showed how you can fine-tune „Windows Terminal“ and add new entries to the list of launchable applications. If...
Fine-Tuning Windows Terminal
In the previous tips we explained how you can install „Windows Terminal“ on Windows 10 via the Microsoft Store. Windows Terminal...
Turn Windows Terminal into a Portable App
On Windows 10, there is a new and awesome tool available for any PowerShell user: Windows Terminal. It lets you use multiple PowerShell and other...
Launching Windows Terminal for Any User
On Windows 10, there is a new and awesome tool available for any PowerShell user: Windows Terminal. It lets you use multiple PowerShell and other...
Permanently Deleting AD Objects
Many Active Directory objects are protected from deletion. When you try to delete them, you get an error, preventing you from accidentally removing...
Deploy PowerShell as Clickable Icons (Part 2)
In the previous tip we illustrated how you can embed up to 4096 characters of PowerShell code inside a Windows Explorer shortcut file and produce...
Deploy PowerShell as Clickable Icons (Part 1)
You can use .lnk files to deploy small PowerShell solutions to end users. Here’s how: Take below code, and replace the payload code inside...
Test-Driving New SSH Remoting
If you’d like to test-drive the new PowerShell remoting alternative that is using SSH instead of WinRM, make sure you install PowerShell 7...
Test Whether Applications Exist
Here is a simple one-liner that can test whether PowerShell 7 is installed on your system (or any other application): # name of application you want...
Converting File Paths to 8.3 (Part 2)
In the previous post we explained how you can use an old COM component to convert default long path names to short 8.3 path names. While...