简体   繁体   中英

How does the command “cd WSMan:\localhost\shell” work? How can I reproduce it?

I am able to use Powershell to configure WinRM using a special "cd" command. Can anyone explain how it works and how I can implement that type of plug in for my own app?

What you are looking at is a PowerShell Provider. You can implement providers to expose data or configuration information as a file system.

This link should get your started, but know that providers are more difficult to implement than cmdlets.

Writing a Windows PowerShell Provider

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