20 lines
519 B
PowerShell
20 lines
519 B
PowerShell
|
function Test-IsUnconfiguredEnvironment {
|
||
|
<#
|
||
|
.SYNOPSIS
|
||
|
Determine if this environment is configured as an unconfigured environment
|
||
|
|
||
|
.PARAMETER ComputerName
|
||
|
What computer do we check, defaults to localhost
|
||
|
#>
|
||
|
[CmdletBinding()]
|
||
|
[OutputType([System.Boolean])]
|
||
|
param (
|
||
|
[string]$ComputerName = 'localhost'
|
||
|
)
|
||
|
|
||
|
$environmentType = (Get-EnvironmentType -ComputerName $ComputerName)
|
||
|
|
||
|
$environmentTypeNames = @('Unconfigured')
|
||
|
|
||
|
return ($environmentTypeNames -contains $environmentType)
|
||
|
}
|