< Back

Add-MrStartupVariable

Sat Jan 18, 2020 4:34 pm

NAME Add-MrStartupVariable



SYNOPSIS

Add variable for list of startup variables.





SYNTAX

Add-MrStartupVariable [-Location] <Object> [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Add variable for list of startup variables to the specified PowerShell profile. Create the specified PowerShell

profile if it does not exist. Only adds the variable and code to populate the variable if it does not already

exist.

Designed to be used in conjunction with Remove-MrUserVariable.





PARAMETERS

-Location <Object>

Location of the PowerShell profile to add the startup variable to.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None





OUTPUTS

None





NOTES





Author: Mike F Robbins

Website: http://mikefrobbins.com

Twitter: @mikefrobbins



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Add-MrStartupVariable -Location AllUsersCurrentHost















RELATED LINKS





CommonParameters : True

WorkflowCommonParameters : False

details : @{name=ConvertTo-MrHashTable; noun=; verb=}

Syntax : @{syntaxItem=System.Object[]}

parameters : @{parameter=System.Object[]}

inputTypes : @{inputType=}

returnValues : @{returnValue=}

aliases : None



remarks : None

alertSet :

description :

examples :

Synopsis :

ConvertTo-MrHashTable [-Object] <psobject[]> [<CommonParameters>]



ModuleName : MrToolkit

nonTerminatingErrors :

xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10

xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10

xmlns:maml : http://schemas.microsoft.com/maml/2004/10

Name : ConvertTo-MrHashTable

Category : Function

Component :

Role :

Functionality :