PoshCode Archive  Check-in [e48bba2452]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:http://halr9000.com/article/642
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:e48bba24522732c9414cb853a824ea770876f619347a455128a745325a2db7e7
User & Date: unknown 2018-06-10 14:27:29
Context
2018-06-10
14:27
Cron Daemon for PowerShell check-in: 96187016e0 user: unknown tags: trunk
14:27
http://halr9000.com/article/642 check-in: e48bba2452 user: unknown tags: trunk
14:27
This script customizes the welcome screen which PowerGUI admin console displays on start-up or when a folder is selected in the left-hand tree. check-in: 31d8801812 user: Dmitry Sotnikov tags: trunk
Changes

Added The-other-Post.ps1.













































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# encoding: ascii
# api: powershell
# title: The other Post
# description: http://halr9000.com/article/642
# version: 0.1
# license: CC0
# x-poshcode-id: 964
# x-archived: 2009-03-27T18:09:16
#
#
$insParm = '/s /v"/qn /norestart"' 
$updList = get-cluster -name $YouClusterNameHere | get-vm |
	where-object {$_.powerstate -eq "PoweredON"} |
		foreach-object { get-view $_.ID } |
			where { $_.guest.toolsstatus -match "toolsOld" } 
foreach ($uVM in $updList) 
{
	$uVM.name 
	$uVM.UpgradeTools_Task($insParm) 
	#Wait 30 seconds before starting another update task 
	Start-sleep -s 30 
}