< Back

Remove-ArchivialNetworkCredential

Fri Jan 10, 2020 8:44 pm

NAME Remove-ArchivialNetworkCredential



SYNOPSIS

Removes the stored network credential used for connecting to network resources.





SYNTAX

Remove-ArchivialNetworkCredential -CredentialName <string> [<CommonParameters>]



Remove-ArchivialNetworkCredential -NetCredential <NetCredential> [<CommonParameters>]





DESCRIPTION

Authenticated Network Source locations have an encrypted credential stored with them. This command is used to

remove that stored credential.



To view existing network credentials, run Get-ArchivialNetworkCredentials. This command supports piping from

Get-ArchivialNetworkCredentials or manual invoke from credential name





PARAMETERS

-CredentialName <string>

Specify the name of the credential to remove.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-NetCredential <NetCredential>

Specify the object (from pipeline) to remove.



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue)

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

ArchivialLibrary.Secrets.NetCredential

Specify the object (from pipeline) to remove.





OUTPUTS



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



C:\\> Remove-ArchivialNetworkCredential -CredentialName "drobo-nas"



Removes the stored network credential with the specified name.



---------- EXAMPLE 2 ----------



C:\\> Get-ArchivialNetworkCredentials | Where CredentialName -eq "drobo-nas" | Remove-ArchivialNetworkCredential



Removes the stored network credential, but using the pipeline scenario.





RELATED LINKS