-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Closed
Copy link
Labels
Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the product
Description
Steps to reproduce
test-path wsman:\foo -pathtype containerExpected behavior
The command returns $false.
Actual behavior
Exception is thrown: "Test-Path: Value cannot be null. (Parameter 'value')":
The $Error[1].Exception.InnerException.InnerException.StackTrace (since $Error[0] is the error for Invoke) shows:
at System.String.StartsWith(String value, StringComparison comparisonType)
at Microsoft.WSMan.Management.WSManConfigProvider.NormalizePath(String path, String host)
at Microsoft.WSMan.Management.WSManConfigProvider.IsItemContainer(String path)
at System.Management.Automation.SessionStateInternal.IsItemContainer(CmdletProvider providerInstance, String path, CmdletProviderContext context)
Environment data
Name Value
---- -----
PSVersion 7.0.0-preview.6
PSEdition Core
GitCommitId 7.0.0-preview.6
OS Microsoft Windows 10.0.18363
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0, ...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Metadata
Metadata
Assignees
Labels
Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the product
