Imports from a single XML file into the local Scheduled Tasks.
Restore-SchTasks.ps1 [[-Path] <String>] [-Exclude <String>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
Restore-SchTasks.ps1
(Imports scheduled tasks from tasks.xml, prompting for passwords as needed.)
The file to import tasks from, as exported from Backup-SchTasks.ps1.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: Tasks.xml
Accept pipeline input: False
Accept wildcard characters: False
A wildcard pattern to match task “paths” (including folders) to skip.
User tasks are usually just in the root, and generally machine-specific tasks Microsoft automatically sets up are in folders so this is ** by default to exclude the weird magic tasks.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: *\*
Accept pipeline input: False
Accept wildcard characters: False
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
https://msdn.microsoft.com/library/windows/desktop/bb736357.aspx