powershell 1.2 windows-server
2016-02-27 16:56
537 查看
CML
查看pwershell是否开启脚本功能Get-ExecutionPolicy
开启脚本功能
Set-ExecutionPolicy unrestricted
获取server-manager模块
import-module servermanager
获取服务器角色功能列表
Get-windowFeature
添加角色/功能
add-windowsFeature name -whatif(whatif用于虚拟运行)
add-windowsFeature name -restart(添加完自动重启)
删除角色/功能
remove-windowsFeature name -whatif(虚拟运行)
remove-windowsFeature name -restart(删除后自动重启)
相关文章推荐
- shell实现mysql高可用
- windows 7 使用 powershell 的几个本地操作常用命令
- linux 下shell脚本执行多个命令的方法
- shell 编程之 for while until 循环
- shell获取Linux主机信息(mac地址,处理器,主板,uuid,硬盘)的方法
- PowerShell-Exchange:Environment Reports 推荐
- PowerShell-Exchange:Services Monitor Report
- Powershell 1.1 computer configuration
- bash
- Powershell-Exchange:Generate Health Report
- shell编程(1)
- spark-shell和scala错误
- spark-shell和scala错误
- 为MacOS X创建.bash_profile
- python结合shell查询google关键词排名的实现代码
- HBase的Shell操作
- GitBash 自定义命令提示符
- shell编程练习001(20160226)
- shell 编程之 if...else case...esac
- ubuntu 12.04 怎么取得超级用户权利