Windows PowerShell 参考

Windows PowerShell是一.NET Framework自动化设计的 Microsoft 连接环境。 Windows PowerShell提供了生成命令、编写解决方案和创建基于图形用户界面的管理工具的新方法。

Windows PowerShell使系统管理员能够直接执行命令或通过脚本自动管理系统资源。

面向开发人员

Windows PowerShell SDK () SDK是针对需要有关 WINDOWS POWERSHELL 提供的 API 的参考信息的命令开发人员编写的。 命令开发人员Windows PowerShell创建命令和提供程序,以扩展这些命令和提供程序Windows PowerShell。

Windows PowerShell资源

除了 Windows PowerShell SDK,以下资源提供了详细信息。

入门 Windows PowerShell介绍Windows PowerShell语言、cmdlet、提供程序以及对象的使用。

编写 Windows PowerShell 模块为管理员、脚本开发人员和 cmdlet 开发人员提供信息和示例,这些开发人员需要使用 Windows PowerShell 模块打包和分发Windows PowerShell解决方案。

编写 Windows PowerShell Cmdlet为正在设计 cmdlet 的项目经理和实现 cmdlet 代码的开发人员提供信息和代码示例。

Windows PowerShell团队博客用于向其他用户学习并与其他用户协作Windows PowerShell资源。 请阅读 Windows PowerShell 团队博客,然后加入 Windows PowerShell 用户论坛 (microsoft.public.windows.powershell)。 可使用 Windows Live Search 查找其他 Windows PowerShell 博客和资源。 然后,在培养专业知识时,请自由分享想法。

PowerShell 模块浏览器 提供最新版本的命令行帮助主题。

类库

System.Management.Automation此命名空间是此命名空间的根Windows PowerShell。 它包含实现自定义 cmdlet 所需的类、枚举和接口。 具体而言 ,System.Management.Automation.Cmdlet 类是必须从中派生所有 cmdlet 类的基类。 有关 cmdlet 详细信息,请参阅。

System.Management.Automation.Provider此命名空间包含实现提供程序所需的类、枚举Windows PowerShell接口。 具体而言,System.Management.Automation.Provider.Cmdletprovider类是必须从中派生Windows PowerShell提供程序类的基类。

Microsoft.PowerShell.Commands此命名空间包含由 Windows PowerShell 实现的 cmdlet 和提供程序的类。 同样,建议创建 YourName。所实现这些 cmdlet 的命令命名空间。

System.Management.Automation.Host此命名空间包含 cmdlet 用来定义用户与用户之间的交互的类、枚举Windows PowerShell。

System.Management.Automation.Internal 此命名空间包含其他命名空间类使用的基类。 例如 ,System.Management.Automation.Internal.Cmdletmetadataattribute 类是 System.Management.Automation.CmdletAttribute 类的基类。

System.Management.Automation.Runspaces此命名空间包含用于创建运行空间的类、枚举Windows PowerShell接口。 在此上下文中,Windows PowerShell是一个或多个管道调用 cmdlet Windows PowerShell上下文。 也就是说,cmdlet 在运行空间的Windows PowerShell工作。 有关 Windows PowerShell 运行空间的信息,请参阅 Windows PowerShell运行空间