Steps to reproduce
Expected behavior
The code should return a System.RuntimeType representing the System.DirectoryServices.DirectoryEntry class, similar to the full version of PowerShell.
PS D:\Users\tsulli\sshscan> [adsi].GetType()
IsPublic IsSerial Name BaseType
-------- -------- ---- --------
False True RuntimeType System.Reflection.TypeInfo
Actual behavior
Throws an exception.
PS /Users/tsulli> [adsi]
Unable to find type [adsi].
At line:1 char:1
+ [adsi]
+ ~~~~~~
+ CategoryInfo : InvalidOperation: (adsi:TypeName) [], RuntimeException
+ FullyQualifiedErrorId : TypeNotFound
Environment data
Name Value
---- -----
PSVersion 6.0.0-alpha
PSEdition Core
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 3.0.0.0
GitCommitId v6.0.0-alpha.15
CLRVersion
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Cheers,
Trevor Sullivan
Docker Captain
Microsoft MVP: Cloud & Data Center Management
https://trevorsullivan.net
https://twitter.com/pcgeek86
Steps to reproduce
[adsi]Expected behavior
The code should return a
System.RuntimeTyperepresenting theSystem.DirectoryServices.DirectoryEntryclass, similar to the full version of PowerShell.Actual behavior
Throws an exception.
Environment data
Cheers,
Trevor Sullivan
Docker Captain
Microsoft MVP: Cloud & Data Center Management
https://trevorsullivan.net
https://twitter.com/pcgeek86