venerdì 25 gennaio 2013
mercoledì 23 gennaio 2013
VM Migration via powercli
# Script for Vm Datastore Migration
# Author.: Michele Pavan
# Date...: 23/01/2013
# License: Version 2 of the GPL. Do not change the author. You must specify the original author.
$hostVCenter = "myVcenter"
$datastore = "Iomega"
$vm = "Srv1"
add-pssnapin VMware.VimAutomation.Core
#Connection to Vcenter
Connect-VIServer $hostVCenter
#changing mail details
#Get Date and time start
$date = Get-Date -Format "dd/MM/yyyy"
$time = (Get-Date -f "HH:mm")
$subject = "VM migration ",$vm
$body = "VM Migration start: ",$vm," - ",$date," ",$time
C:\Scripts\powercli\sendmail.ps1
#Migration
Move-Vm -Datastore $dataStore -VM $vm
#changing mail details
#Get Date and time end
$date = Get-Date -Format "dd/MM/yyyy"
$time = (Get-Date -f "HH:mm")$body = "VM Migration end: ",$vm," - ",$date," ",$time
C:\Scripts\powercli\sendmail.ps1
-------------------------------------
If you will use this code please, leave a message.
# Author.: Michele Pavan
# Date...: 23/01/2013
# License: Version 2 of the GPL. Do not change the author. You must specify the original author.
$hostVCenter = "myVcenter"
$datastore = "Iomega"
$vm = "Srv1"
add-pssnapin VMware.VimAutomation.Core
#Connection to Vcenter
Connect-VIServer $hostVCenter
#changing mail details
#Get Date and time start
$date = Get-Date -Format "dd/MM/yyyy"
$time = (Get-Date -f "HH:mm")
$subject = "VM migration ",$vm
$body = "VM Migration start: ",$vm," - ",$date," ",$time
C:\Scripts\powercli\sendmail.ps1
#Migration
Move-Vm -Datastore $dataStore -VM $vm
#changing mail details
#Get Date and time end
$date = Get-Date -Format "dd/MM/yyyy"
$time = (Get-Date -f "HH:mm")$body = "VM Migration end: ",$vm," - ",$date," ",$time
C:\Scripts\powercli\sendmail.ps1
-------------------------------------
If you will use this code please, leave a message.
Transform DNS dynamic record in static
dnscmd fqdn.servername /recordadd zonename servername A ipaddress servername
IIS 6 e Windows 2008 UPN authentication
Oggi, mio malgrado ho scoperto che l'autenticazione UPN cioè nella forma nomeutente@nomedominio non funziona su II6 (windows 2003) con domain controller windows 2008 R2.
Per risolvere è necessario installare questo aggiornamento:http://support.microsoft.com/kb/956114
Per risolvere è necessario installare questo aggiornamento:http://support.microsoft.com/kb/956114
Etichette:
active directory,
IIS,
Windows,
windows 2008 R2
Iscriviti a:
Post (Atom)