Remove-VPASEPVUser


Supported Environments:
SelfHosted
SharedServices
PCloudStandard


Synopsis:

DELETE EPV USER


Description:

USE THIS FUNCTION TO DELETE AN EPV USER


Syntax:

Remove-VPASEPVUser -EPVUsername <String> [-Confirm] [-WhatIf] [-HideWhatIfOutput] [-token <Hashtable>] [<CommonParameters>]

Remove-VPASEPVUser -EPVUserID <String> [-Confirm] [-WhatIf] [-HideWhatIfOutput] [-token <Hashtable>] [<CommonParameters>]

Remove-VPASEPVUser -InputParameters <Hashtable> [-token <Hashtable>] [<CommonParameters>]


Parameters:

-EPVUsername <String>
Query for the target EPVUser via Username

Required: true
Position: named
Default value:
Accept pipeline input: true (ByPropertyName)
Accept wildcard characters: false

-EPVUserID <String>
Query for the target EPVUser via UserID

Required: true
Position: named
Default value:
Accept pipeline input: true (ByPropertyName)
Accept wildcard characters: false

-Confirm [<SwitchParameter>]
Skip the confirmation prompt confirming the deletion/removal of an EPVUser

Required: false
Position: named
Default value: False
Accept pipeline input: true (ByPropertyName)
Accept wildcard characters: false

-WhatIf [<SwitchParameter>]
Run code simulation to see what is affected by running the command as well as any possible implications
This is a code simulation flag, meaning the command will NOT actually run

Required: false
Position: named
Default value: False
Accept pipeline input: true (ByPropertyName)
Accept wildcard characters: false

-HideWhatIfOutput [<SwitchParameter>]
Suppress any code simulation output from the console

Required: false
Position: named
Default value: False
Accept pipeline input: true (ByPropertyName)
Accept wildcard characters: false

-InputParameters <Hashtable>
HashTable of values containing the parameters required to make the API call

Required: true
Position: named
Default value:
Accept pipeline input: true (ByPropertyName)
Accept wildcard characters: false

-token <Hashtable>
HashTable of data containing various pieces of login information (PVWA, LoginToken, HeaderType, etc).
If -token is not passed, function will use last known hashtable generated by New-VPASToken

Required: false
Position: named
Default value:
Accept pipeline input: true (ByPropertyName)
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)


Examples:

$WhatIfSimulation = Remove-VPASEPVUser -EPVUsername {EPVUSERNAME VALUE} -WhatIf

$DeleteEPVUserStatus = Remove-VPASEPVUser -EPVUsername {EPVUSERNAME VALUE}

$DeleteEPVUserStatus = Remove-VPASEPVUser -EPVUserID {EPVUSERID VALUE} -Confirm

$InputParameters = @{
        EPVUsername = "TargetEPVUser"
         Confirm = $true|$false
         WhatIf = $true|$false
         HideWhatIfOutput = $true|$false
}
$DeleteEPVUserStatus = Remove-VPASEPVUser -InputParameters $InputParameters

$InputParameters = @{
        EPVUserID = "22"
         Confirm = $true|$false
         WhatIf = $true|$false
         HideWhatIfOutput = $true|$false
}
$DeleteEPVUserStatus = Remove-VPASEPVUser -InputParameters $InputParameters


Outputs:

$true if successful

$false if failed