-
-
Notifications
You must be signed in to change notification settings - Fork 97
Service Account Functions
Your Name edited this page Mar 6, 2026
·
1 revision
Description
Query for Group Managed Service Accounts (gMSA) and retrieve their password blobs.
Aliases
PV > Get-GMSASyntax
PV > Get-DomainGMSA
-Count -Identity -LDAPFilter -NoCache -NoVulnCheck -NoWrap -OutFile -Properties -Raw -SearchBase -Select -Server -SortBy -TableView -WhereExamples
PV > Get-DomainGMSA
PV > Get-DomainGMSA -Identity gmsaaccountParameters
# With Argument
-Identity =
-Properties =
-LDAPFilter =
-SearchBase =
-Server =
-Select =
-Where =
-SortBy =
-OutFile =
# No Argument
-TableView
-Count
-NoWrap
-NoCache
-NoVulnCheck
-RawDescription
Create a new Group Managed Service Account (gMSA) in the domain.
Aliases
PV > Add-GMSASyntax
PV > Add-DomainGMSA
-BaseDN -DNSHostName -Identity -NoWrap -OutFile -PrincipalsAllowedToRetrieveManagedPassword -ServerExamples
PV > Add-DomainGMSA -Identity newgmsa -PrincipalsAllowedToRetrieveManagedPassword "Domain Admins"Parameters
# With Argument
-Identity = (required)
-PrincipalsAllowedToRetrieveManagedPassword =
-DNSHostName =
-BaseDN =
-Server =
-OutFile =
# No Argument
-NoWrapDescription
Delete an existing Group Managed Service Account from the domain.
Aliases
PV > Remove-GMSASyntax
PV > Remove-DomainGMSA
-Identity -OutFile -SearchBase -ServerExamples
PV > Remove-DomainGMSA -Identity oldgmsaParameters
# With Argument
-Identity = (required)
-SearchBase =
-Server =
-OutFile =
# No ArgumentDescription
Query for Delegated Managed Service Accounts (dMSA).
Aliases
PV > Get-DMSASyntax
PV > Get-DomainDMSA
-Count -Identity -LDAPFilter -NoCache -NoVulnCheck -NoWrap -OutFile -Properties -Raw -SearchBase -Select -Server -SortBy -TableView -WhereExamples
PV > Get-DomainDMSA
PV > Get-DomainDMSA -Identity dmsaaccountParameters
# With Argument
-Identity =
-Properties =
-LDAPFilter =
-SearchBase =
-Server =
-Select =
-Where =
-SortBy =
-OutFile =
# No Argument
-TableView
-Count
-NoWrap
-NoCache
-NoVulnCheck
-RawDescription
Create a new Delegated Managed Service Account (dMSA) in the domain.
Aliases
PV > Add-DMSASyntax
PV > Add-DomainDMSA
-BaseDN -DNSHostName -Hidden -Identity -NoWrap -OutFile -PrincipalsAllowedToRetrieveManagedPassword -Server -SupersededAccountExamples
PV > Add-DomainDMSA -Identity newdmsa
PV > Add-DomainDMSA -Identity newdmsa -SupersededAccount victimuserParameters
# With Argument
-Identity = (required)
-SupersededAccount =
-PrincipalsAllowedToRetrieveManagedPassword =
-DNSHostName =
-BaseDN =
-Server =
-OutFile =
# No Argument
-Hidden
-NoWrapDescription
Delete an existing Delegated Managed Service Account from the domain.
Aliases
PV > Remove-DMSASyntax
PV > Remove-DomainDMSA
-Identity -OutFile -SearchBase -ServerExamples
PV > Remove-DomainDMSA -Identity olddmsaParameters
# With Argument
-Identity = (required)
-SearchBase =
-Server =
-OutFile =
# No Argument
- 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