HV Backup A free Hyper-V backup Tool

HVbackup is a very easy and powerful free tool to backup and restore Hyper-V virtual machines, in standalone and clustered (CSV) environments, overcoming all the limitations that a generic tool like Diskshadow provides.
This tool targets Windows 2008 (R2) and Windows Server 2012 (R2). All the corresponding core and free Hyper-V editions are also supported!
HVBackup supports app consistent and crash consistent backups through the Hyper V VSS writer component integrated in the operating system.
There are quite a few expensive commercial solutions on the market supporting this scenario, but this is the first open source one, based on the research we did before publishing the project.
We integrated this tool in our datacenter’s production environment management infrastructure, which means that it undergoes continuous testing in a real world environment 🙂
HVBackup can be invoked from the command line, scripted with Powershell or integrated in any .Net program through it’s class library.
The backup process generates a separate zip file for each virtual machine in the specified output directory, containing all the files owned by the VM and identified for backup by the VSS Hyper-V provider.
Requirements:
.Net Framework 3.5, which can be easily enabled on the command line.

Samples:

HVBackup -a -o c:\backup
Performs a full VSS backup (using the HyperV VSS writer) of all VMs on the host.
HVBackup -l VM1,VM2 -o \\yourserver\backup
Performs a full VSS backup of the provided list of VMs (use quotes if the names contain spaces).
In this sample the output directory is on a remote server.
HVBackup -f list.txt -o c:\backup
Performs a full VSS backup of the VMs names provided in “list.txt”, one per line.

How to perform a scheduled backup

backup.cmd :

set BCKPATH=\\yourserver\yourpath
net use %BCKPATH% /user:<user> <password>
pushd %BCKPATH% && forfiles.exe -m *.zip -d -7 -c “cmd /c del @path”
popd
HVBackup.exe -a -o %BCKPATH% 1> lastlog_out.txt 2> lastlog_err.txt

Note: This script will delete every zip file older than 7 days in the target directory before performing a backup of all the VMs on the host. Change it accordingly to your needs.

Now, as we don’t have a scheduled task UI on hyper-v or server core, in order to schedule the previous script every night at 01 AM, just run:

schtasks.exe /create /tn HVBackup /tr c:\hvbackup\backup.cmd /sc DAILY /ru <username> /rp /st 01:00:00

Tool: http://hypervbackup.codeplex.com/

Download: HVBackup_1_0_beta1_20120330.zip Windows 2008 (R2) and Windows Server 2012

Download: HVBackup_1_0_1_Beta.zip Windows Server 2012 R2

MDT Packages & WSUS a very nice feature.

I long time ago I wrote a acticle mdt-automatisch-updates-via-wsus-laten-installeren-tijdens-het-deployen-van-het-os (Dutch) about using wsus with MDT.

After you deploy a Windows 7 SP1 machine updating takes a lot of time.

You can slipstream windows security updates when you deploy a machine… Windows 7 / Windows 8 / Windows 2008 R2 / Windows 2012.

How you do this: It’s quit simpley. Import de WSUS Content in to Packages.

 1

2

3

4

5

The error is normal because not everything is imported.

Important:

Delete every time you do this. Update & Hotfix packages. If you don’t you will end in a error state when you deploy a machine.

How to Improve Move Request Performance in Exchange 2010

This article provides step-by-step procedure about How to Improve Move Request Performance in Exchange 2010.

The Microsoft Exchange Mailbox Replication Service is responsible for Mailbox Move requests.
MSExchangeMailboxReplication.exe.config is Mailbox move request configuration file located in the following location: <Exchange Installation Path>\Program Files\Microsoft\Exchange Server\V14\Bin

How to Improve Move Request Performance in Exchange 2010:
1. Go to Exchange Mailbox Server
2. Navigate to the <Exchange Installation Path>\Program Files\Microsoft\Exchange Server\V14\Bin folder
3. Make a backup copy of MSExchangeMailboxReplication.exe.config before making any changes in it.
4. Open the Original MSExchangeMailboxReplication.exe.config file in notepad.
image
5.Modify the following values to increase the performance
MaxActiveMovesPerSourceMDB = “50″
MaxActiveMovesPerTargetMDB = “50″
MaxActiveMovesPerSourceServer = “200″
MaxActiveMovesPerTargetServer = “200″
MaxTotalMovesPerMRS = “300″

6. Save the file and Close it
7. Go to Services console
8. Restart the Microsoft Mailbox Replication Service

Windows 2008 (R2) Network tuning to Increase Move mailbox Speed:
1. Go to Start –> Command prompt –> Right Click –> Click Run as administrator
2. Execute the following command: netsh int tcp show global
image
3. Disable TCP Chimney Offload and Receive Side Scaling on the network adapters
netsh int tcp set global chimney=disabled
netsh int tcp set global rss=disabled
4. Run the following command and make sure Chimney Offload State & Receive-Side Scaling State is disabled.
image
5. Restart the Server.

Active Directory Accidental Deletion – Prevention

Accidental deletions in active directory can cause havoc and unfortunately. This may have been avoided and secondly could have been fixed in less than 10 % of the actual time spent if the environment was using one of the latest features that we included in Windows 2008 R2 ( Active Directory Recycle Bin ). Most critical situations arise due to accidental human /tool interference or configuration and it is important to be able to come out of such situations within minimal down time, Accidental Deletion in Active Directory is one such situation.

Powershell Enable Protected From Accidenta lDeletion:
Get-ADobject -Filter * -SearchBase “DC=wardvissers,DC=local” | Set-adobject -ProtectedFromAccidentalDeletion $true

Migrate a certificate authority from Windows 2008 R2 to Windows 2012

Today I was moving my testlab enterprise root CA from a Windows 2008 r2 server to a new Windows 2012 with a different server name. To accomplish this, I used this excellent Technet Post . I encountered no problems!

Windows 8 en Server 2012 KMS Service Activation

For Licensing Server 2012 and Windows 8 on a Windows 2008 R2 server you need to update the KMS Service.

Install the following update: An update is available for Windows 7 and Windows Server 2008 R2 KMS hosts to support Windows 8 and Windows Server 2012 as described in KB2691586.
If you don’t install this hotfix registering a Windows Server 2012 KMS will throw an Error: 0xC004F050 The Software Licensing Service reported that the product key is invalid

So request the hotfix and install it. Just follow the instructions and you’ll be fine clip_image001

We can start putting our brand new KMS key into action.

Uninstall the current KMS key using slmgr.vbs /upk clip_image002

clip_image003

Now you can install the new KMS key. The key listed here is obviously a demo one clip_image002[1]If you run in to any issues here, restarting the KMS Service can help. Try that first.

slmgr.vbs /ipk NOPEI-AMNOT-GIVIN-GITTO-YOU!

clip_image004

Now activate your brandnew KMS key running slmgr.vbs /ato
clip_image005

We run slmgr.vbs /dlv again and as you can see now we can activate all our Windows 2012 servers and Windows 8 computers

clip_image006

List of Performance hotfixes for Windows 7 SP1

Applies to:
Windows 2008 R2 SP1
Windows 7 Service Pack 1
Windows 7 SP1

Article ID: 2505438 – Slow performances in applications that use the DirectWrite API on a computer that is running Windows 7 or Windows Server 2008 R2
http://support.microsoft.com/?id=2505438

Article ID: 2505454 – The startup process is delayed on a computer that has a large hard disk installed and is running Windows 7 or Windows Server 2008 R2
http://support.microsoft.com/?id=2505454

Article ID: 2510636 – An update that improves the startup performance of Windows 7 and of Windows Server 2008 R2 is available
http://support.microsoft.com/?id=2510636

Article ID: 2523887 – You may encounter file corruption issues when you use the Offline Files feature to synchronize data in Windows 7
http://support.microsoft.com/?id=2523887

Article ID: 2524478 – The network location profile changes from "Domain" to "Public" in Windows 7 or in Windows Server 2008 R2. This problem can affect Group Policy processing at boot time because NLA does not know what network profile to use.
http://support.microsoft.com/kb/2524478

Article ID: 2525332 – You encounter a long logon time after you enable the "Do not automatically make redirected folders available offline" Group Policy setting in Windows 7 or in Windows Server 2008 R2
http://support.microsoft.com/?id=2525332

Article ID: 2555428 – The Windows 7 startup process is slow when you create many restore points
http://support.microsoft.com/?id=2555428

Article ID: 2561285 – You experience a long domain logon time in Windows 7 or in Windows Server 2008 R2 after you deploy Group Policy preferences to the computer
http://support.microsoft.com/?id=2561285

Article ID: 2561708 – Offline files synchronization may not finish on a computer that is running Windows 7 or Windows Server 2008 R2
http://support.microsoft.com/?id=2561708

Article ID: 2581608 – Logon scripts take a long time to run in Windows Vista, in Windows Server 2008, in Windows 7 or in Windows Server 2008 R2
http://support.microsoft.com/kb/2581608

Article ID: 2582112 – Windows 7 or Windows Server 2008 R2 stops responding when an application performs many I/O operations to a network share
http://support.microsoft.com/?id=2582112

Article ID: 2610379 – The Folder Redirection policy does not work if a previous user sets a redirected folder to an offline mode in Windows 7 or in Windows Server 2008 R2
http://support.microsoft.com/?id=2610379

Article ID: 2617858 – Unexpectedly slow startup or logon process in Windows Server 2008 R2 or in Windows 7
http://support.microsoft.com/?id=2617858

Article ID: 2625434 – "ERROR_SHARING_VIOLATION" error message in Windows XP or in Windows Server 2003 when you try to open a file on an SMB share on a server that is running Windows 7 or Windows Server 2008 R2
http://support.microsoft.com/?id=2625434

Article ID: 2640148 – Windows Explorer stops responding if you try to expand a mapped drive in Windows 7 or in Windows Server 2008 R2
http://support.microsoft.com/kb/2640148

Article ID: 2645611 – Windows 7 or Windows Server 2008 R2 stops responding if you try to log on a computer that has multiple monitors
http://support.microsoft.com/?id=2645611

Delay occurs when you log on to a domain from a computer that is running Windows 7 or Windows Server 2008 R2
http://support.microsoft.com/?id=2709630

Article ID: 2709630  2690528 Slow performance when you browse the My Documents folder in the document library in Windows 7 or in Windows Server 2008 R2

http://support.microsoft.com/kb/2690528/en-us

OS not starting after removing extra bitlocker boot partition

If you remove the 300mb hidden partition your system does not start anymore.

Solution 1:

Open command prompt
bcdboot c:\windows /s c:
Open diskmgmt.msc & Mark Partion as Active.
Reboot the VM.
Delete the BDEdrive partitie.
Extend the C-Disk with the empty space

Solution 2:

Boot with Windows 7 or WIndows 2008 R2 installation DVD, select repair and open a command prompt.
Type diskpart
Type select disk 0
Type list partition
then note the partition number where you installed windows 7.
Type select partition X (X is the partition number where Windows is installed)
type active
type exit
type bcdboot.exe c:\windows (if C is your windows partition)

Windows Server 8 Beta Active Directory install in Workstation 2012 Tech Preview

Some days ago I was installing Windows Server 8 aka 2012 in Workstation 2012 Tech Preview. I used the default settings where I choise for Windows 8 x64 as version.
image

I have used these VMs with the VMware Tools from the TechPreview.

As soon as I try to install and configure the Active Director Domain Services, the VM needs to reboot. Once it has rebooted, it goes in a blank screen, and there is nothing I can do. Workstation thinks the VM is running, but there is no response via the GUI in the VM, no response to ping traffic to the VM or RDP.

Solution:
Downgrade from Workstation TP2012 hardware to Workstation 8 hardware and to select Windows 2008 R2 as the guest OS Knipogende emoticon
imageimage

image

DPM DCOM was unable to communicate with the computer <servername> using any of the configured protocols or A DPM agent failed to communicate with the DPM service on <servername> because of a communication error.

Windows 2008 R2

DCOM was unable to communicate with the computer <servername> using any of the configured protocols.

image

Windows 2003 R2

A DPM agent failed to communicate with the DPM service on <servername>because of a communication error. Make sure that <servername>  is remotely accessible from the computer running the DPM agent. If a firewall is enabled on <servername>, make sure that it is not blocking requests from the computer running the DPM agent (Error code: 0x800706ba, full name: <servername>).
image

DPM Server Warning
The DPM protection agent on <servername> could not be contacted. Subsequent protection activities for this computer may fail if the connection is not established. The attempted contact failed for the following reason: (ID 3122)

The protection agent operation on <servername> failed because the service did not respond. (ID 316 Details: Internal error code: 0x8099090E)

image

Solution:

On the Workgroup Server
SetDpmServer.exe –dpmservername <servername> -isnondomainserver –username <dpmuseraccount> –productionserverdnssuffix <fqdn>

On the DPM Server

Attach-NonDomainServer.ps1 –dpmservername <servername> –PSName <servername> –UserName <dpmuseraccount>

clip_image008

Don’t forget to set Password never Expires on the DPM User account