DSInternals/Documentation/PowerShell/DSInternals.md

125 lines
5.2 KiB
Markdown
Raw Normal View History

2018-10-14 12:10:18 +00:00
---
Module Name: DSInternals
Module Guid: 766b3ad8-eb78-48e6-84bd-61b31d96b53e
Download Help Link:
Help Version: 1.0
Locale: en-US
---
# DSInternals Module
## Description
The DSInternals PowerShell Module exposes several internal and undocumented features of Active Directory.
## DSInternals Cmdlets
### [Add-ADDBSidHistory](Add-ADDBSidHistory.md)
Adds one or more values to the sIDHistory attribute of an object in a ntds.dit file.
### [ConvertFrom-ADManagedPasswordBlob](ConvertFrom-ADManagedPasswordBlob.md)
Decodes the value of the msDS-ManagedPassword attribute of a Group Managed Service Account.
### [ConvertFrom-GPPrefPassword](ConvertFrom-GPPrefPassword.md)
Decodes a password from the format used by Group Policy Preferences.
### [ConvertFrom-UnicodePassword](ConvertFrom-UnicodePassword.md)
Decodes a password from the format used in unattend.xml files.
### [ConvertTo-GPPrefPassword](ConvertTo-GPPrefPassword.md)
Converts a password to the format used by Group Policy Preferences.
### [ConvertTo-Hex](ConvertTo-Hex.md)
Helper cmdlet that converts binary input to hexadecimal string.
### [ConvertTo-KerberosKey](ConvertTo-KerberosKey.md)
2018-12-28 09:09:35 +00:00
Computes Kerberos keys from a given password using Kerberos version 5 Key Derivation Functions.
2018-10-14 12:10:18 +00:00
### [ConvertTo-LMHash](ConvertTo-LMHash.md)
Calculates LM hash of a given password.
### [ConvertTo-NTHash](ConvertTo-NTHash.md)
Calculates NT hash of a given password.
### [ConvertTo-OrgIdHash](ConvertTo-OrgIdHash.md)
Calculates OrgId hash of a given password. Used by Azure Active Directory Sync.
### [ConvertTo-UnicodePassword](ConvertTo-UnicodePassword.md)
Converts a password to the format used in unattend.xml or *.ldif files.
### [Disable-ADDBAccount](Disable-ADDBAccount.md)
Disables an Active Directory account in an offline ntds.dit file.
### [Enable-ADDBAccount](Enable-ADDBAccount.md)
Enables an Active Directory account in an offline ntds.dit file.
### [Get-ADDBAccount](Get-ADDBAccount.md)
Reads one or more accounts from a ntds.dit file, including secret attributes.
### [Get-ADDBBackupKey](Get-ADDBBackupKey.md)
Reads the DPAPI backup keys from a ntds.dit file.
### [Get-ADDBDomainController](Get-ADDBDomainController.md)
Reads information about the originating DC from a ntds.dit file, including domain name, domain SID, DC name and DC site.
### [Get-ADDBKdsRootKey](Get-ADDBKdsRootKey.md)
Reads KDS Root Keys from a ntds.dit. file. Can be used to aid DPAPI-NG decryption, e.g. SID-protected PFX files.
### [Get-ADDBSchemaAttribute](Get-ADDBSchemaAttribute.md)
Reads AD schema from a ntds.dit file, including datatable column names.
### [Get-ADKeyCredential](Get-ADKeyCredential.md)
2018-12-28 09:09:35 +00:00
Creates an object representing Windows Hello for Business credentials from its binary representation or an X.509 certificate.
2018-10-14 12:10:18 +00:00
### [Get-ADReplAccount](Get-ADReplAccount.md)
Reads one or more accounts through the DRSR protocol, including secret attributes.
### [Get-ADReplBackupKey](Get-ADReplBackupKey.md)
Reads the DPAPI backup keys through the DRSR protocol.
### [Get-ADSIAccount](Get-ADSIAccount.md)
2018-12-28 09:09:35 +00:00
Gets all Active Directory user accounts from a given domain controller using ADSI.
2018-10-14 12:10:18 +00:00
### [Get-BootKey](Get-BootKey.md)
2018-12-28 09:09:35 +00:00
Reads the Boot Key (AKA SysKey or System Key) from an online or offline SYSTEM registry hive.
2018-10-14 12:10:18 +00:00
### [Get-LsaBackupKey](Get-LsaBackupKey.md)
Reads the DPAPI backup keys from a domain controller through the LSARPC protocol.
2018-10-14 12:10:18 +00:00
### [Get-LsaPolicyInformation](Get-LsaPolicyInformation.md)
2018-12-28 09:09:35 +00:00
Retrieves AD-related information from the Local Security Authority Policy of the local computer or a remote one.
2018-10-14 12:10:18 +00:00
### [Get-SamPasswordPolicy](Get-SamPasswordPolicy.md)
Queries Active Directory for the default password policy.
2018-12-28 09:09:35 +00:00
### [New-ADDBRestoreFromMediaScript](New-ADDBRestoreFromMediaScript.md)
Generates a PowerShell script that can be used to restore a domain controller from an IFM-equivalent backup (i.e. ntds.dit + SYSVOL).
2018-10-14 12:10:18 +00:00
### [Remove-ADDBObject](Remove-ADDBObject.md)
Physically removes specified object from a ntds.dit file, making it semantically inconsistent. Highly experimental!
### [Save-DPAPIBlob](Save-DPAPIBlob.md)
Saves the output of the Get-ADReplBackupKey and Get-ADDBBackupKey cmdlets to a file.
### [Set-ADDBAccountPassword](Set-ADDBAccountPassword.md)
2018-12-28 09:09:35 +00:00
Sets the password for a user, computer, or service account stored in a ntds.dit file.
2018-10-14 12:10:18 +00:00
### [Set-ADDBAccountPasswordHash](Set-ADDBAccountPasswordHash.md)
2018-12-28 09:09:35 +00:00
Sets the password hash for a user, computer, or service account stored in a ntds.dit file.
2018-10-14 12:10:18 +00:00
### [Set-ADDBBootKey](Set-ADDBBootKey.md)
Re-encrypts a ntds.dit with a new BootKey. Highly experimental!
### [Set-ADDBDomainController](Set-ADDBDomainController.md)
Writes information about the DC to a ntds.dit file, including the highest commited USN and database epoch.
### [Set-ADDBPrimaryGroup](Set-ADDBPrimaryGroup.md)
Modifies the primaryGroupId attribute of an object to a ntds.dit file.
### [Set-LsaPolicyInformation](Set-LsaPolicyInformation.md)
2018-12-28 09:09:35 +00:00
Configures AD-related Local Security Authority Policies of the local computer or a remote one.
2018-10-14 12:10:18 +00:00
### [Set-SamAccountPasswordHash](Set-SamAccountPasswordHash.md)
Sets NT and LM hashes of an account through the SAMR protocol.
### [Test-PasswordQuality](Test-PasswordQuality.md)
Performs AD audit, including checks for weak, duplicate, default and empty passwords.