PowerShell 複製 Restart-Computer [-WsmanAuthentication <String>] [[-ComputerName] <String[]>] [[-Credential]<PSCredential>] [-Force] [-Wait] [-Timeout <Int32>] [-For <WaitForServiceTypes>] [-Delay <Int16>] [-WhatIf] [-Confirm] [<CommonParameters>]...
问start-job scriptblock中的Restart-computer命令总是以“blocked”状态返回EN概述 相信大家对后台...
Restart-Computer [[-ComputerName*] <System.String[]>] [[-Credential] <System.Management.Automation.PSCredential>] [-Delay <System.Int16>] [-For {Wmi | WinRM | PowerShell}] [-Force] [-Timeout <System.Int32>] [-Wait] [-WsmanAuthentication {Basic* | CredSSP | Default | Digest | Ke...
Gets an object that surfaces the current PowerShell transaction. When this object is disposed, PowerShell resets the active transaction. (Inherited from Cmdlet) Delay Specify the Delay parameter. The specific time interval (in second) to wait between network pings or service queries. Events Ge...
Microsoft.PowerShell.Commands.Management v7.4.0 Specify the Timeout parameter. Negative value indicates wait infinitely. Positive value indicates the seconds to wait before timeout. C++ public: propertyintTimeout {intget();voidset(intvalue); }; ...
Microsoft.PowerShell.Commands.Management.dll Package: Microsoft.PowerShell.Commands.Management v7.4.0 Cmdlet to restart computer. C++Copy publicrefclassRestartComputerCommand:System::Management::Automation::PSCmdlet, IDisposable Inheritance Object InternalCommand ...
Restart-Computer -ComputerName Computer01 -Wait -For PowerShell -Timeout 600 -Delay 5 Above command will restart computer named Computer01. It will wait for restart to finish for 10 mins. Here, for specifies that powershell can run commands on remote computer. Delay is used to query remote...
Microsoft.PowerShell.Commands Assembly: Microsoft.PowerShell.Commands.Management.dll Package: Microsoft.PowerShell.Commands.Management v7.4.0 The timeout value specified by the user. It indicates the seconds to wait before timeout. C++ public: propertyintTimeout {intget(); }; ...
Specify the Timeout parameter. Negative value indicates wait infinitely. Positive value indicates the seconds to wait before timeout.
Construct a RestartComputerTimeoutException C++ 複製 public: RestartComputerTimeoutException(); Applies to PowerShell SDK 7.4.0 和其他版本 產品版本 PowerShell SDK 7.2.0, 7.3.0, 7.4.0 Windows PowerShell 5.1.0.0 RestartComputerTimeoutException(String) Constructs a RestartComputerTimeout...