Move-PSKoanLibrary
July 10, 2020 ยท View on GitHub
SYNOPSIS
Move your entire current PSKoans library folder to another location and update your KoanLocation setting to reflect the new location.
SYNTAX
Move-PSKoanLibrary [-Path] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Move-PSKoanLibrary takes your current PSKoans library location and moves the folder to the specified destination.
Then, it updates the current KoanLocation setting to point to the new location.
EXAMPLES
Example
PS C:\> Move-PSKoanLibrary -Path C:\Users\Joe\OneDrive
Moves Joe's koan library into his OneDrive directory.
PARAMETERS
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Path
The path to the new library location. This path can be relative to the current session location, but cannot contain wildcards.
Type: String
Parameter Sets: (All)
Aliases: PSPath, Folder, Destination, TargetPath
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
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
None
OUTPUTS
System.Void
NOTES
Author: Joel Sallow (@vexx32)