Tag
PowerShell
298 articles · Page 5
-
PowerShell Predictive IntelliSense
2020 must have been a busy year because I missed one of the greatest new PowerShell features called Predictive IntelliSense. Back in November 2020, Jason Helmick announced PowerShell PSReadLine 2.1 with Predictive IntelliSense. Update: PSReadLine version…
-
How to check the available VM Sizes (SKUs) by Azure Region
Do you want to know which Azure VM (virtual machine) sizes are available in an Azure region? Here are some simple ways like the Azure product page, the Azure portal, the Azure CLI, or a simple…
-
How to Add Sleep/Wait/Pause in a PowerShell Script
Many of you know the “timeout” command we used when we created Windows Batch scripts. This pauses/waits/sleeps the script for a specific amount of time. In PowerShell, we can use the Start-Sleep cmdlet to suspend/pause/sleep/wait the…
-
Find the Hostname of a Hyper-V VM
If you are running a virtual machine (VM) on Hyper-V, sometimes you want to know on which Hyper-V host this VM is running. If you don’t have access to the Hyper-V host, you need to find…
-
Empty Windows recycle bin with PowerShell
Windows has the concept of the recycle bin, from which you can restore files you have deleted. You might want to clear the Windows recycle bin from time to time, to remove unnecessary files and free…
-
Install Apps from the Microsoft Store using WinGet
Back at Build 2020, Microsoft showed a new package manager for Windows called WinGet (Currently in Public Preview). The winget command-line tool enables IT Pros and developers to discover, install, upgrade, remove, and configure applications on Windows 10…
-
How to Run Scripts in your Azure VM using Run Command
You can access your Azure IaaS virtual machine (VM) in multiple ways like SSH or RDP, depending on your operating system and configuration. However, if you have issues with the RDP or SSH network configuration, you…
-
Force Hyper-V Virtual Machine VM to turn off
In this blog post, we are going to have a look at how you can force a Hyper-V virtual machine (VM) to turn off using the HCSDiag tool. A couple of days ago I had an…
-
Eject ISO from Hyper-V VM using PowerShell
This is one of these quick and dirty blog posts mostly as a note for myself. Hyper-V offers the capability to add an ISO image to a virtual CD/DVD drive and you can use Hyper-V Manager…
-
Connect Azure Cloud Shell to Virtual Network vNet
As you know, Azure Cloud Shell is a great management tool to manage your Azure resources. Azure Cloud Shell is an interactive, authenticated, browser-accessible shell for managing Azure resources. It provides the flexibility of choosing the…










