Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Remote PowerShell script to failover Hyper-V replica

Posted on 2013-05-21
3
Medium Priority
?
701 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Ransomware is a malware that is again in the list of security  concerns. Not only for companies, but also for Government security and  even at personal use. IT departments should be aware and have the right  knowledge to how to fight it.
In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…

715 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