scripts

Backup-SchTasks.ps1

SYNOPSIS

Exports the local list of Scheduled Tasks into a single XML file.

SYNTAX

Backup-SchTasks.ps1 [[-Path] <String>] [-Stylesheet <String>] [-ProgressAction <ActionPreference>]
 [<CommonParameters>]

DESCRIPTION

EXAMPLES

EXAMPLE 1

Backup-SchTasks.ps1

(Backs up Windows Scheduled Tasks to tasks.xml.)

PARAMETERS

-Path

The name of the XML file to export to.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: Tasks.xml
Accept pipeline input: False
Accept wildcard characters: False

-Stylesheet

A CSS or XSLT stylesheet to use when viewing the scheduled tasks XML.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

System.Void

NOTES

https://msdn.microsoft.com/library/windows/desktop/bb736357.aspx