Already a member? Log in

Sign up with your...

or

Sign Up with your email address

Add Tags

Duplicate Tags

Rename Tags

Share It With Others!

Save Link

Sign in

Sign Up with your email address

Sign up

By clicking the button, you agree to the Terms & Conditions.

Forgot Password?

Please enter your username below and press the send button.
A password reset link will be sent to you.

If you are unable to access the email address originally associated with your Delicious account, we recommend creating a new account.

ADVERTISEMENT
ADVERTISEMENT

URL: http://social.technet.microsoft.com/Forums/en-US/virtualmachinemanager/thread/b293be63-db96-4839-be3a-a071369e12af/#ff891718-610f-4c22-b819-25770b59ab69

winrm quickconfig Access denied error.

I have used windows server 2008 r2 64 bit os and I have congin the winrm for remote powershell access using powershell command and I got the below error.

[PS] C:\Windows\system32>winrm quickconfig

WSManFault

    Message = Access is denied.

Error number:  -2147024891 0x80070005

Access is denied.

[PS] C:\Windows\system32>winrm e winrm/config/listener

WSManFault

    Message = Access is denied.

Error number:  -2147024891 0x80070005

Access is denied.

[PS] C:\Windows\system32>

By

A pathfinder..

Jo Swa

Answers

winrm quickconfig must be run in an elevated command prompt on any server.

After it is enabled the elevated command prompt is no longer necessary.

You also need PowerShell 2 installed in addition to the WinRM update.

And on the server side you have to allow it to receive from your client and on the client side you have to set the trusted hosts.

By default WinRM is shut down to local only.  You have to enable the remote features.

the following opens everything up and enables HTTP (in addition to HTTPS) the client settings are requred where the code executes and the server settings on the machine being accessed:

  winrm quickconfig -quiet

  winrm set winrm/config/service '@{AllowUnencrypted="true"}'

  winrm set winrm/config/service/auth '@{Basic="true"}'

  winrm set winrm/config/client '@{AllowUnencrypted="true"}'

  winrm set winrm/config/client '@{TrustedHosts="*"}'

Brian Ehlert (hopefully you have found this useful) http://ITProctology.blogspot.com

I guess that you do not have the required permission to do this task.

Please try to run the cmd-shell as an administrator: "runas /user:Administrator"

Share It With Others!

ADVERTISEMENT
ADVERTISEMENT