logo logo

Set a Virtual Machine’s automatic stop action from PowerShell

If you use a virtual machine on Hyper-V Core to manage the Hyper-V operating system, you cannot make changes to the virtual machine that require powering it off because you can’t access the Server...

Enable Remote Disk Management on Hyper-V Core OS

On the HyperV Core, under PowerShell run the following Enable-NetFirewallRule -name RVM-RPCSS-In-TCP,RVM-VDSLDR-In-TCP,RVM-VDS-In-TCP Configure-smremoting.exe -enable Enable-NetFirewallRule -DisplayGroup...

After performing Physical to Virtual conversion, Virtual Machine will not boot due to Access Denied error

The VHDX file needs permissions for the VM GUID to access full control over the file. Essentially, copy down the VM ID. You can get this ID by hitting the “More” link on the error message that...

Configure Hyper-V Core firewall from PowerShell

Run the following command on Hyper-V Core PowerShell to enable RDP access Enable-netfirewallrule -displayname "Remote Desktop - User Mode...

Hyper-V Virtual Machine is completely unresponsive and in a warning state

Virtual Machine won’t shut down, stop, reboot, or respond to anything. It is in a warning state and claims you can’t do anything to it in its current state and has been like that for 10 hours....

Change Hyper-V Virtual Machine RAM settings from PowerShell

From PowerShell you can type:Set-VMMemory serverName -DynamicEnabled $false -StartupBytes 1000mb For example to turn off dynamic memory use and set the ram to 1gb. The virtual machine has to be off to do...
bottom