启用-PSRemoting错误

时间:2017-03-06 15:59:46

标签: powershell

我管理着一个包含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>

0 个答案:

没有答案