-
-
Notifications
You must be signed in to change notification settings - Fork 97
Shadow Credentials Functions
Your Name edited this page Mar 6, 2026
·
1 revision
Description
Manage msDS-KeyCredentialLink (Shadow Credentials) for a domain object. Supports add, remove, clear, list actions.
Aliases
PV > Set-ShadowCredSyntax
PV > Set-ShadowCredential
-Add -CertOutFile -Clear -DeviceId -DRS -Export -Identity -KeySize -List -NoPassword -OutFile -PfxPassword -Remove -SearchBase -ServerExamples
PV > Set-ShadowCredential -Identity victim -Add
PV > Set-ShadowCredential -Identity victim -List
PV > Set-ShadowCredential -Identity victim -Remove -DeviceId xxxx
PV > Set-ShadowCredential -Identity victim -ClearParameters
# With Argument
-Identity = (required)
-DeviceId =
-Export = (PFX|PEM|NONE, default PFX)
-CertOutFile =
-PfxPassword =
-KeySize = (default 2048)
-SearchBase =
-Server =
-OutFile =
# No Argument (mutually exclusive actions)
-Add
-Remove
-Clear
-List
-DRS
-NoPasswordDescription
List shadow credentials (msDS-KeyCredentialLink) for a domain object or all objects.
Aliases
PV > Get-ShadowCredSyntax
PV > Get-ShadowCredential
-DRS -Identity -OutFile -SearchBase -ServerExamples
PV > Get-ShadowCredential -Identity DC01$
PV > Get-ShadowCredentialParameters
# With Argument
-Identity =
-SearchBase =
-Server =
-OutFile =
# No Argument
-DRSDescription
Remove shadow credentials by DeviceId or clear all from a domain object.
Aliases
PV > Remove-ShadowCredSyntax
PV > Remove-ShadowCredential
-All -DeviceId -DRS -Identity -OutFile -SearchBase -ServerExamples
PV > Remove-ShadowCredential -Identity DC01$ -DeviceId xxxx-xxxx
PV > Remove-ShadowCredential -Identity DC01$ -AllParameters
# With Argument
-Identity = (required)
-DeviceId = (required if not -All, mutually exclusive with -All)
-SearchBase =
-Server =
-OutFile =
# No Argument
-All (required if not -DeviceId, mutually exclusive with -DeviceId)
-DRS
- Introduction
- Installation
- Supported Authentication
- Cheatsheets
- Obfuscation
- User Defined Rules
- Public Writeups
LDAP Operations
- Get-DomainUser
- Get-DomainComputer
- Get-DomainGroup
- Get-DomainGroupMember
- Get-DomainOU
- Get-Domain
- Get-DomainController
- Get-DomainDNSRecord
- Get-DomainDNSZone
- Get-DomainObject
- Get-DomainObjectAcl
- Get-DomainObjectOwner
- Get-DomainSCCM
- Get-DomainRBCD
- Get-DomainWDS
- Get-LocalUser
- Set-DomainObject
- Set-DomainObjectDN
- Set-DomainObjectOwner
- Set-DomainUserPassword
- Set-DomainComputerPassword
- Set-DomainRBCD
- Set-DomainDNSRecord
- Add-DomainUser
- Add-DomainComputer
- Add-DomainGroup
- Add-DomainGroupMember
- Add-DomainOU
- Add-DomainGPO
- Add-DomainObjectAcl
- Add-DomainDNSRecord
- Remove-DomainUser
- Remove-DomainComputer
- Remove-DomainObject
- Remove-DomainGroupMember
- Remove-DomainOU
- Remove-DomainObjectAcl
- Remove-DomainDNSRecord
- Disable-DomainDNSRecord
- Restore-DomainObject
- Unlock-ADAccount
- Enable-ADAccount
- Disable-ADAccount
- Login-As
- Clear-Cache
Computer Enumeration
- Get-NetSession
- Get-NetShare
- Get-NetLoggedOn
- Get-RegLoggedOn
- Get-NetComputerInfo
- Get-NetTerminalSession
- Get-NetProcess
- Stop-NetProcess
- Get-EventLog
- Get-EventLogChannel
- Get-EventLogPublisher
- Get-NetService
- Start-NetService
- Stop-NetService
- Add-NetService
- Set-NetService
- Remove-NetService
- Stop-Computer
- Restart-Computer
- Remove-NetTerminalSession
- Remove-NetSession
- Logoff-Session