Posts

Showing posts from November, 2021

PowerShell 7.2 is now available for Download

Image
 Great news, PowerShell 7.2 is now avilable for public download. Get PowerShell 7.2 here What is new with PowerShell 7.2 With PowerShell 7.2 there is integration with Microsoft Update, meaning that you installation of PowerShell in the future will be updated via Windows Update with new critical bug fixes or security updates. Enhanced ANSI support PowerShell 7.2 now has Enhanced ANSI support. With ANSI escape sequences, an industry standard way to provide text decoration support between console and a supported terminal. Use of these decorations is a way for commend-line tools and shells to highlight or distinguish information. You might also want to check out the built-in variable called $PSStyle to make your own decoration for your scripts. More information about PowerShell 7.2

Hyper-V PowerShell Commands

Image
If you are running Hyper-V virtual machine you might find this post interesting. There is plenty of PowerShell Cmdlets for managing a Hyper-v environments. Hyper-V Cmdlets In this post I will cover some of the most simple Cmd-Lets you can use to manage your Hyper-V environments. Get-VM: Shows a list of Virtual machines running on your server, with current state and Uptime. Start-VM: Start a given Virtual machine from PowerShell. Stop-VM: Shutdown or turn off a selected VM Save-VM: Save the state of the virtual machine Checkpoint-VM: Creates a Checkpoint for a given VM that you can restore to, if something goes wrong.  Get-VMSnapshot: Get a list of snapshots for given VM. Get-VM In the example below we use Get-VM to get a list of all the Virtual machines running on this server and the current state of these machines: Start-VM In the example below I start the Virtual machine named "Windows 11: Stop-VM In the example below I stop the virtual machine named "Windows 11"

Popular posts from this blog

Use PowerShell to Discover Network Switch and port number

How to get Public IP Using PowerShell

Use ChatGPT to write PowerShell Scripts