Skip to content

Latest commit

 

History

History
105 lines (71 loc) · 2.14 KB

Register-Advice.md

File metadata and controls

105 lines (71 loc) · 2.14 KB
external help file Module Name online version schema
PSKoans-help.xml
PSKoans
2.0.0

Register-Advice

SYNOPSIS

Causes powershell to write a random piece of advice on each start.

SYNTAX

Register-Advice [[-TargetProfile] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Causes powershell to write a random piece of advice on each start. This is done by creating / modifying the powershell profile to call Show-Advice on each session start.

EXAMPLES

EXAMPLE 1

Register-Advice

Causes powershell to write a random piece of advice on each start.

PARAMETERS

-Confirm

Prompts you for confirmation before modifying your profile.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

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

-TargetProfile

Specify a named profile to modify.

Type: String
Parameter Sets: (All)
Aliases:
Accepted values: AllUsersAllHosts, AllUsersCurrentHost, CurrentUserAllHosts, CurrentUserCurrentHost

Required: False
Position: 0
Default value: CurrentUserCurrentHost
Accept pipeline input: False
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

OUTPUTS

System.Void

NOTES

Author: Friedrich Weinmann (@FriedrichWeinmann)

RELATED LINKS

Show-Advice

PSKoans