Installation guide

Table Of Contents
function ToCMBase64String([string]$input_string)
{
return [string]("cmbase64-" + [System.Convert]::ToBase64String
([System.Text.Encoding]::UNICODE.GetBytes
($input_string))).replace("=","-")
}
##########################################################################
###
[string]$cihash | out-null
#create a hashtable to check for duplicate rows
$hasharray = @{}
$clTasks = ("<Scheduled_Tasks>")
$split = [char]3
$schtasks = schtasks /query /v /fo:csv
if ($schtasks.count -gt 1)
{
#depending on OS, the first row may be blank
#use $k to determine whether to start at the first or second row
if ($schtasks[0] -eq "")
{
$k = 1
}
else
{
$k = 0
}
$cols = $schtasks[$k].substring(1,$schtasks[$k].length-2).replace
(""",""",$split).split($split)
#find the HostName and TaskName columns
$hostcol = -1
$namecol = -1
$j = 0
while (($j -lt $cols.count) -and (($hostcol -eq -1) -or ($namecol -eq
-1)))
{
if (([string]$cols[$j]).toupper() -eq "HOSTNAME")
vCenter Configuration Manager Administration Guide
104
VMware, Inc.