Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 729
  • Last Modified:

Remote PowerShell script to failover Hyper-V replica

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
ggntt
Asked:
ggntt
  • 2
1 Solution
 
Mahoney-84Commented:
Is winrm running on the destination system.  Also check the get-executionpolicy on the destination.
0
 
ggnttAuthor Commented:
Closing this as I have giving up.
0
 
ggnttAuthor Commented:
Got no where.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Worried about phishing attacks?

90% of attacks start with a phish. It’s critical that IT admins and MSSPs have the right security in place to protect their end users from these phishing attacks. Check out our latest feature brief for tips and tricks to keep your employees off a hackers line!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now