adjusted comments
This commit is contained in:
@@ -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 )
|
||||
$path2 = $path1.Replace( '\', '\\' )
|
||||
|
||||
$registry = $null
|
||||
try
|
||||
{
|
||||
## use the Remote Registry service
|
||||
## Use the Remote Registry service
|
||||
$registry = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey(
|
||||
[Microsoft.Win32.RegistryHive]::LocalMachine,
|
||||
$ComputerName )
|
||||
@@ -90,7 +90,7 @@ Function GetBasicDCInfo {
|
||||
Param
|
||||
(
|
||||
[Parameter( Mandatory = $true )]
|
||||
[String] $dn ## distinguishedName of a DC
|
||||
[String] $dn # distinguishedName of a DC
|
||||
)
|
||||
|
||||
$DCName = $dn.SubString( 0, $dn.IndexOf( '.' ) )
|
||||
|
||||
Reference in New Issue
Block a user