Remote PowerShell script to failover Hyper-V replica
Posted on 2013-05-21
I need to get a Windows 7 SP1 client PC to remotely failover a Replica VM by running a script. but, I cannot seem to enable Remote PowerShell on the Hyper-V server for the PC.
Enter-PSSession -ComputerName TCHYPERV01 -Credential DOMAIN\PowerShell
Get-VMReplication (This cmd is just for testing script)
This asks me for my Password (I would like the password auto saved in the script), but then it displays and error about remote script are not enabled / allowed.
Am I missing something?