启用 PSRemoting 错误

启用 PSRemoting 错误

我管理着一个由 100 多台 2008R2 服务器组成的网络。由于各种原因,网络上没有域。我在Enable-PSRemoting -Force所有服务器上运行。其中一些运行良好,但很多服务器在创建临时文件时出现错误。

PS C:\Users\Administrator> Enable-PSRemoting -Force
WinRM already is set up to receive requests on this machine.
WinRM already is set up for remote management on this machine.
Register-PSSessionConfiguration : Cannot write shell configuration data into temporary file C:\Users\Administrator\AppData\Local\Temp\2\tldeudyv.td3psshell.xml. Try again. Reason for failure: Could not find a part of the path 'C:\Users\Administrator\AppData\Local\Temp\2\tldeudyv.td3psshell.xml'..
At line:57 char:60
+                     $null = Register-PSSessionConfiguration <<<<  Microsoft.PowerShell32 -processorarchitecture x86 -
force
+ CategoryInfo          : InvalidOperation: (:) [Register-PSSessionConfiguration], PSInvalidOperationException
+ FullyQualifiedErrorId : InvalidOperation,Microsoft.PowerShell.Commands.RegisterPSSessionConfigurationCommand

PS C:\Users\Administrator>

除了上述错误之外,它还会在错误日志中产生一个 ID 为 10149 的错误。

Log Name:      System
Source:        Microsoft-Windows-WinRM
Date:          3/6/2017 9:14:31 AM
Event ID:      10149
Task Category: None
Level:         Warning
Keywords:      Classic
User:          N/A
Computer:      CCAC1-16
Description:
The WinRM service is not listening for WS-Management requests. 

 User Action 
 If you did not intentionally stop the service, use the following command to see the WinRM configuration: 

 winrm enumerate winrm/config/listener
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-WinRM" Guid="{A7975C8F-AC13-49F1-87DA-5A984A4AB417}" EventSourceName="WinRM" />
    <EventID Qualifiers="7">10149</EventID>
    <Version>0</Version>
    <Level>3</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2017-03-06T14:14:31.000000000Z" />
    <EventRecordID>45009</EventRecordID>
    <Correlation />
    <Execution ProcessID="0" ThreadID="0" />
    <Channel>System</Channel>
    <Computer>CCAC1-16</Computer>
    <Security />
  </System>
  <EventData Name="Stopped Listening">
  </EventData>
</Event>

相关内容