NAME

Set-HPOVPrompt

SYNOPSIS

Modify the HPOneView POSH Prompt.

SYNTAX

Set-HPOVPrompt -Enable [-Global] [-WhatIf] [-Confirm] [<CommonParameters>]

Set-HPOVPrompt -Disable [-Global] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

By default, the HP OneView POSH Library will change the prompt to display the following in the prompt:

[HPONEVIEW]: user@appliance PS C:\> 

The first part designates the module is currently loaded into the users PowerShell session.  The second part shows which user account is connect to what appliance.

Using the -Disable switch, the default prompt will not be displayed when the module is loaded for the current user.  This setting is configured on a per-user basis.  When the prompt is disabled, you an use the Show-HPOVAppliance cmdlet to get the connected to information.

PARAMETERS

-Enable [<SwitchParameter>]
Enable the default prompt display for the current user.
Aliases <none>
Required? True
Position? named
Default value False              
Accept pipeline input? false
Accept wildcard characters?         false
-Disable [<SwitchParameter>]

Disable the default prompt display for the current user.

Aliases <none>
Required? True
Position? named
Default value False              
Accept pipeline input? false
Accept wildcard characters?         false
-Global [<SwitchParameter>]

Set the Prompt display setting as a global setting instead of per user.

Aliases <none>
Required? false
Position? named
Default value False              
Accept pipeline input? false
Accept wildcard characters?         false
-WhatIf [<SwitchParameter>]

Set the Prompt display setting as a global setting instead of per user.

Aliases <none>
Required? false
Position? named
Default value <none>              
Accept pipeline input? false
Accept wildcard characters?         false
-Confirm [<SwitchParameter>]

Set the Prompt display setting as a global setting instead of per user.

Aliases <none>
Required? false
Position? named
Default value <none>              
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 (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

  • None.

OUTPUTS

  • None.

RELATED LINKS

EXAMPLES

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

[HPONEVIEW]: [Not Connected] PS C:\Users\User>Set-HPOVPrompt -Disable 
PS C:\Users\User>
Disable the HPOneView POSH Library prompt for the current user, and return to original value.

Last edited Apr 16, 2014 at 5:29 AM by ChrisLynchHP, version 5