Directory Services Internals PowerShell Module and Framework
Go to file
2015-12-27 11:54:20 +01:00
Keys Initial source commit 2015-12-26 23:44:43 +01:00
Scripts Initial source commit 2015-12-26 23:44:43 +01:00
Src - Set DSInternals.PowerShell as default startup project 2015-12-27 00:14:49 +01:00
TestData Another test database added 2015-12-27 11:54:20 +01:00
.gitattributes Added the default .gitattributes file 2015-12-25 16:21:52 +01:00
.gitignore Initial source commit 2015-12-26 23:44:43 +01:00
Changelog.txt Initial source commit 2015-12-26 23:44:43 +01:00
Disclaimer.txt Initial source commit 2015-12-26 23:44:43 +01:00
README.md Update README.md 2015-12-25 16:08:17 +01:00

DSInternals PowerShell Module

Introduction

The DSInternals PowerShell Module exposes several internal and undocumented features of Active Directory.

List of Cmdlets

Offline AD Database Access

  • Get-ADDBAccount
  • Get-ADDBDomainController
  • Get-BootKey
  • Get-ADDBLSASecrets
  • Get-ADDBSchemaAttribute
  • Add-ADDBSidHistory
  • Set-ADDBPrimaryGroup
  • Set-ADDBDomainController
  • Remove-ADDBObject

Online AD Database Access

  • Get-ADReplAccount
  • Get-ADReplLSASecrets
  • Set-SamAccountPasswordHash

Password Hash Calculation

  • ConvertTo-NTHash
  • ConvertTo-LMHash
  • ConvertTo-OrgIdHash

Password Decryption

  • ConvertFrom-ADManagedPasswordBlob
  • ConvertFrom-UnicodePassword
  • ConvertTo-UnicodePassword
  • ConvertFrom-GPPrefPassword
  • ConvertTo-GPPrefPassword

Misc

  • ConvertTo-Hex

System Requirements

  • Windows PowerShell 3+ 64-bit
  • .NET Framework 4.5+

The cmdlets have been tested on these operating systems:

  • Windows Server 2012 R2
  • Windows 10 64-bit
  • Windows 8.1 64-bit

The cmdlets working with the AD database do not support Windows 2000 domain functional level and require 2008+ schema.

Installation

Option 1

In PowerShell 5, you can install the DSInternals module from PowerShell Gallery by running this command:

Install-Module DSInternals

Option 2a

Extract the ZIP file and copy the DSInternals directory to your PowerShell modules directory, e.g. C:\Windows\system32\WindowsPowerShell\v1.0\Modules\DSInternals or C:\Users\John\Documents\WindowsPowerShell\Modules\DSInternals

Option 2b

Extract the ZIP file to any location import the DSInternals module using the Import-Module cmdlet, e.g.

cd C:\Users\John\Downloads\DSInternals Import-Module .\DSInternals

Note

Before extracting any files from the archive, do not forget to "unblock" the ZIP file in the Properties dialog. If you fail to do so, all the extracted DLLs will inherit this attribute and PowerShell will refuse to load them.

Author

Michael Grafnetter

Homepage

https://www.dsinternals.com