rollup commit
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
param(
|
param(
|
||||||
[string]$vcenter,
|
[string]$vcenter,
|
||||||
[string]$vmName,
|
[string]$vmName,
|
||||||
[string]$un,
|
[string]$un,
|
||||||
[string]$pw
|
[string]$pw
|
||||||
)
|
)
|
||||||
|
|
||||||
Get-Module -ListAvailable PowerCLI* | Import-Module -Verbose:$false
|
Get-Module -ListAvailable PowerCLI* | Import-Module -Verbose:$false
|
||||||
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false
|
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false
|
||||||
Connect-ViServer -Server $vcenter -User $un -Password $pw -Verbose:$false
|
Connect-ViServer -Server $vcenter -User $un -Password $pw -Verbose:$false
|
||||||
|
|
||||||
Get-VM -Name "$vmName" | Get-VMResourceConfiguration |Set-VMResourceConfiguration -CpuLimitMhz 3000
|
Get-VM -Name "$vmName" | Get-VMResourceConfiguration |Set-VMResourceConfiguration -CpuLimitMhz 3000
|
||||||
|
Reference in New Issue
Block a user