/ / PowerShell एक्सेस केवल स्थानीय उपयोगकर्ता के लिए अस्वीकृत है जो व्यवस्थापक भी है लेकिन डोमेन उपयोगकर्ता के लिए नहीं जो स्थानीय व्यवस्थापक है - शक्तियां, शक्तियां- v2.0, पॉवरशेल-रीमोटिंग

पावरशेल एक्सेस केवल स्थानीय उपयोगकर्ता के लिए अस्वीकृत है जो व्यवस्थापक भी है लेकिन डोमेन उपयोगकर्ता के लिए नहीं है जो स्थानीय व्यवस्थापक है - पावरहेल, पावरहेल-वी 2.0, पावरहेल-रीमोटिंग

हम निम्नलिखित आदेश का उपयोग करके PSRemoting के लिए एक मशीन सेटअप करने का प्रयास कर रहे हैं

Set-PSSessionConfiguration -Name Microsoft.PowerShell -showSecurityDescriptorUI

किसी कारण से यह केवल तब काम करता है जब हम एक डोमेन उपयोगकर्ता के संदर्भ में शक्तियां खोलते हैं जो एक स्थानीय व्यवस्थापक है।

PS C:Windowssystem32> Set-PSSessionConfiguration -Name Microsoft.PowerShell -showSecurityDescriptorUI

Confirm
Are you sure you want to perform this action?
Performing operation "Set-PSSessionConfiguration" on Target "Name:
Microsoft.PowerShell".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help
(default is "Y"):A
Access is denied.
At line:15 char:26
+    if ((!$pluginName) -or <<<<  !(test-path "$pluginDir"))
+ CategoryInfo          : InvalidOperation: (:) [], InvalidOperationExcept
ion
+ FullyQualifiedErrorId : WsManError

Join-Path : Access is denied.
At line:22 char:35
+    $pluginFileNamePath = Join-Path <<<<  "$pluginDir" "FileName"
+ CategoryInfo          : NotSpecified: (:) [Join-Path], InvalidOperationE
xception
+ FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.Power
Shell.Commands.JoinPathCommand

Test-Path : Cannot bind argument to parameter "Path" because it is an empty str
ing.
At line:23 char:19
+    if (!(test-path <<<<  "$pluginFileNamePath"))
+ CategoryInfo          : InvalidData: (:) [Test-Path], ParameterBindingVa
lidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAl
lowed,Microsoft.PowerShell.Commands.TestPathCommand

Get-Item : Cannot bind argument to parameter "LiteralPath" because it is an emp
ty string.
At line:29 char:43
+    $pluginFileName = get-item -literalpath <<<<  "$pluginFileNamePath"
+ CategoryInfo          : InvalidData: (:) [Get-Item], ParameterBindingVal
idationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAl
lowed,Microsoft.PowerShell.Commands.GetItemCommand

Set-PSSessionConfiguration : Session Configuration "Microsoft.PowerShell" is no
t a PowerShell based shell.
At line:89 char:27
+ Set-PSSessionConfiguration <<<<  $args[0] $args[1] $args[2] $args[3] $args[4]
$args[5] $args[6] $args[7] $args[8]
+ CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorExcep
tion
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorExceptio
n,Set-PSSessionConfiguration

PS C:Windowssystem32>

यह मुझे दिखता है कि कुछ ऐसा है जो इसे एक्सेस करने से रोक रहा है wsman:localhostplugin लेकिन "यह नहीं समझ सकते कि यह कैसे तय किया जा सकता है। यह केवल हमारे परीक्षण बिस्तर में होता है, लेकिन हमारे विकास के माहौल में हमारे पास ऐसे कोई मुद्दे नहीं हैं।

क्या किसी के पास इस बात के लिए कोई सुराग नहीं है कि स्थानीय कमांड उपयोगकर्ता के पास काम करने के लिए इस कमांड के लिए अतिरिक्त उपयोगकर्ता पहुंच क्या है?

उत्तर:

जवाब के लिए 0 № 1

यहाँ एक आलेख है जो बताता है कि इस समस्या को कैसे हल किया जाए ... मूल रूप से इसे ठीक करने के लिए आप रजिस्ट्री में TrueAccountTokenFilterPolicy True पर सेट करें।

http://www.shirmanov.com/2011/04/winrm-access-is-denied-on-local.html