Solved

Remote PowerShell script to failover Hyper-V replica

Posted on 2013-05-21
3
674 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Will try to explain how to use the VMware feature TAGs in the VMs and create Veeam Backup Jobs using TAGs. Since this article is too long, I will create second article for the Veeam tasks.
Last article we focus in how to VMware: How to create and use VMs TAGs – Part 1 so before follow this article and perform the next tasks, you should read the first article how to create the TAG before using them in Veeam Backup Jobs.
In this Micro Tutorial viewers will learn how to restore single file or folder from Bare Metal backup image of their system. Tutorial shows how to restore files and folders from system backup. Often it is not needed to restore entire system when onl…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

706 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

14 Experts available now in Live!

Get 1:1 Help Now