Backup-PowerShellProfile

SYNOPSIS

Creates a zip file from the ps profile directories

SYNTAX

Backup-PowerShellProfile [[-ExtraDir] <DirectoryInfo>] [[-DestinationPath] <DirectoryInfo>]
 [<CommonParameters>]

DESCRIPTION

Creates a zip file from the ps profile directories

EXAMPLES

EXAMPLE 1

Backup-PowerShellProfile -DestinationPath c:\temp

PARAMETERS

-ExtraDir

Another Directory to add to the zip file

Type: DirectoryInfo
Parameter Sets: (All)
Aliases:

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

-DestinationPath

Where the zip file will be saved.

Type: DirectoryInfo
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: $([Environment]::GetFolderPath('MyDocuments'))
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

NOTES