SCVMM 2008 R2 SP1 快速修改动态内存
2011-02-21 10:26
169 查看
VMM 2008 R2 SP1 RC版已经发布,迫不及待下载下来部署并测试使用,我们知道其最有价值的功能在于动态内存功能。但这里在配置中遇到了个大难题,当我有一定数量的虚拟机模板时,手动去配置修改动态内存值往往是非常费时间的。第一时间想到了Powershell,顺便简单学习一下Powershell-Virtual Machine Manager的使用。
头疼的模板数量…
快速修改模板动态内存的Powershell指令:
PS C:\Windows\system32> Get-Template -VMMServer "VMMServer1.Contoso.com" | where {$_.Owner –eq "Unknown"} | Set-Template -DynamicMemoryEnabled $Ture -MemoryMB 1024 -DynamicMemoryMaximumMB 2048
说明:指定模板所在的名为"VMMServer1.Contoso.com" 的VMMServer,并将所有模板Owner为"Unknown"的模板启用动态内存。
PS C:\Windows\system32> Get-Template -VMMServer "VMMServer1.Contoso.com" | where {$_.Name –match "^XP.*"} | Set-Template -DynamicMemoryEnabled $Ture -MemoryMB 1024 -DynamicMemoryMaximumMB 2048
说明:指定模板所在的名为"VMMServer1.Contoso.com" 的VMMServer,并将所有模板名称包含"XP"的模板启用动态内存。
头疼的模板数量…
快速修改模板动态内存的Powershell指令:
PS C:\Windows\system32> Get-Template -VMMServer "VMMServer1.Contoso.com" | where {$_.Owner –eq "Unknown"} | Set-Template -DynamicMemoryEnabled $Ture -MemoryMB 1024 -DynamicMemoryMaximumMB 2048
说明:指定模板所在的名为"VMMServer1.Contoso.com" 的VMMServer,并将所有模板Owner为"Unknown"的模板启用动态内存。
PS C:\Windows\system32> Get-Template -VMMServer "VMMServer1.Contoso.com" | where {$_.Name –match "^XP.*"} | Set-Template -DynamicMemoryEnabled $Ture -MemoryMB 1024 -DynamicMemoryMaximumMB 2048
说明:指定模板所在的名为"VMMServer1.Contoso.com" 的VMMServer,并将所有模板名称包含"XP"的模板启用动态内存。
相关文章推荐
- 修改忘记的Windows 2008 R2 sp1域管理员密码
- 修改Windows Server 2008 R2 的3389远程端口的Bat批处理代码
- 额外域控制器_安装之二_(Windows Server 2008 R2 SP1英文版)
- windows server 2008 R2下如何快速开启远程桌面
- Microsoft Windows Server 2008 R2 SP1中文企业版 33in1 OEM延長试用时间
- Microsoft® SQL Server® 2008 Express以及Microsoft® SQL Server® 2008 R2 SP1下载地址
- 在Windows Server 2008 R2中使用web方式修改域用户账户密码
- Windows 7 SP1 与 Windows Server 2008 R2 SP1 升级到RDP 8.0总结
- windows 2008 R2 SP1 安装10.2.0.4 64位oracle
- SERVER 2008 R2 SP1下的内存虚拟盘(支持32位,64位的所有windows版本)
- 修改Windows Server 2008 R2 的3389远程端口的Bat批处理代码
- Windows Server 2008 R2安装exchange 2010 sp1 979744错误的解决办法
- 邮件服务器_安装准备和安装之七_(Windows Server 2008 R2 SP1英文版)
- Windows Server 2008 R2 SP1 企业版 免激活版33in1
- SCVMM2008添加Virtual server 2005 R2主机
- Windows Server 2008 R2 /2012 修改密码策略
- TMG2010_规划及部署之十一_(Windows Server 2008 R2 SP1英文版)
- 安装SCVMM 2008 R2 后,无法登录自助门户
- 如何快速、完美的激活Windows Server 2008 R2
- Windows server 2008 R2远程桌面3389端口的修改方法