PowerShell Remoting giving “Access is Denied” error

后端 未结 2 2010
忘掉有多难
忘掉有多难 2020-12-28 14:56

I am trying to use PowerShell Remoting to check some disk sizes from a Server in a remote domain, but the commands I am running are failing to work.

The situation is

相关标签:
2条回答
  • 2020-12-28 15:11

    Had similar problems recently. Would suggest you carefully check if the user you're connecting with has proper authorizations on the remote machine.

    You can review permissions using the following command.

    Set-PSSessionConfiguration -ShowSecurityDescriptorUI -Name Microsoft.PowerShell
    

    Found this tip here (updated link, thanks "unbob"):

    https://devblogs.microsoft.com/scripting/configure-remote-security-settings-for-windows-powershell/

    It fixed it for me.

    0 讨论(0)
  • 2020-12-28 15:14

    Running the command prompt or Powershell ISE as an administrator fixed this for me.

    0 讨论(0)
提交回复
热议问题