DSInternals.psm1

#
# Script module file for 'DSInternals' module.
#
# Copyright (c) Michael Grafnetter
#

#
# Load the platform-specific libraries.
# Note: This cannot be done in the module manifest,
# as it only supports restricted language mode.
#

$interopAssemblyPath = Join-Path $PSScriptRoot "$env:PROCESSOR_ARCHITECTURE\DSInternals.Replication.Interop.dll"
Add-Type -Path $interopAssemblyPath

#
# Cmdlet aliases
#

New-Alias Set-ADAccountPasswordHash Set-SamAccountPasswordHash
New-Alias Set-WinUserPasswordHash Set-SamAccountPasswordHash
New-Alias ConvertFrom-UnattendXmlPassword ConvertFrom-UnicodePassword
New-Alias ConvertTo-AADHash ConvertTo-OrgIdHash
New-Alias ConvertTo-MsoPasswordHash ConvertTo-OrgIdHash
New-Alias Get-ADReplicationAccount Get-ADReplAccount

# Export the aliases
Export-ModuleMember -Alias * -Cmdlet *