VMware VCENTER CONFIGURATION MANAGER 5.3 - VCENTER DISCOVERED MACHINES IMPORT TOOL GUIDE Guía de instalación Pagina 94

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 240
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 93
###########################################################################-
##
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)))
{
vCenter Configuration Manager Administration Guide
94
VMware, Inc.
Vista de pagina 93
1 2 ... 89 90 91 92 93 94 95 96 97 98 99 ... 239 240

Comentarios a estos manuales

Sin comentarios