Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Set JournalDefaultLocation

Nick Spreitzer edited this page Feb 17, 2020 · 1 revision
external help file: JournalCli.dll-Help.xml
Module Name: JournalCli
online version:
schema: 2.0.0

Set-JournalDefaultLocation

SYNOPSIS

Sets the default location on disk for the journal.

SYNTAX

Set-JournalDefaultLocation [-Location] <String> [<CommonParameters>]

DESCRIPTION

Setting the default location for the journal allows you to omit the -Location parameter from most other JournalCli cmdlets. Further, you can have one default journal location while also maintaining other, secondary locations where additional journals are stored. When executing commands against a secondary journal location, the -Location will be necessary in order to override the default.

EXAMPLES

Example 1

PS C:\> Set-JournalDefaultLocation C:\Users\EHumperdinck\Documents\Journal

Sets the default journal location to C:\Users\EHumperdinck\Documents\Journal

PARAMETERS

-Location

The root directory for the journal to search for entries. This is only required if no default journal location has been set, or to search a non-default location.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
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.Object

NOTES

RELATED LINKS