How to find PowerShell Static Classes and Methods?

后端 未结 4 382
忘掉有多难
忘掉有多难 2021-01-03 14:34

How can I find what Static Classes and Methods there is available in PowerShell 2.0?

4条回答
  •  说谎
    说谎 (楼主)
    2021-01-03 15:32

    You have the classes ( static or otherwise ) from .NET framework.

    Once you have the class, you can use Get-Member:

    [Environment] | Get-Member
    

    PS: "Windows PowerShell Cookbook" by Lee Holmes has an Appendix which lists some useful classes, from Powershell / SysAdmin point of view. That list( and the book) is very useful.

提交回复
热议问题