fix?
This commit is contained in:
@@ -744,5 +744,18 @@ function EnumUserProfiles {
|
|||||||
Return $UserProfilePaths
|
Return $UserProfilePaths
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Function to test for the presense of a Registry property
|
||||||
|
function Test-RegistryProperty {
|
||||||
|
param(
|
||||||
|
[Parameter(Mandatory=$true)][string]$Path,
|
||||||
|
[Parameter(Mandatory=$true)][string]$Name
|
||||||
|
)
|
||||||
|
Try {
|
||||||
|
Get-ItemProperty -Path $Path | Select-Object -ExpandProperty $Name -ErrorAction Stop | Out-Null
|
||||||
|
Return $true
|
||||||
|
}
|
||||||
|
Catch { Return $false }
|
||||||
|
}
|
||||||
|
|
||||||
Setup-MSPDirectories
|
Setup-MSPDirectories
|
||||||
Setup-LogFile
|
Setup-LogFile
|
||||||
Reference in New Issue
Block a user