Public/OSDCloud/Get-OSDCloud.workspace.ps1
function Get-OSDCloud.workspace { [CmdletBinding()] param () if (Test-Path "$env:ProgramData\OSDCloud\workspace.json") { $WorkspaceSettings = Get-Content -Path "$env:ProgramData\OSDCloud\workspace.json" | ConvertFrom-Json $WorkspacePath = $WorkspaceSettings.WorkspacePath Return $WorkspacePath } else { Return $null } } |