Error 0xC0000034 during Service Pack 1 installations for Windows 7 and Windows 2008 R2

UPDATE [16/5/2011] – A Hotfix has been release by Microsoft to fix this issue –http://support.microsoft.com/kb/2533552

The recent SP1 for Windows 7 and Server 2008 R2 was pushed out via Microsofut Updates. There has been a plethora of posts from users stating that their installation has crashed their PC with the error above.

EDIT [14/3/2011] –A KB Article has been released by Microsoft on this –http://support.microsoft.com/KB/975484

A blog from joscon (Microsoft Support) suggests the following workaround/fix –http://blogs.technet.com/b/joscon/archive/2011/03/09/error-0xc0000034-during-service-pack-1-installations-for-windows-7-and-windows-2008-r2.aspx.

Option 1 (Win7 client only):  Use a system restore point to recover the system

  • This one is pretty self explanatory.  Boot your machine into WinRE and pick a restore point before the service pack was installed.  This should get you back up and running. 
  • This doesnt work on server

Option 2 (Win7 client and 2008 R2 server):  Delete the poqexec entry

  • Boot into WinRE and choose a command prompt then run the following commands and restart the computer:
    • Reg load HKLM\BaseSystem C:\Windows\System32\config\SYSTEM
    • Reg Delete “HKLM\BaseSystem\CurrentControlSet\Control\Session Manager”/v SetupExecute
    • Reg add “HKLM\BaseSystem\CurrentControlSet\Control\Session Manager”/v SetupExecute /t REG_MULTI_SZ
    • Reg unload HKLM\BaseSystem
  • If you’re more graphically inclined,you can use this method:
    • Boot into WinRE
    • Open Registry Editor using regedit.exe 
    • Now you will have the WinRE registry loaded so you need to load the “ System ” hive
    • To do that:Highlight HKLM then  Click on File >Load Hive >Browse to C:\windows\system32\config (assuming C:\ being the system drive )
    • Name the Hive as TEST 
    • Browse to HKLM\TEST\select and check the value for “ Current “
    • Assuming the value as (1) browse to HKLM\TEST\ControlSet001\Control\SessionManager
    • Locate and double click the key “SetupExecute ” at the right panel 
    • Delete any value inside the key and click OK
    • Highlight TEST and then Click on File >Unload hive
    • Type exit at cmd
    • Reboot the machine

[EDIT 15/3/2011] –Another suggestion from a MS Support Engineer via email was received.

  1. Boot from Windows Installation disc.
  2. Click on Next
  3. Click on Repair your computer
  4. Recover Environment option will come,Keep the first option selected on a small window and check on which partition windows 7 has been installed,most probably C:drive
  5. Click Next
  6. Select command prompt from the below mention option
  7. In the command prompt the prompt would be on X:\Sources
  8. Change it to the partition on which the operating system has been installed,mentioned in step 4
  9. Type the following command: 
    • cd /d C:\windows\system32\config

  10. Rename the following files by typing the following:
    • ren default default.old
    • ren sam sam.old
    • ren security security.old
    • ren software software.old
    • ren system system.old

  11. Change the working directory:
    • cd regback

  12. Copy the files from this directory to the previous directory as follows:
    • copy default c:\windows\system32\config
    • copy sam c:\windows\system32\config
    • copy security c:\windows\system32\config
    • copy software c:\windows\system32\config
    • copy system c:\windows\system32\config

  13. Restart the machine

[NOTE:THE FOLLOWING IS AN ABSOLUTE LAST RESORT AND WILL LEAVE THE PC IN AN UNKNOWN STATE]

The following recommendation from a user (thiswoot) in the Technet forums also suggests a fix which may work –http://social.technet.microsoft.com/Forums/en/w7itproinstall/thread/1c9a7151-b48c-4a98-aae7-a4b82682ea8e#bcabda57-7338-499f-aee2-d708e76df315

UPDATE [16/5/2011] – A Hotfix has been release by Microsoft to fix this issue –http://support.microsoft.com/kb/2533552

SBS2011 Hotfixes

Three Knowledge Base articles have been released for SBS2011. The first one is a repeat of the TDI driver issue which is used by some AntiVirus vendors,which caused problems in SBS2008. This hotfix whould be implemented in the upcoming Windows Server 2008 R2 and Windows 7 Service Pack 1 release.

Extend Home Server “Vail”beta installation

The public beta for Windows Home Server codenamed “Vail”expires today. As a result,current installations will reboot hourly because the server would have moved into expiry mode.

Microsoft have provided a workaround to extend the expiry in the interim,until the next beta is released. This workaround is based around Windows 2008 R2 SP1 Release Candidate.

To extend the expiry,you can do the following:

  1. Install WS08 R2 SP1 RC on the server from http://www.microsoft.com/downloads/en/details.aspx?familyId=c3202ce6-4056-4059-8a1b-3a9b77cdfdda&hash=2SduI20oa3rGcMvoU%2bPV1TVHUik%2f3CNeLRmMuOcJXzz13kgszkD2VWTIpb%2bAS0in9K12Sc14FpC3sdT4PNXCUw%3d%3d
  2. Logon on https://connect.microsoft.com/WindowsHomeServer with your connect credentials
  3. Click on Product keys (in the left hand side column)
  4. Click on Request a new product key
  5. Click on Get Key
  6. In Windows Home Server,open a command prompt
  7. Type “slmgr.vbs -ipk ABCDE-FGHIJ-KLMNO-PQRST-UVWXY” (where ABCDE.. is your new key as requested above)
  8. Type “slmgr.vbs –ato
  9. Reboot the server,and your beta timeframe has been extended.  You can check this by opening up a command prompt and typing winver

 You can view the Microsoft information on this topic here –http://social.microsoft.com/Forums/en/whsvailbeta/thread/9d459f48-2e9e-4279-ade1-6d4d5e907e4c

The Windows Home Server Blog page is here –http://windowsteamblog.com/windows/b/windowshomeserver/

PowerShell –Check Permissions on files and folders

While looking up some PowerShell scripts,I came across a neat command to recursively look through a folder and report on security and permissions for objects in the folder and subfolders.

Get-ChildItem C:\Scripts -recurse | ForEach-Object{Get-Acl $_.FullName} | Export-CSV C:\filename.csv

In Windows Server 2003,PowerShell is not automatically installed. You can also use a simple command –CACLS –to perform the same function.

cacls [TopFolder] /t >C:\filename.txt

This will dump the security information for TopFolder and all subfolders into the filename.txt file.

Some great resources for PowerShell scripting can be found from these links.

Daylight Savings Time Zone Editor for older versions of Windows

There are still occasions where old Line of Business applications are still in use that cannot/will not/absolutely will never work on newer operating systems. On these PCs,time zone updates for daylight savings are also not updated,and can cause some grief.

To manually create new timezones on these older operating systems,you can use Microsoft’s Time Zone Editor. The Windows NT,2000,XP,2003 can be downloaded here –http://download.microsoft.com/download/5/8/a/58a208b7-7dc7-4bc7-8357-28e29cdac52f/TZEDIT.exe

If you are living in a time warp called Windows 95,98,or ME,you can download the program from the old Microsoft FTP server - ftp://ftp.microsoft.com/services/technet/samples/ps/Win98/Reskit/CONFIG/

Once downloaded,run tzedit.exe and it will install itself to C:\Program Files\TZEdit. Browse to that location and run the tzedit.exe program.

Creating a new timezone is as simple as clicking on the New button and putting in the details.

Cannot open attachments in Outlook

When opening an attachment in outlook,you get an error stating that it cannot create the file or you need to check the permissions of the folder. This can happen if you often receive attachments with the same name. For example,you may receive many emails from a supplier using MYOB which sends out emails with a PDF attachment called esale.pdf.

When the attachment is opened,Outlook creates a copy of the file in a temporary folder. This is stored in the user profile,in a subfolder of the Temporary Internet Files hidden folder. The name of this folder is quite random. When another file of the same name is saved here,it is renamed filename (n).ext. And when n reached 99,you will have reached the maximum number of attachments of this name that can be saved. So,when a new file save is attempted,the error is produced.

To fix this,you need to delete the previous files saved in this folder. Locating the folder is not too difficult. A registry key controls this location.

Depending on your version of outlook,you can find the registry key as follows.

  • Outlook 97 –HKEY_CURRENT_USER\Software\Microsoft\Office\8.0\Outlook\Security
  • Outlook 98 –HKEY_CURRENT_USER\Software\Microsoft\Office\8.5\Outlook\Security
  • Outlook 2000 –HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Outlook\Security
  • Outlook 2002/XP –HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Outlook\Security
  • Outlook 2003 –HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Security
  • Outlook 2007 –HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\Security
  • Outlook 2010 –HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Outlook\Security

The location of the folder will be found in the registry key –OutlookSecureTempFolder

  1. Open the registry key
  2. Copy the path in this key
  3. Open Windows Explorer
  4. Paste this path into the addresss bar
  5. Locate and delete all instances of the attachment file name

iPhone IOS4 problem with ActiveSync and Exchange

Apple have released an update for the iPhone IOS4. This problem causes Exchange Mail,Contactas,or Calendars not to sync,or to sync very slowly. Users might also experience increased data usage,which may result in some hefty data charges.
 
The easiest way is to open the link in Safari on the iPhone and run it.
 
The Apple support article can be found here –http://support.apple.com/kb/TS3398

Worry-Free Business Security (WFBS) Disk Cleaner Tool

Another cause for disk space shortage on the C:drive of the SBS 2008 servers is the size of AntiVirus data files. With Trend Micro Worry Free Business Security,there is a tool to help clean out the older files and temporary files.
 
 
According to the site,disk usage of up to 9GB could occur.
 
Problem:
Normal WFBS operations will entail disk usage that may range from as low as 1.2GB,and may reach up to 6.0 GB depending on usage.
 
Under some occasions,however,a disk usage of up to 9GB may occur. 
 

Cannot Uninstall Office 2010 beta (Mondo)

Office 2010 has been released and in the impending rush,many are finding out that Office 2010 beta or Mondo release must be uninstalled before the RTM can be installed.
 
However,many installations are coming up with an error message “The product installation has been corrupted”and Office 2010 beta cannot be uninstalled.
 
The fix for this is to browse to the Groove.en-us folder from the original release and copy the setup.xml file to C:\Program Files\Common Files\microsoft shared\OFFICE14\Office Setup Controller\Groove.en-us
 
Then,the uninstall process will work.
 

Change the location of the Outlook OST file

 

If you work offline with Outlook or use Cached Exchange Mode with Microsoft Exchange Server,you can change the location of the local Offline Folders File (.OST) to a different folder or hard drive.

Change the location where your offline files are saved

  1. Exit Outlook.
  2. Click Start,and then click Control Panel.
  3. Double-click Mail,and then click E-mail Accounts.
  4. Click View or change existing e-mail accounts,and then click Next.
  5. Select the Microsoft Exchange Server account,and then click Change.
  6. Clear the Use Cached Exchange Mode check box.
  7. Click More Settings.
  8. Click the Advanced tab.
  9. Click Offline Folder File Settings.
  10. Click Disable Offline Use,and then click Yes in the dialog box that appears.
  11. Click Offline Folder File Settings.
  12. Click Browse,go to the location where you want to save your .ost file,and then click Open.
  13. Click OK.
  14. Select the Use Cached Exchange Mode check box.
  15. Click Next,and then click Finish.