adjusted comments
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
$HuduAssetLayoutName = "Active Directory"
|
$HuduAssetLayoutName = "Active Directory"
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
#Get the Hudu API Module if not installed
|
# Get the Hudu API Module if not installed
|
||||||
if (Get-Module -ListAvailable -Name HuduAPI) {
|
if (Get-Module -ListAvailable -Name HuduAPI) {
|
||||||
Import-Module HuduAPI
|
Import-Module HuduAPI
|
||||||
} else {
|
} else {
|
||||||
@@ -23,7 +23,7 @@ if (Get-Module -ListAvailable -Name HuduAPI) {
|
|||||||
Import-Module HuduAPI
|
Import-Module HuduAPI
|
||||||
}
|
}
|
||||||
|
|
||||||
#Set Hudu logon information
|
# Set Hudu logon information
|
||||||
New-HuduAPIKey $HuduAPIKey
|
New-HuduAPIKey $HuduAPIKey
|
||||||
New-HuduBaseUrl $HuduBaseDomain
|
New-HuduBaseUrl $HuduBaseDomain
|
||||||
|
|
||||||
@@ -51,14 +51,14 @@ Function Get-RegistryValue
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#path needed here is different for remote registry access
|
# Path needed here is different for remote registry access
|
||||||
$path1 = $path.SubString( 6 )
|
$path1 = $path.SubString( 6 )
|
||||||
$path2 = $path1.Replace( '\', '\\' )
|
$path2 = $path1.Replace( '\', '\\' )
|
||||||
|
|
||||||
$registry = $null
|
$registry = $null
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
## use the Remote Registry service
|
## Use the Remote Registry service
|
||||||
$registry = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey(
|
$registry = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey(
|
||||||
[Microsoft.Win32.RegistryHive]::LocalMachine,
|
[Microsoft.Win32.RegistryHive]::LocalMachine,
|
||||||
$ComputerName )
|
$ComputerName )
|
||||||
@@ -90,7 +90,7 @@ Function GetBasicDCInfo {
|
|||||||
Param
|
Param
|
||||||
(
|
(
|
||||||
[Parameter( Mandatory = $true )]
|
[Parameter( Mandatory = $true )]
|
||||||
[String] $dn ## distinguishedName of a DC
|
[String] $dn # distinguishedName of a DC
|
||||||
)
|
)
|
||||||
|
|
||||||
$DCName = $dn.SubString( 0, $dn.IndexOf( '.' ) )
|
$DCName = $dn.SubString( 0, $dn.IndexOf( '.' ) )
|
||||||
|
|||||||
Reference in New Issue
Block a user