windows - 重新启动 WinRM 服务
问题描述
我试图在多台服务器上重新启动 winRM 服务,但是我得到了以下错误我可以得到建议。
Restart-Service -ComputerName (Get-Content G:\12282019\Servers.txt) -ServiceName WinRM
错误:
重新启动服务:找不到与参数名称“计算机名称”匹配的参数。在 line:1 char:17 + restart-service -ComputerName (Get-Content G:\12282019\Servers.txt) - ... + ~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: ( :) [Restart-Service], ParameterBindingException + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.RestartServiceCommand
解决方案
推荐阅读
- c# - Unity LineRenderer.GetPositions 未按预期工作
- python - Tkinter窗口到pdf
- python - 将数据从 I2C 传感器发送到本地 SQL 数据库的 Python 代码
- excel - 在Visual Basic中从位置到结尾删除字符串的一部分
- spring - 向 Spring Boot 应用程序添加网关功能
- javascript - Angular 自动转义 HTML
- dockerfile - yaml:第 8 行:没有找到预期的密钥
- c - 警告:从不兼容的指针类型 const int (*)[3] 分配给 int **
- python - 使用 PyPy 时 DeepCopy 很慢
- python - 在python中使用for循环迭代的有序多线程