Remove-VMReplicationAuthorizationEntry
Removes an authorization entry from a Replica server.
Syntax
Remove-VMReplicationAuthorizationEntry
[-AllowedPrimaryServer] <String>
[-ComputerName <String[]>]
[-PassThru]
[-Confirm]
[-WhatIf]
Remove-VMReplicationAuthorizationEntry
[-TrustGroup] <String>
[-ComputerName <String[]>]
[-PassThru]
[-Confirm]
[-WhatIf]
Remove-VMReplicationAuthorizationEntry
[-VMReplicationAuthorizationEntry] <VMReplicationAuthorizationEntry[]>
[-PassThru]
[-Confirm]
[-WhatIf]
Description
The Remove-VMReplicationAuthorizationEntry cmdlet removes an authorization entry from a Replica server, which cancels authorization for the primary server associated with the entry. After the authorization entry is removed, the Replica server does not accept replication data from the corresponding primary server.
Examples
Example 1
PS C:\>Remove-VMReplicationAuthorizationEntry -AllowedPrimaryServer server01.domain01.contoso.com
This example removes an authorization entry on the local Replica server for allowed primary server server01.domain01.contoso.com.
Example 2
PS C:\>Get-VMReplicationAuthorizationEntry | Remove-VMReplicationAuthorizationEntry
This example removes all authorization entries on the local Replica server.
Parameters
-AllowedPrimaryServer
Specifies the allowed primary server for which the authorization entry is to be removed.
Type: | String |
Aliases: | AllowedPS |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ComputerName
Specifies one or more Hyper-V hosts on which the authorization entry is to be removed. NetBIOS names, IP addresses, and fully-qualified domain names are allowable. The default is the local computer - use "localhost" or a dot (".") to specify the local computer explicitly.
Type: | String[] |
Position: | Named |
Default value: | . |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PassThru
Specifies that a VMReplicationAuthorizationEntry object is to be passed through to the pipeline representing the authorization entry to be removed.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TrustGroup
Specifies the trust group for which the authorization entries are to be removed.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VMReplicationAuthorizationEntry
Specifies the authorization entry to be removed.
Type: | VMReplicationAuthorizationEntry[] |
Aliases: | VMRepAuthEntry |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
None
Default
VMReplicationAuthorizationEntry
If -PassThru is specified.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for