< Back

Remove-MrUserVariable

Sat Jan 18, 2020 4:37 pm

NAME Remove-MrUserVariable



SYNOPSIS

Removes user defined variables.





SYNTAX

Remove-MrUserVariable [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Removes user defined variables from the PowerShell ISE or console. $StartupVars must be defined prior to running

this function, preferably in a profile script. Populate $StartUpVars with 'Get-Variable | Select-Object

-ExpandProperty

Name'. All variables added after populating $StartupVars will be removed when this function is run.





PARAMETERS

-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:\\>Remove-MrUserVariable















RELATED LINKS