Some Hyper-V VM remote management commands:

For that to work right the VM has to be shut down.

Here a list of Hyper-V Commands
https://technet.microsoft.com/en-us/library/hh848559(v=wps.630).aspx

– Shut down VM

# Get VMs on Host
Get-VM
# Shutdown VM - Forcefully
Stop-VM –VMname <VmName> -Force

– Set the amount of Cores assigned to the VM

# Get all the VMs on the host
Get-VM
# Set the amount of assigned 
Set-VMProcessor -VMname <VmName> -Count 2 -Reserve 10 -Maximum 75 -RelativeWeight 200

– Set Amount of RAM assigned

# Get VMs installed on host
Get-VM
# Assign RAM to VM
Set-VMMemory -VMname <VmName> -DynamicMemoryEnabled $true -MinimumBytes 64MB -StartupBytes 256MB -MaximumBytes 2GB -Priority 80 -Buffer 25

– Start VM back up

# Start Virtual Machine
Start-VM -VMname <VmName>