当前位置:网站首页 > 更多 > 玩电脑 > 正文

[玩转系统] Windows PowerShell 参考

作者:精品下载站 日期:2024-12-14 02:55:19 浏览:13 分类:玩电脑

Windows PowerShell 参考


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

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

开发者观众

Windows PowerShell 软件开发工具包 (SDK) 是为需要有关 Windows PowerShell 提供的 API 的参考信息的命令开发人员编写的。命令开发人员使用 Windows PowerShell 创建命令和提供程序,以扩展 Windows PowerShell 可执行的任务。

Windows PowerShell 资源

除了 Windows PowerShell SDK 之外,以下资源还提供了更多信息。

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

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

编写 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 和提供程序的类。同样,建议您为您实现的 cmdlet 创建 YourName.Commands 命名空间。

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 运行空间是一个或多个 Windows PowerShell 管道调用 cmdlet 的上下文。也就是说,cmdlet 在 Windows PowerShell 运行空间的上下文中工作。有关 Windows PowerShell 运行空间的详细信息,请参阅 Windows PowerShell 运行空间。

您需要 登录账户 后才能发表评论

取消回复欢迎 发表评论:

关灯