Showing posts with label Windows Vista. Show all posts
Showing posts with label Windows Vista. Show all posts

February 7, 2012

SysPrep /generalize + BCD store + STOP: c000021a

Today I tried to do a sysprep of a Windows Server 2008 R2 x64 computer before capturing an image of it via imagex.

sysprep.exe /generalize /oobe /shutdown /unattend:unattend.xml

Everything went fine and the computer shutdown.

Then I rebooted the server and had a blue screen (BSOD) :

STOP: c000021a {Fatal System Error}
The session manager initialization system process terminated unexpectedly with a status of 0xc000003a (0x00000000 0x00000000).
The system has been shut down.


I found out that SYSPREP had made some changes to my Boot Configuration Data (BCD). Here’s an extract of my setupact.log file :




LaunchDll:Found 'C:\Windows\System32\spbcd.dll,Sysprep_Generalize_Bcd'; executing it
Sysprep_Generalize_Bcd: Located BCD store on system drive. Generalizing it...
GeneralizeBcdStore: Found the memory tester object.
GeneralizeBcdStore: Found the Windows OS Loader object {bb3f7e5d-3afe-11e1-908d-0010184c4562} for the currently running OS.
GeneralizeBcdStore: Found the resume object {bb3f7e5c-3afe-11e1-908d-0010184c4562} for the OS loader.
GeneralizeBcdStore: System drive backed by VHD = 0
GeneralizeBcdStore: Generalizing object {9dea862c-5cdd-4e70-acc1-f32b344d4795}
GeneralizeBcdStore: Successfully generalized application device. Status = [0x0]
GeneralizeBcdStore: Generalizing object {b2721d73-1db4-4c62-bf78-c548a880142d}
GeneralizeBcdStore: Successfully generalized application device. Status = [0x0]
GeneralizeBcdStore: Generalizing object {bb3f7e5d-3afe-11e1-908d-0010184c4562}
GeneralizeBcdStore: Successfully generalized application device. Status = [0x0]
GeneralizeBcdStore: Successfully generalized OS device. Status = [0x0]
GeneralizeBcdStore: Generalizing object {bb3f7e5c-3afe-11e1-908d-0010184c4562}
GeneralizeBcdStore: Successfully generalized application device. Status = [0x0]
GeneralizeBcdStore: Successfully generalized hiberfile device. Status = [0x0]
Sysprep_Generalize_Bcd: Successfully generalized the bcd store. Status=[0x0]
LaunchDll:Successfully executed 'C:\Windows\System32\spbcd.dll,Sysprep_Generalize_Bcd' without error



So, after running sysprep /generalize my BCD looked like this :




Windows Boot Loader
-------------------
identifier {default}
device locate=\windows\system32\winload.efi
path \windows\system32\winload.efi
description Windows Server 2008 R2
locale en-us
inherit {bootloadersettings}
osdevice locate=\windows
systemroot \windows
resumeobject {bb3f7e5c-3afe-11e1-908d-0010184c4562}
nx OptOut
detecthal Yes



Did you noticed the locate=… value for the device and osdevice entries ? Well it seems that those new values were causing my blue screen.



I restored the previous values (before Sysprep) with the following commands :



bcdedit /set {default} device partition=C:

bcdedit /set [default} osdevice partition=C:



After that, my computer was able to boot again.



I’m not sure, but i suspect that this little mixed up with the BCD Store maybe related to how I partitioned my disk :























WinPE


Size 900Mb, boot WinPE to capture or apply an image from imagex
ESP


Size 100Mb, EFI System Partition, Active Partition
Microsoft Reserved


Size 128Mb
Windows

Size 120Gb, C: drive
Data


Size 400Gb, E: drive


My disk is initialize as a GPT disk and this is an EFI Computer.



My recommendation


Always make a backup of the BCD store before running SYSPREP :



bcdedit /export backupbcd.bcd

January 27, 2012

Group Policy Preferences best practices

This article introduces Group Policy Preferences, explains how they differ from Group Policy settings, compares Preferences to logon scripts, and covers a few Group Policy Preferences gotchas.

The introduction of Group Policy Preferences into Group Policy seems to have quite a few people confused. I think that confusion has been compounded by all of the people who skipped Windows Vista, stayed with Windows XP, and are just now starting to implement Windows 7 on the desktop.

Group Policy Preferences

Source : 4sysops

October 12, 2011

How to create an HTML Application to configure your WebDAV Redirector settings

Excellent post from Robert McMurray :

I've mentioned in previous blog posts that I use the Windows WebDAV Redirector a lot. (And believe me, I use it a lot.) Having said that, there are a lot of registry settings that control how the Windows WebDAV Redirector operates, and I tend to tweak those settings fairly often.
I documented all of those registry settings in my Using the WebDAV Redirector walkthrough, but unfortunately there isn't a built-in interface for managing the settings. With that in mind, I decided to write my own user interface.

Source : blogs.iis.net/robert_mcmurray
Related : using-the-webdav-redirector 

August 17, 2011

Alleviating pressure caused by component store (WinSxs) size

I just wanted to make you all aware of a new KB article myself and a couple of teammates put together around component store growth and remediation. I wanted to have something short and to the point and I think a lot of you might find this more useful than sifting through the blog trying to piecemeal together the same information. I'll probably try to put together something a little more verbose here that goes more into the internals of some of this but I am busy working on a new project and dont have tons of time. If you have any questions or comments about the material please ask them here.

How to Alleviate Disk Space Pressure Caused By a Large Windows Component Store (WinSxS) Directory
http://support.microsoft.com/?kbid=2592038

Source : The Windows Servicing Guy

March 31, 2010

Default Programs Editor

it is a context menu editor, an autoplay editor, and default programs association editor; essentially, the settings in the "Default Programs" Control Panel page. It's a replacement for the "File Types" dialog in Windows XP, and brings some key features of TweakUI to Windows Vista/7.

Really cool and well done tool, a must have.

Source : defaultprogramseditor.com

February 16, 2010

Powershell 2.0 download

« Where is the Powershell 2.0 download ? »

Don’t ask me why, but the official release of PowerShell 2.0 is not available in a standalone download. It is now part of the «Window Management Framework».

The framework includes :

  • Windows Remote Management (WinRM) 2.0
  • Windows PowerShell 2.0
  • Background Intelligent Transfer Service (BITS) 4.0

It is available for Windows XP, Windows 2003, Windows Vista and Windows 2008 (already included with Windows 7 and 2008 R2).

You will find all the download links and infos at http://support.microsoft.com/kb/968929/en-us

Note : Don’t forget, PowerShell shortcuts are in Programs/Accessories/Windows PowerShell

September 29, 2009

Microsoft Security Essentials

Microsoft anti-virus and anti-malware new bundle is now out of beta et available for download.

Learn more and download at www.microsoft.com/security_essentials

June 30, 2009

RSAT and ADUC for Vista - Update to add tabs for Terminal Services Profile, Environment, Sessions, and Remote Control

Ned here. After much strife, here is the hotfix to get RSAT AD Users and Computers to include tabs for:

  • Terminal Services Profile 
  • Environment 
  • Sessions 
  • Remote Control 

960890 Some tabs are not available in the properties of a user account in the Active Directory Users and Computers MMC snap-in after you install Remote Server Administration Tools (RSAT) on a computer that is running Windows Vista
http://support.microsoft.com/default.aspx?scid=kb;EN-US;960890

If you have been hacking away at this previously to make it work, make sure to unregister and remove your server DLL's before installing this update.

Linda Taylor rules.

- Ned Pyle

Source : Ask the Directory Services Team

Migrating from NTLM to Negotiate in a nutshell

Although it’s kind of old news, there is an interesting article on the Windows Authentication Blog :

Migrating from NTLM to Negotiate in a nutshell

June 2, 2009

Windows on Small Notebook PCs: The Momentum Continues in the US and the UK

On the eve of the Computex, the largest computer exhibition in Asia and the second largest in the world, we got word that PC World, the largest electronics retailer in the UK, is de-assorting (i.e., getting rid of) all of the Linux small notebook PCs in their stores and going all-Windows.

Jeremy Fennell, Category Director at PC World, sums things up perfectly at the end of the release:

Despite initial hype that netbooks would move more users onto the Linux platform, Microsoft has emerged as the preferred operating system because Windows makes it easier to share content, and provides customers with a simpler, more familiar computing experience on the move. Based on this insight, all the netbooks in our stores will feature Microsoft Windows, larger screens and keyboards, and greater colour choices to satisfy customers demand for performance, design and familiarity.

Source : The Windows Blog

May 29, 2009

Microsoft: Sorry Pundits, Vista Is (Still) Doing Just Fine

Much has been made about how Windows 7 is so good that it will help Microsoft overcome the bad PR image it developed with Windows Vista. But while everyone is busy patting themselves on the back for "knowing" how poorly Vista is doing, the reality is somewhat less exciting. In fact, Vista is selling better in businesses than Windows XP was at the same point in its lifecycle. Lest we forget that inconvenient truth, Microsoft this week decided to remind everyone. Again. "Adoption and deployment of Windows Vista has been slightly ahead of where we had been with XP," Tami Reller, Microsoft corporate vice-president and Windows Business division CFO, said this week. "We also have a number of enterprises that are mid-cycle [in Vista deployments], that are doing a tremendous amount of testing, planning, and training, and getting ready for Vista." Much has been made about the declining fortunes of Windows lately, but let's not forget that the entire economy is tanking in nearly historic proportions. The Windows division generated $2.5 billion in income in the most recent quarter. That's not chump change, sorry, and it's double the amount of money that all of Apple—Mac, iPhone, and iPod combined—earned in the same time period. I'm pretty sure most of the tech press did nothing but celebrate that figure and Apple's various blockbuster products. Let's not let the angst get ahead of reality here.

Source : Paul Thurrott’s WinInfo Short Takes : Week of June 1

May 27, 2009

Is WMIprvse a real villain?

How often has it occurred that you were working on something and suddenly your computer became slow? You opened task manager to find out the culprit that is hogging your systems CPU cycles. You sorted the processes according to CPU usage and saw WMIprvse.exe happily sitting at the top.

Before putting the blame on WMIprvse.exe have you ever wondered that it can be that some other application contracted the WMIprvse.exe to create havoc on your computer? Here’s how you can find the culprit which is using WMIprvse.exe to eat up your system resources.

Source : Windows Management Infrastructure Blog

April 29, 2009

Tip: How to install and uninstall a program in Safe Mode

I’ve never really understood why uninstalling programs in Safe Mode isn’t officially supported in Windows. The main purpose of Safe Mode is to troubleshoot Windows, and what usually causes the trouble? Right, misbehaving programs.

Excellent post of Michael Pietroforte explaning how to uninstall a program in safe mode by allowing the Windows Installer Service to start in safe mode.

Source : 4sysops

February 23, 2009

Free E-Books from Microsoft Press

To celebrate its 25th Anniversary, Microsoft Press is offering  Free E-Books -

  • Windows Vista Resource Kit, Second Edition
    By Mitch Tulloch, Tony Northrup, and Jerry Honeycutt with the Windows Vista Team
    ISBN: 9780735625969
    In-depth, comprehensive, and fully updated for Service Pack 1, this Resource Kit delivers the information you need to administer Windows Vista. Sign up to download the entire book from here : (PDF, 44.8 MB).
  • Microsoft® Visual C#® 2008 Express Edition: Build a Program Now!
    By Patrice Pelland
    ISBN: 9780735625426 
    Get this Free E-Book now from here, Sign up to download the entire e-book (PDF, 7.8 MB)

Source : Bink.nu

February 19, 2009

Running HTAs from mapped drive with offline files in Vista

Here’s my setup :

  • all my files are on a network share.
  • I’m using Offline Files on that share so I could use those files at my house (did I mentioned I’m using a laptop).
  • I have mapped a drive (I:) to this share.

When I’m offline, if I double-click an HTA file on de I: drive nothing happen. In the task manager I found an MSHTA.EXE running, but nothing seems to happen.

I discovered that if I use the UNC path (\\server\share) instead of the map drive (I:) to open the HTA everything works fine. I can’t explain it (yet), but it works.

How to enable Event logging for Offline Files (Client Side Caching) in Windows Vista

Ravi here from Directory Services team; I thought I would share some information on how to enable the Event Logging for Offline Files, (Client Side Caching) in Windows Vista.

Ref : blogs.technet.com/askds

February 16, 2009

Windows Internet Explorer 8 RC 1 for Vista x64 in French ?

If your searching for a french version of IE 8 RC1 in 64-bit you can forget it. I don’t know why, but Microsoft didn’t publish any (only a 32-bit).

You can’t install the 32-bit version on your Vista x64, so you’ll have to install the 64-bit english version from Microsoft Download.

Strangely enough there was a french version of IE 8 Beta 2 in 64-bit. What is the difference between Beta 2 and RC 1 that made MS drop the french in 64-bit ?

By the way if you had any scripting problems with BETA 2 (InternetExplorer.Application object), I strongly recommend upgrading to RC 1.

February 3, 2009

Announcing the Microsoft Fix it for me Blog

Have you ever come across a Microsoft Knowledge Base (KB) article or been presented with a Windows Error Reporting (WER) solution and asked yourself, why can't Microsoft just fix this for me? Today KB articles and WER solutions provide you with a list of steps that can be followed to resolve your issue. However, tomorrow looks much different and we hope it helps you resolve any issues you have with our products faster and easier.

Our team's purpose is to automate the steps in Microsoft KB articles and Windows Error Reporting (WER) solutions so you can click a button and have the issue resolved.

Source : blogs.technet.com/fixit4me

December 18, 2008

Microsoft’s hidden diagnostic tool unlocks Vista startup secrets

Not new, but great post by Ed Bott about Windows Vista boot performance diagnostic.

Did you know that Windows Vista records many events about poor performance and boot up sequence ?

Just follow this path in your Event Viewer :

Applications and Service Logs
     Microsoft
          Windows
               Diagnostics-Performance
                    Operational

Thanks Ed,

Read more : blogs.zdnet.com/Bott

November 7, 2008

Windows Services Optimizer (WinServicesOptimizer.vbs)

Disabling unnecessary Windows services can result in significant performance gains for production machines and virtual machines.  This script helps you manage and share templates for services optmization.  Some templates are included.

Source : desktopengineer.com/winservicesoptimizer

How to Check A WordPress Site's PHP Version (& Upgrade Compatibility)

If you notice that your WordPress hosting provider is not running PHP 7, but has it available to its users, you may want to consider making ...