Solved

Remote PowerShell script to failover Hyper-V replica

Posted on 2013-05-21
3
680 Views
Last Modified: 2014-11-12
Hi,

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?

Thanks,

GNS
0
Comment
Question by:ggntt
  • 2
3 Comments
 
LVL 3

Expert Comment

by:Mahoney-84
ID: 39193931
Is winrm running on the destination system.  Also check the get-executionpolicy on the destination.
0
 

Accepted Solution

by:
ggntt earned 0 total points
ID: 39363338
Closing this as I have giving up.
0
 

Author Closing Comment

by:ggntt
ID: 39378818
Got no where.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It Is not possible to enable LLDP in vSwitch(at least is not supported by VMware), so in this article we will enable this, and also go trough how to enabled CDP and how to get this information in vSwitches and also in vDS.
Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
In this Micro Tutorial viewers will learn how they can get their files copied out from their unbootable system without need to use recovery services. As an example non-bootable Windows 2012R2 installation is used which has boot problems.
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now