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
giovedì 29 novembre 2012
Very useful blog on AD and Exchange
Found this blog while searching best practice for dns client con DC and this article is the best one.
http://abhijitw.wordpress.com/2012/03/03/best-practices-for-dns-client-settings-on-domain-controller/
http://abhijitw.wordpress.com/2012/03/03/best-practices-for-dns-client-settings-on-domain-controller/
Troubleshooting Data Protector 7 Installation on W2008 R2
Today I've made a new experience on software installation, in particular
I had to install HP Data Protector as a Client on a pretty new box with Windows
2008 R2 Domain Controller.
First of all I experienced the problem with the remote installation that
fails with this message:
[Critical] Cannot
connect to the SCM (Service Control Manager) on client
computer.company.com:
[5] Access is denied.
As reported in “Hp
Data Protector 7 Installation and Troubleshooting guide” this could sort out
with this procedure:
On W2008 r2 open a console
window as an administrator, go to bin installation directory of omniback add
your domain user with:
omniinetpasswd.exe
-add user@domain
register this user as
installation user on installation server:
omniinetpasswd.exe
-inst_srv_user user@domain
Then installed again the
client with the GUI.
Unfortunately there’s
also the UAC on the target server so also this procedure will not install correctly Data Protector and the omniback directory in program file
could not be created. So the service will not be installed and the system will
not connect to cell manager.
Here my
troubleshooting.
- Disabled uac (see my previous post) – unfortunately the machine has to be rebooted so have to wait midnight.
- Copyed all the installation file on the target machine and run as administrator the setup file. During the installation process two directory are shown as target directory, since I tried to install two times I looked into this directory and found that c:\program files\omniback was missing. So:
- Created manually the target directory with logged on user (domain admin)
- Run again the install.
Worked like a charm.
The installation process shown correctly that inet service was installed and running.
Hope this will be helpful
if yes please post a comment.
Disabilitare User Access Control su un domain controller Windows 2008 R2
Oltre che a disabilitare questa feature via group policy è anche possibile disabilitarla modificando questa chiave del registro con il comando sotto riportato:
runas /user:DOMAIN\youraccount
"REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f"
Iscriviti a:
Post (Atom)