PowerShell Snippets: Write-Output

PowerShellThis post is part of the series on PowerShell Snippets.

The following PowerShell command will output the supplied message to the PowerShell console (replace the highlighted section with the message to output):

Write-Output {message]

PowerShell Snippets: Series Index

PowerShellFrom time to time, I write snippets of PowerShell, which I am going to post into this series for easy recall in future.

PowerShell Snippets
Write-Output
Start-Sleep
PowerShell to run script bypassing execution policy
Unlock BitLocker protected drive with PowerShell
Run escalated PowerShell script from a batch file
Output list of folders and sub-folders
Delete File
Run Application (Such as 7-zip)
Format Json for Curl
Use Curl
Use Curl
Use Curl
Use Curl
Get One Value from GitHub Json
Get Numeric Value from String
Prompt for User Input
Prompt User for Password
Prompt for Multiple Inputs
Prompt for Multiple Inputs

Network Shell Snippets: Delete Bound SSL Certificate

PowerShellThis post is part of the series on Network Shell Snippets.

The following Network Shell command will delete the bound SSL certificate:

netsh http delete sslcert ipport=0.0.0.0:48666

Change the highlighted section to the port number to which the SSL certificate is bound.

Network Shell Snippets: Delete URL Reservation

PowerShellThis post is part of the series on Network Shell Snippets.

The following Network Shell command will delete the specified URL reservations:

netsh http delete urlacl URL={reserved url}

Replace the highlighted section, including the curly brackets, with the URL reservation to be removed.

PowerShell for Hyper-V: Resume VM

Hyper-VThis post is part of the series on PowerShell for Hyper-V.

The following PowerShell command can be used to resume a suspended virtual machine (replace the highlighted section with the name of your virtual machine):

Resume-VM -Name {VM name}

PowerShell for Hyper-V: Suspend VM

Hyper-VThis post is part of the series on PowerShell for Hyper-V.

The following PowerShell command can be used to suspend (pause) a virtual machine (replace the highlighted section with the name of your virtual machine):

Suspend-VM -Name {VM name}

Edge Canary: Dark Mode

Edge CanaryMicrosoft have recently announced they are ditching the current version of their Edge browser in favour of a Chromium based browser. In this series, I am going to take a look at the Canary version of this new browser.

Microsoft have been adding dark modes to other applications and websites, but have unfortunately not done so with the new Edge. At the least I’d expect it to respect the Windows themes settings, if not to have a separate option within the browser.

The other way this might be handled is via a theme, but Edge doesn’t seem to support themes. I did try to install a theme from the Chrome Web Store and an error was produced.

Adding a dark mode or support for themes may be on the Microsoft roadmap for Edge, but I’ve not been able to find any information on this.

PowerShell for Hyper-V: Save VM

Hyper-VThis post is part of the series on PowerShell for Hyper-V.

The following PowerShell command can be used to save a virtual machine (replace the highlighted section with the name of your virtual machine):

Save-VM -Name {VM name}