Solved

Remote PowerShell script to failover Hyper-V replica

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

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 article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…
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…

815 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

8 Experts available now in Live!

Get 1:1 Help Now