April 2014 archive

Apr 16

issue maintenance + power off machines- solution

I will describe a problem encountered some time ago regarding finding large numbers of vms in maintenance enabled and powered off.    

Continue reading

Apr 08

Import Power-time scheme

#ImportPowerTimeScheme <Uid> <FileScheme> $PowerTimes = Get-BrokerPowerTimeScheme Foreach ($PowerTime in $PowerTimes) { $file=”path” $file+=$PowerTime.Uid $file+=”.txt” $Content=Get-Content $file Set-BrokerPowerTimeScheme $PowerTime.uid -PoolSize $Content Write-Host -ForegroundColor Green “Enter your txt here”

Apr 08

Export Power-time schemes for all desktop groups

#Export Powertime scheme $PowerTimes = Get-BrokerPowerTimeScheme new-item -Path “path”  -ItemType directory Foreach ($PowerTime in $PowerTimes) { $file= “path” $file+=$PowerTime.Uid $file+=”.txt” echo $PowerTime.PoolSize | Out-file $file }