external help file | Module Name | online version | schema |
---|---|---|---|
PSTimers-help.xml |
PSTimers |
2.0.0 |
Export a timer object to an XML file.
Export-MyTimer [[-Name] <String>] -Path <String> [-WhatIf] [-Confirm] [<CommonParameters>]
Use this command to export timer objects to a file. You might want to do this if the "timer" is still running and you will use it in a later PowerShell session.
The default behavior is to export all timer variables or you can select specific ones by name.
PS C:\> Export-MyTimer -path c:\work\MyTimers.xml
Export all timers to the specified file.
PS C:\> Export-MyTimer T1 -path c:\work\T1.xml
Export a single timer.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
The name of a timer to export. The default is to export all timers.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The file name for the XML file to create.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: False
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 (http://go.microsoft.com/fwlink/?LinkID=113216).
Learn more about PowerShell: http://jdhitsolutions.com/blog/essential-powershell-resources/