[4] Window PowerShell DSC 学习系列----PowerShell DSC 5.x 提供了哪些有用好用的工具命令?
来源:互联网 发布:怎样把代码复制到淘宝 编辑:程序博客网 时间:2024/04/28 01:21
在使用PowerShell DSC的时候,我们经常需要使用 PSDesiredStateConfiguration的一些常用的命令去配置或者获取一些DSC的配置信息已经设置DSC的LCM的状态等信息;那么PowerShell DSC 5.x 提供了哪些功能和cmdlet?
我们通常可以用下面的命令列出所有的PSDesiredStateConfiguration的常规命令.
PS C:\DSC> Get-Command -Module PSDesiredStateConfigurationCommandType Name Version Source----------- ---- ------- ------Function Configuration 1.1 PSDesiredStateConfigurationFunction Disable-DscDebug 1.1 PSDesiredStateConfigurationFunction Enable-DscDebug 1.1 PSDesiredStateConfigurationFunction Get-DscConfiguration 1.1 PSDesiredStateConfigurationFunction Get-DscConfigurationStatus 1.1 PSDesiredStateConfigurationFunction Get-DscLocalConfigurationManager 1.1 PSDesiredStateConfigurationFunction Get-DscResource 1.1 PSDesiredStateConfigurationFunction New-DscChecksum 1.1 PSDesiredStateConfigurationFunction Remove-DscConfigurationDocument 1.1 PSDesiredStateConfigurationFunction Restore-DscConfiguration 1.1 PSDesiredStateConfigurationFunction Stop-DscConfiguration 1.1 PSDesiredStateConfigurationCmdlet Invoke-DscResource 1.1 PSDesiredStateConfigurationCmdlet Publish-DscConfiguration 1.1 PSDesiredStateConfigurationCmdlet Set-DscLocalConfigurationManager 1.1 PSDesiredStateConfigurationCmdlet Start-DscConfiguration 1.1 PSDesiredStateConfigurationCmdlet Test-DscConfiguration 1.1 PSDesiredStateConfigurationCmdlet Update-DscConfiguration 1.1 PSDesiredStateConfiguration
比如,我们可以用Get-DscResource 命令列出所有的DSC的resource的名字;也能具体列出某一个DSC resource的名字,以及
其具体的属性。
PS C:\DSC> $gc = Get-DscResource -Name MSFT_xChrome ; $gc.PropertiesName PropertyType IsMandatory Values---- ------------ ----------- ------DependsOn [String[]] False {}PsDscRunAsCredential [PSCredential] False {}Language [String] False {}LocalPath [String] False {}
1 0
- [4] Window PowerShell DSC 学习系列----PowerShell DSC 5.x 提供了哪些有用好用的工具命令?
- [3] Window PowerShell DSC 学习系列----如何在PowerShell DSC 5.x 安装最新的DSC Module?
- [28] Window PowerShell DSC 学习系列----如何用Java调用PowerShell DSC 5.x的oData服务
- [6] Window PowerShell DSC 学习系列----如何安装最新的PowerShell DSC 5.1 Pull Server?
- [27] Window PowerShell DSC 学习系列----DSC 5.x 查询节点注册和执行报告(Report)查询
- [1] Window PowerShell DSC 学习系列----DSC的定义和2种架构模式
- [8] Window PowerShell DSC 学习系列----MOF文件和DSC Module的部署
- [22]Window PowerShell DSC学习系列---- 如何用PowerShell脚本查看DSC服务器的执行报表(Report)
- [31] Window PowerShell DSC 学习系列----PowerShell DSC 专栏竟然在CSDN推荐的优秀专栏里面
- [14]Windows PowerShell DSC学习系列---如何Debug PowerShell DSC?
- [21]Window PowerShell DSC学习系列---- 在Window 2012 R2 安装DSC 5.0 Pull服务器报错的解决方案
- [11] Windows PowerShell DSC学习系列---如何定制一个基于PowerShell脚本实现的DSC Resource
- [12]Windows PowerShell DSC学习系列---PowerShell DSC的几个例子
- [9] Window PowerShell DSC 学习系列----错误诊断和分析
- [2] Window PowerShell DSC 学习系列----DSC的资源(Resource)以及配置和格式(Configuration && Sytax )
- [5] Window PowerShell DSC 学习系列----如何生成一个DSC MOF文件?
- [25]Window PowerShell DSC学习系列----如何更换DSC Pull服务器数据库为Access数据库?
- [32] Window PowerShell DSC 学习系列----使用DSC Package安装时,如何获取Product ID?
- 我的四轴飞行器经验总结(二)-无人机应用场景
- 【设计模式】—-(11)享元模式(结构型)
- 并发测试_抽奖
- RMI应用过程中的问题
- 理解java中的栈内存与堆内存
- [4] Window PowerShell DSC 学习系列----PowerShell DSC 5.x 提供了哪些有用好用的工具命令?
- 开源分享三(炫酷的Android Loading动画)
- 基于Android 精简版 Bluetooth 蓝牙 聊天 源码下载
- 在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误
- Mysql分库分表方案
- 【C/C++开发】C++实现简单的线程类
- js组合模式及更强大的宏命令
- IEDA解决源码1.5已过时,将在未来版本删除问题。
- Android应用性能调优的技术点