简体   繁体   中英

.NET Core, Windows Nano Server and System.Management.Automation

The Nano is a server operating system optimized for cloud. It does not have local user interface, nor does it even support local log-on. According to given information regarding Windows Nano Server, it does not contain full .NET Framework, but .NET Core. This makes sense so far.

.NET libraries contained in the Core are listed here . Some are complete, some are not. But what I don't understand is that System.Management.Automation is missing from the list entirely.

This library is the one used to use PowerShell cmdlets in .NET applications. Considering how important PowerShell is today for sysadmins in particular, this omission in light of the Nano Server seems simply weird.

So does this mean functionality provided by System.Management.Automation is not available in Windows Nano Server?

You may need to use the latest powershell release for .NET core - https://github.com/PowerShell/PowerShell/releases

Reference the dll from the downloaded package and you should be able to run the powershell command.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM