Export the DHCP database from Windows 2003:
1. On the Windows 2003 DHCP server, navigate to a command prompt
2. Type the following Command: netsh
3. Type the following Command: DHCP
4. Type the following Command: server <\\Name or IP Address>
5. Type the following Command: export c:\w2k3DHCPdb all
Note You must have local administrator permissions to export the data.
Import the DHCP database
1. Copy the exported DHCP database file to the local hard disk of the Windows Server 2008-based computer.
2. Install the DHCP Role on the server.
3. Stop the DHCP server service on the server. To do this, follow these steps:
a. Log on to the target DHCP server by using an account that is a member of the local Administrators group.
b. Click Start, click Run, type cmd in the Open box, and then click OK.
c. At the command prompt, type net stop DHCPserver , and then press ENTER. You receive a "The Microsoft DHCP Server service is stopping. The Microsoft DHCP Server service was stopped successfully" message.
d. Type exit, and then press ENTER.
4. Delete the DHCP.mdb file under c:\windows\system32\DHCP folder.
5. Start the DHCP server service.
6. Right-click on the Command Prompt (cmd) and select run as administrator, to open the cmd prompt using elevated privileges.
Note You must have local administrator permissions to import the data.
7. Type the following Command: netsh
8. Type the following Command: DHCP
9. Type the following Command: server <\\Name or IP Address>
10. Type the following Command: import c:\w2k3DHCPdb
11. Restart DHCP and verify the database has moved over properly.
Source: https://support.microsoft.com/en-us/kb/962355
6 de agosto de 2015
Veeam Endpoint Backup > Send Email Notification
1. Criar c:\veeamscript.ps1 com o seguinte conteudo:
###########################################################
# Edit this part:
$youremailserver= "0.0.0.0"
$sender = "origem"
$recipient = "destino"
###########################################################
# Put most info into the body of the email:
$TimeGenerated = get-eventlog "Veeam Endpoint Backup" -newest 1 -entrytype Information, Warning, Error -source "Veeam Endpoint Backup" | Format-List -property TimeGenerated | out-string
$Source = get-eventlog "Veeam Endpoint Backup" -newest 1 -entrytype Information, Warning, Error -source "Veeam Endpoint Backup" | Format-List -property Source | out-string
$EntryType = get-eventlog "Veeam Endpoint Backup" -newest 1 -entrytype Information, Warning, Error -source "Veeam Endpoint Backup" | Format-List -property EntryType | out-string
$Message = get-eventlog "Veeam Endpoint Backup" -newest 1 -entrytype Information, Warning, Error -source "Veeam Endpoint Backup" | Format-List -property Message | out-string
$InstanceID = get-eventlog "Veeam Endpoint Backup" -newest 1 -entrytype Information, Warning, Error -source "Veeam Endpoint Backup" | Format-List -property InstanceID| out-string
$Body = " $TimeGenerated Instance-ID: $InstanceID $Message "
# Determine the subject according to the result of the backup:
$hostname = hostname
if ($Message.contains("Success")) {
$subject = "[Success] Endpoint Backup $hostname"
} elseif ($InstanceID.contains("110")) {
$subject = "[Started] Endpoint Backup $hostname"
} else {
$subject = "[Failed] Endpoint Backup $hostname failed"
}
# Send the email using the powershell object (replace with e.g. blat.exe for older powershell-Versions)
if ($InstanceID.contains("110") -Or $InstanceID.contains("190")) {
Send-MailMessage -To $recipient -Subject $subject -From $sender -Body $body -SmtpServer $Youremailserver
} else {
write-host "I don't want messages on 10010 and 10050 Restorepoint-creation or -remove Emails, skip those"
}
write-host "Script finished with -$instanceID- as the last event-ID"
2. Set the PowerShell Execution Policy to RemoteSigned (run as admin);
3. Criar tarefa windows para enviar email quando o backup terminar:
In General :
Run whether user is logged on or not
Run with highest privileges
Password stored
Trigger
On an event
Basic
Log : Veeam Endpoint Backup
Source : Veeam Endpoint Backup
Enabled
Action :
Start a program c:\veeamscript.ps1
Settings and conditions by default
###########################################################
# Edit this part:
$youremailserver= "0.0.0.0"
$sender = "origem"
$recipient = "destino"
###########################################################
# Put most info into the body of the email:
$TimeGenerated = get-eventlog "Veeam Endpoint Backup" -newest 1 -entrytype Information, Warning, Error -source "Veeam Endpoint Backup" | Format-List -property TimeGenerated | out-string
$Source = get-eventlog "Veeam Endpoint Backup" -newest 1 -entrytype Information, Warning, Error -source "Veeam Endpoint Backup" | Format-List -property Source | out-string
$EntryType = get-eventlog "Veeam Endpoint Backup" -newest 1 -entrytype Information, Warning, Error -source "Veeam Endpoint Backup" | Format-List -property EntryType | out-string
$Message = get-eventlog "Veeam Endpoint Backup" -newest 1 -entrytype Information, Warning, Error -source "Veeam Endpoint Backup" | Format-List -property Message | out-string
$InstanceID = get-eventlog "Veeam Endpoint Backup" -newest 1 -entrytype Information, Warning, Error -source "Veeam Endpoint Backup" | Format-List -property InstanceID| out-string
$Body = " $TimeGenerated Instance-ID: $InstanceID $Message "
# Determine the subject according to the result of the backup:
$hostname = hostname
if ($Message.contains("Success")) {
$subject = "[Success] Endpoint Backup $hostname"
} elseif ($InstanceID.contains("110")) {
$subject = "[Started] Endpoint Backup $hostname"
} else {
$subject = "[Failed] Endpoint Backup $hostname failed"
}
# Send the email using the powershell object (replace with e.g. blat.exe for older powershell-Versions)
if ($InstanceID.contains("110") -Or $InstanceID.contains("190")) {
Send-MailMessage -To $recipient -Subject $subject -From $sender -Body $body -SmtpServer $Youremailserver
} else {
write-host "I don't want messages on 10010 and 10050 Restorepoint-creation or -remove Emails, skip those"
}
write-host "Script finished with -$instanceID- as the last event-ID"
2. Set the PowerShell Execution Policy to RemoteSigned (run as admin);
3. Criar tarefa windows para enviar email quando o backup terminar:
In General :
Run whether user is logged on or not
Run with highest privileges
Password stored
Trigger
On an event
Basic
Log : Veeam Endpoint Backup
Source : Veeam Endpoint Backup
Enabled
Action :
Start a program c:\veeamscript.ps1
Settings and conditions by default
Add possible Owner to a Cluster Shared Volume
Operation has failed.
The action ‘Move to node <nodename>’ did not complete
Error code: 0×80071398. The operation failed because either the specified cluster node is not the owner of the group, or the node is not a possible owner of the group
Uh OH.. I have had enough problems with this cluster/SAN/CSV’s (that’s anther story put is this way one of the CSV’s ‘lost’ it’s partition information). I surmised that because the CSV’s were not presented to the server when it joined the cluster it may not had updated the “Possible Owners list” and sure enough this server was missing a few command laster and were are back in business.
note command needs to run from a Admin commpand prmpt
To tell who are the possible owners run:
Cluster res <resource name> /listowners
To to add a server to the list
Cluster res <resource name> /addowner :<servername>
source: https://robbieroberts.wordpress.com/2012/04/11/add-possible-owner-to-a-cluster-shared-volume/
The action ‘Move to node <nodename>’ did not complete
Error code: 0×80071398. The operation failed because either the specified cluster node is not the owner of the group, or the node is not a possible owner of the group
Uh OH.. I have had enough problems with this cluster/SAN/CSV’s (that’s anther story put is this way one of the CSV’s ‘lost’ it’s partition information). I surmised that because the CSV’s were not presented to the server when it joined the cluster it may not had updated the “Possible Owners list” and sure enough this server was missing a few command laster and were are back in business.
note command needs to run from a Admin commpand prmpt
To tell who are the possible owners run:
Cluster res <resource name> /listowners
To to add a server to the list
Cluster res <resource name> /addowner :<servername>
source: https://robbieroberts.wordpress.com/2012/04/11/add-possible-owner-to-a-cluster-shared-volume/
5 de agosto de 2015
How to Disable Loopback Check
To set the DisableLoopbackCheck registry key, follow these steps:
1 . Set the DisableStrictNameChecking registry entry to 1. For more information about how to do this, click the following article number to view the article in the Microsoft Knowledge Base:
1 . Set the DisableStrictNameChecking registry entry to 1. For more information about how to do this, click the following article number to view the article in the Microsoft Knowledge Base:
281308 Connecting to SMB share
on a Windows 2000-based computer or a Windows Server 2003-based computer may
not work with an alias name
2 . Click Start,
click Run, type regedit, and then click OK.
3 .
In Registry Editor, locate and
then click the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
4 .
Right-click Lsa,
point to New, and then click DWORD Value.
5 .
Type DisableLoopbackCheck,
and then press ENTER.
6 .
Right-click DisableLoopbackCheck,
and then click Modify.
7 .
In the Value data box,
type 1, and then click OK.
8 .
Quit Registry Editor, and then
restart your computer
Source: https://support.microsoft.com/en-us/kb/896861
Subscrever:
Mensagens (Atom)