Register-PSSessionConfiguration fails if SesionConfig folder doesn't exist (#4271)

This commit is contained in:
Steve Lee authored and Dongbo Wang committed 2017-07-18 10:07:05 -07:00
1 parent 011271ca25
commit 44e377525b
2 files changed
+11 -2

No files matched your search

@@ -2108,7 +2108,10 @@ Describe "Import-PSSession on Restricted Session" -tags "Feature","RequireAdminO
}
}
It "Verifies that Import-PSSession works on a restricted session" {
# Blocked by https://github.com/PowerShell/PowerShell/issues/4275
# Need a way to created restricted endpoint based on a different endpoint other than microsoft.powershell which points
# to Windows PowerShell 5.1
It "Verifies that Import-PSSession works on a restricted session" -Pending {
$errorVariable = $null
Import-PSSession -Session $session -AllowClobber -ErrorVariable $errorVariable