Private/Test-OSDCloudWorkspace.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
function Test-OSDCloudWorkspace { [CmdletBinding()] param ( [Parameter(Mandatory = $true)] [string] $WorkspacePath ) if (-NOT (Test-Path "$WorkspacePath")) {Return $false} if (-NOT (Test-Path "$WorkspacePath\Media" )) {Return $false} if (-NOT (Test-Path "$WorkspacePath\Media\sources\boot.wim" )) {Return $false} Return $true } |