PackageDeployment Module Help

Package Deployment Module (DSM eScript Commands)

Show-ADTInstallationRestartPrompt Cmdlet

Version 4.0.0.5

Show-ADTInstallationRestartPrompt

Synopsis

Displays a restart prompt with a countdown to a forced restart.

Syntax

Show-ADTInstallationRestartPrompt [[-CountdownSeconds] <Int32>] [[-CountdownNoHideSeconds] <Int32>] [[-NoSilentRestart] <Boolean>] [-NoCountdown] [[-SilentCountdownSeconds] <Int32>] [[-TopMost] <Boolean>] [[-Context] <String>] [<CommonParameters>]

Description

Displays a restart prompt with a countdown to a forced restart.

Parameters

-Context <String>

User: Execution under user account; logging in HKEY_CURRENT_USER, i.e. for the user.
UserPerService: User-related command, execution in Service context.
Computer: Execution under user account; logging in HKEY_CURRENT_MACHINE, i.e. for the computer.
ComputerPerService: Execution in service context; logging in HKEY_LOCAL_MACHINE, i.e. for the computer.

Required

False

Position

6

Accepts pipeline input

False

-CountdownNoHideSeconds <Int32>

Specifies the number of seconds to display the restart prompt without allowing the window to be hidden. Default: 30

Required

False

Position

1

Accepts pipeline input

False

-CountdownSeconds <Int32>

Specifies the number of seconds to countdown before the system restart. Default: 60

Required

False

Position

0

Accepts pipeline input

False

-NoCountdown <SwitchParameter>

Specifies not to show a countdown. The UI will restore/reposition itself persistently based on the interval value specified in the config file.

Required

False

Position

Named

Accepts pipeline input

False

-NoSilentRestart <Boolean>

Specifies whether the restart should be triggered when Deploy mode is silent or very silent. Default: $true

Required

False

Position

2

Accepts pipeline input

False

-SilentCountdownSeconds <Int32>

Specifies number of seconds to countdown for the restart when the toolkit is running in silent mode and NoSilentRestart is $false. Default: 5

Required

False

Position

3

Accepts pipeline input

False

-TopMost <Boolean>

Specifies whether the windows is the topmost window. Default: $true.

Required

False

Position

4

Accepts pipeline input

False

<CommonParameters>

For more information about common parameters, type "Get-Help about_CommonParameters".