Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Security problems with executing powershell script with Windows 8

$
0
0

Hello,

I have a problem with executing a  Powershell script on Windows 8 that is executing fine on Windows 7.

The script does the following:
1) Applies a snapshot on a vm in Hyper-V and starts the vm;
2) Copies some files;
3) Starts a new session, because it has to install a problem.
When I run the whole script it stops at 3 and returns the following message:

new-PSSession :  Connecting to remote server NLvSRV-9686 failed with the following error message : WinRM
cannot complete the operation. Verify that the specified computer name is valid, that the computer is accessible over
the network, and that a firewall exception for the WinRM service is enabled and allows access from this computer. By
default, the WinRM firewall exception for public profiles limits access to remote computers within the same local
subnet. For more information, see the about_Remote_Troubleshooting Help topic.

When I skip 1 and 2 the session is connected without any problems. I tried everything .. changing permissions, UAC ..

Somehow hyper-v and new session don't work together. I will post the script if it needed..

Can someone help me?


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>