$servers = get-content “path_to_the_file”
foreach ($server in $servers) {
$addresses = [System.Net.Dns]::GetHostAddresses($server)
foreach($a in $addresses) {
“{0},{1}” -f $server, $a.IPAddressToString
}
}
VMware ESX Warnung: “Systemprotokolle auf dem host werden in einem nicht beständigen Speicher gespeichert”
installationen von vmware ESXi 5.1 auf einem USB-Stick oder einer SD-Karte
Speicherort für die Scratch-Files für jeden Host auf einem Datastore erstellen.
unter Konfiguration/Speicher den passenden Datastore Durchsuchen und einen Ordner .locker-ESXHOST pro host erstellen,
dann unter Konfiguration -> Software -> Erweiterte Einstellungen -> ScratchConfig -> ScratchConfig.ConfiguredScratchLocation auf den neuen Pfad setzen, z.B. /vmfs/volumes/DATASTORENAME/.locker-ESXHOST
powershell datum
$datum = get-date -Format “dd_MM_yyyy”
upgrade vmware esx 5.1 to 5.5 via comman line
# open firewall for outgoing http requests:
2 esxcli network firewall ruleset set -e true -r httpClient
3 # Install the ESXi 5.5 GA Imageprofile from the VMware Online depot
4 esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-5.5.0-1331820-standard
liste ablaufender AD konten mit powershell
Search-ADAccount -AccountExpiring -TimeSpan “60” | Select-Object Name,AccountExpirationDate,DistinguishedName | Sort-Object AccountExpirationDate | Export-Csv Expiring-Accounts.csv
convert a file to lower case
dd if=in.txt of=out.txt conv=lcase
Doppelte Zeilen aus file nur einmal anzeigen.
sort -u
Citrix Locale Datenbank wiederherstellen.
dsmaint /recreatelhc
dsmaint config /user:DOMAIN\administrator /pwd:PASSWORD /dsn:”C:\Program Files (x86)\Citrix\Independent Management Architecture\mf20.dsn”
Shutdown NetApp
Shutdown NetApp
– login to NetApp SP-1
– halt -f
– login to netApp SP-2
– halt -f
– wait 5 minute and then turn off
Controller ‘s swich and Disk Shellf