beckhoff TE1000 — 6.50 Restart-AdsComputer

TcXaeMgmt Version 7.X | Restart-AdsComputer Session Restart-AdsComputer [-Wait] [-WaitTimeout ] [-Delay ] -Session [- Timeout ] [-Quiet] [-WhatIf] [-Confirm] [ ] SessionId Restart-AdsComputer [-Wait] [-WaitTimeout ] [-Delay ] -SessionId [- Timeout ] [-Quiet] [-WhatIf] [-Confirm] [ ] DESCRIPTION The Restart-AdsComputer cmdlet restarts the operating system on the local and remote TwinCAT computers. You can use the parameters of Restart-AdsComputer to specify available ADS target systems to restart. The restart can be done delayed if Users are logged into the target system (existant Session UI) or forced immediatly.

You can wait for the restart to complete before you run the next command and specify a waiting time-out. This feature makes it practical to use Restart-AdsComputer in scripts and functions. EXAMPLES Example 1 PS> Restart-AdsComputer CX_1111,CX_2222 -force Restarts the computers CX_1111 and CX_2222 immediatly without warning logged in users on the target system and returns immediatly without waiting the finished reboot. The Force parameter supresses the ShouldProcess query.

Example 2 PS> Restart-AdsComputer -netId '1.2.3.4.1.1', '1.2.3.5.1.1' -Delay 30 -Wait -WaitTimeout 240 -force Restarts the TwinCAT targets '1.2.3.4.1.1' and 1.2.3.5.1.1' without ShouldProcess query after a delay of 30 Seconds (if a user is logged in) and waits for the reboot before continuing. The Wait timeout is set to 240 Seconds. PARAMETERS -Wait Activates a wait until the rebooted system is available again. The parameter -WaitTimeout specifies how long the script waits for the reboot. Type: SwitchParameter Parameter Sets: (All) Aliases: Required: False Position: Named Default value: False Accept pipeline input: False Accept wildcard characters:

False -WaitTimeout This parameter sets, how long the Restart-AdsComputer cmdlet is waiting for the reboot of the target system in seconds (Default: 300 seconds / 5 Minutes). This gives the system some time to process any outstanding Operating System Updates. This parameter is only used when the -Wait parameter is set. The Wait Timeout in Seconds. Type: Int32 Parameter Sets: (All) Aliases: Required: False TE1000 200 Version: 1.5.0