Remove-VPASMemberEPVGroup


Supported Environments:
SelfHosted
SharedServices
PCloudStandard


Synopsis:

DELETE MEMBER FROM EPV GROUP


Description:

USE THIS FUNCTION TO DELETE A MEMBER FROM AN EPV GROUP


Syntax:

Remove-VPASMemberEPVGroup -GroupName <String> -EPVUserName <String> [-WhatIf] [-HideWhatIfOutput] [-token <Hashtable>] [<CommonParameters>]

Remove-VPASMemberEPVGroup -GroupID <String> -EPVUserName <String> [-WhatIf] [-HideWhatIfOutput] [-token <Hashtable>] [<CommonParameters>]

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


Parameters:

-GroupName <String>
Target EPV group name that a user will be added to

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

-GroupID <String>
Target EPV group ID that a user will be added to

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

-EPVUserName <String>
Target EPVUserName that will be removed from target EPVGroup

Required: true
Position: named
Default value:
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-VPASMemberEPVGroup -GroupName {GROUPNAME VALUE} -EPVUserName {USERNAME VALUE} -WhatIf

$DeleteMemberEPVGroupStatus = Remove-VPASMemberEPVGroup -GroupName {GROUPNAME VALUE} -EPVUserName {USERNAME VALUE}

$DeleteMemberEPVGroupStatus = Remove-VPASMemberEPVGroup -GroupID {GROUPID VALUE} -EPVUserName {USERNAME VALUE}

$InputParameters = @{
        GroupName = "TargetEPVGroupName"
         EPVUserName = "TargetEPVUser"
         WhatIf = $true|$false
         HideWhatIfOutput = $true|$false
}
$DeleteMemberEPVGroupStatus = Remove-VPASMemberEPVGroup -InputParameters $InputParameters

$InputParameters = @{
        GroupID = "22"
         EPVUserName = "TargetEPVUser"
         WhatIf = $true|$false
         HideWhatIfOutput = $true|$false
}
$DeleteMemberEPVGroupStatus = Remove-VPASMemberEPVGroup -InputParameters $InputParameters


Outputs:

$true if successful

$false if failed