Thought of the Day

“A goal is a dream with a deadline.”

Napoleon Hill

Total Pageviews

Friday, March 26, 2010

System Restore for Windows XP

System Restore for Windows XP

How the System Restore Utility Uses Drive Letters Information on System Restore and Password Restoration
How to Disable the System Restore Configuration Non-Admin User Is Unable to Start System Restore Utility
System Restore "Restore Points" Are Missing or Deleted Improper Shutdown May Affect System Restore
Install Additional Files During Automated System Recovery How to Turn On and Turn Off System Restore in Win XP
The Registry Keys and Values for the System Restore Utility Highlights of System Restore fixes included in SP1

Microsoft Windows XP System Restore
Bobbie Harder

On the creation of a scheduled task for creating a restore point, System Restore does create a restore point every 24 hours IF the system is idle, but on and not in hibernate or standby, (idle meaning no disk i/o, mouse or keyboard activity).

Too many restore points per day, and due to space limitations, cause older more valuable restore points potentially to be aged out, while ensuring additional space for perhaps duplicative restore points.

Windows XP System Restore (Contents Include):

Introduction, Detail, Design Overview, Automatically Created Restore Points, System and Application File Change
Monitoring Restore Process, What's Restored and What's Not, Interoperation with Other Windows XP Recovery Features, Files Monitored and Restored by System Restore. For detailed information click here.

How to Enable and Disable Windows XP's System Restore feature

System Restore (restorept.api) is a new Windows XP feature that's similar to "Last Known Configuration." However, System Restore maintains multiple restore points instead of one last restore point. The user can manually create restore points, or System Restore can keep restore points during the following operations:

Installing new software, if the application uses a current installer that is System Restore-compliant, Using AutoUpdate, During a restore operation, During a Microsoft backup or recovery operation, Installing an unsigned driver, Automatically following 24 hours of inactivity.

By default, System Restore monitors all partitions. So, for example, if you delete an executable file, you can have the system state revert to a specific restore point to recreate or repair the executable file. When you revert to a restore point, however, you lose all changes since that point, except for changes to files in the My Documents folder and documents you've created with applications such as Microsoft Word and Microsoft Excel.

If you use System Restore and don't like the new system state, you can undo the process and restore the machine to the system state it had before you ran System Restore. Alternatively, you can run System Restore to change the system state to a different restore point.

To enable or disable System Restore, perform the following steps:

Start the System Control Panel applet. Select the System Restore tab. Clear the "Turn off System Restore on all drives" check box to enable System Restore, or select this check box to disable System Restore. Click OK. Also here:

To delete older restore points, but leave the system restore turned on: Right Click the Drive in question/Properties/Disk Cleanup/More Options/System Restore/Cleanup.

You can also click the Settings button to set a maximum amount of space that you want each drive to use for restore information. If the drive you select isn't the system drive, you can also disable System Restore on a per-drive basis. The maximum amount of space that you can use for restore information is 12 percent per drive.

An alternative to the usual method of enabling and disabling Windows XP's System Restore feature is to use the registry. To use this alternative, perform the following steps: Start the registry editor (regedit.exe).

Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore.
If a "DisableSR" value doesn't exist, go to the Edit menu, select New, DWORD value, and create the value.
Set the value to 1 to disable System Restore or 0 to enable System Restore.

Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\sr to prevent the System Restore service from starting.

Double-click Start, and set the value to 4 to stop the service from starting or to 0 for normal startup. Close the registry editor.

***Added Notes by: Barry Nordendale (7-9-05)

"After making SR disabled in services, I tried to open SR (no reboot) in CP/Services it said SR is off, would you like to turn on. I said yes and everything works fine now!"

System Restore Usage

System Restore Requirements:

System Restore is automatically installed and configured on Windows XP if your computer has at least 200MB of free disk space after Windows XP is installed.

Enabling System Restore:

Right click my computer icon, properties. System Restore Tab, Clear "Turn Off System Restore on all Drives".

Adjust System Restore Disk Usage

By default, System Restore is given 12% of your hard disk space when you install Windows XP. Change amount: Right click my computer icon, properties. System Restore Tab, Settings.

Creating Restore Points

Start/Programs/Accessories/System Tools/System Restore. In the System Restore window, click "Create a Restore Point button, next. In the window that appears, enter a description. The date and time is created automatically.

Running System Restore

If you can boot Windows:

Start/Programs/Accessories/System Tools/System Restore. Click the Restore My Computer to an earlier time, next.

If you cannot boot Windows:

Boot into safe mode. Click the System Restore link. Click the Restore My Computer to an earlier time, next.

Note: Current documents, files and e-mail are not affected during a restoration.

Undoing a Restoration

Reversing Restoration if you can boot your computer:

Start/Programs/Accessories/System Tools/System Restore. Click "Undo my last restoration", next. Click Ok to the
screen message after the reboot.

Reversing Restoration if you cannot boot your computer:

Boot into safe mode, follow the help screen and choose, "Undo my last restoration".

Note: If you have chosen the wrong restore date, follow the steps under, "Undoing a Restoration".

How and Where System Restore Points are saved:

Restore points are saved in under x:\system volume information\_restore{558C94FD-3C7F-4954-A02D-
26679E6D849E}. Each restore point's files are saved in a folder named RPXX where XX is a two digit number
corresponding to the restore point.

System Restore: Description and Functionality of Srdiag.exe

The file Srdiag.exe is a tool developed specifically for capturing System Restore files and putting them into a text format or other format so that a support professional or an advanced user can easily view the contents of such files to try to diagnose problems that are occurring with System Restore.

Srdiag.exe collects all information that is related to System Restore and puts it in a .cab file. The .cab file name is then
automatically generated by using the computer name, followed by a timestamp for the month, day, and year, as well as a timestamp for the hour, minutes and seconds of the .cab file creation. More Information.

What is restored on my machine when I use System Restore and what is not?
The following are restored when you use System Restore to restore your system to a previous time using a restore point:

Registry
Profiles (local only—roaming user profiles not impacted by restore)
COM+ DB
WFP.dll cache
WMI DB
IIS Metabase
Files type which are monitored by System Restore as specified in the SDK available from http://msdn.microsoft.com/library/en-us/sr/sr/monitored_file_extensions.asp.

The following are not restored by System Restore:

DRM settings
Passwords in the SAM hive.
WPA settings (Windows authentication information is not restored)
Specific directories/files listed in the Monitored File Extensions list in the System Restore section of the Platform SDK e.g. 'My Documents' folder.
Any file types not monitored by System Restore like personal data files e.g. .doc, .jpg, .txt etc.
Items listed in both Filesnottobackup and KeysnottoRestore (hklm->system->controlset001->control->backuprestore->filesnottobackup and keysnottorestore) in the registry.
User-created data stored in the user profile
Contents of redirected folders

Troubleshooting System Restore in Windows XP

To troubleshoot System Restore issues, try one or more of the following steps:

- If you receive an error message that is related to System Restore, always make sure that you first record the error message
and follow the instructions that the error message contains to try to resolve the issue. Most System Restore issues generate
an error message that contains a description of the issue and suggestions for how to resolve the issue.
- Make sure that you have enough disk space on all of the drives on which System Restore is enabled.
- Make sure that the System Restore service is running by using one of the following methods:

- Check in Control Panel:

1. Click Start, click Control Panel, and then click "Performance and Maintenance".
2. Click Administrative Tools, click Computer Management, and then click Services and Applications.
3. Click Services, and then click System Restore Services.

- Open a command prompt window:

1. Click Start, click Run, and then type "CMD" (without the quotation marks).
2. Press the ENTER key, and then type "Net Start" (without the quotation marks) at the command prompt to make sure that
the System Restore service is up and running.

- Make sure that System Restore is enabled on the drives that you want System Restore enabled on.
- Try to run System Restore in Safe mode.
- If you suspect that you do not have as many restore points as you should have, make sure that the data store is the size that
you want the data store to be.

- Check the event logs to investigate System Restore service errors:

1. Click Start, click Control Panel, and then click "Performance and Maintenance".
2. Click Administrative Tools, click Computer Management, double-click Event Viewer, and then click System.
3. Click the Source tab to sort by name, and then look for "sr" or "srservice." Double-click each of these services, and then
evaluate the event description for any indication of the cause of the problem.

System Restore cannot create a restore point. Please restart your computer

Disable System Restore, reboot, then enable.

System Restore Should Not Be Enabled During Program Installation

When you first enable System Restore, this creates an initial restore point. If you enable System Restore during a program installation, this may corrupt the initial restore point.

System Restore tracks changes to the registry and system files. By keeping a record of changes, System Restore can undo the changes to set the computer back to a previous state, which is also called a restore point. To create a restore
point, use the System Restore program in the System Tools folder, which is on the Start menu.

In Control Panel, you can enable and disable System Restore in System properties on the System Restore tab. When you disable System Restore, all previous restore points are lost because System Restore is no longer able to track changes and is
therefore unable to undo those changes.

When you re-enable System Restore, it creates an initial restore point. If you enable System Restore while you are installing a program, this may corrupt the initial restore point as well as all subsequent restore points. There is no way to determine if the initial restore point is corrupted.

System Restore Tool Displays a Blank Calendar in Windows XP

When you run the System Restore tool on a Windows XP-based computer, the calendar on the left side of the "Choose a Restore Point" window is not displayed. This behavior can occur if the file association for Hypertext Markup Language (HTML) component (.htc) files is not in the registry. To resolve this behavior, verify that the following keys are in the registry. Keys are listed here.

How to Start the Windows XP System Restore Tool if You Can't Boot

Boot into safe mode/Log on with Admin Privileges/ Type: %systemroot%\system32\restore\rstrui.exe. Then press enter.
HOW TO: Restore Windows XP to a Previous State.

VB Script to Run Unattended Restore Point Creation as a Scheduled Task by MS-MVP Doug Knox

This VB Script can be run as a Scheduled Task to create an unattended System Restore Point. The Restore point will be identified as Automatic Restore Point with the date and time the script was run.

Usage: Download xp_sysrestorepoint.vbs and save this file to your hard drive. Create a new Scheduled Task and point it to the VBS file. After the script runs, it will leave a dialog telling you whether or not the Restore Point was successfully created. This script can be viewed in Notepad or any text editor, as to the specific Registry key and value that are updated.

Restore System Restore Points VBS Scripts by MS-MVP Bill James
Download Here

Create a System Restore Point Each Day
MVP-Bill James

Copy the following 3 lines to NotePad, then save it with .vbs extension (for example, CreateRP.vbs). You can run it manually to create a Restore Point by double clicking, or add it as a scheduled task.

This script creates a System Restore Point for Windows XP.
rp = "Manual Restore Point by " & WScript.ScriptName
GetObject("winmgmts:\\.\root\default:Systemrestore").CreateRestorePoint rp, 0, 100

Note: This script is not well suited for creating an unattended System Restore point, since it requires user intervention. The attached VB Script (modified from the original script) will do automate the process for a scheduled task.

When you create a scheduled task for this script, you will need to give a user name and password with sufficient "permissions" to create a restore point. System Restore Points: By Doug Knox MS-MVP. Download Here.
Unable to use System Restore due to "missing framedyn.dll. Please reinstall the application to fix this problem".

A temporary fix to address this issue is to make the user copy the framedyn.dll file from \Windows\System32\WBEM directory to the \Windows\System32 directory.

Re-Activation for Windows XP

Should you restore your system to a point before you activated XP on your computer, the OS will forget that you activated it and you'll need to reactivate XP. If the system restore point is past the 30-day grace period that Microsoft allows for activation, you'll have to activate XP immediately.

The only workaround to reactivating your system is to perform the following steps:

Start your Windows installation in Minimal Safe mode.

Move to the \%systemroot%\system32 folder.
Rename wpa.dbl to wpa.noact.
Rename wpa.bak to wpa.dbl.
Reboot your system as normal.

Note: The above procedure will work only if you've made no significant hardware changes.

Highlights of System Restore fixes included in SP1

1. Fix for SR not launching due to the framedyn.dll error you all have been reporting.

2. No calendar availaible in the SR wizard to select restore points due to the the .htc file association being knocked out in the
registry has been fixed.

3. A fix for SR failing restores. A lot of you were seeing failed restores when restoring to any restore point. Although some of
it was attributed to SR data store corruption, in most cases it was possibly due to locked file issues causing the restore
process to fail, especially in scenarios where fast user switching was used. This was a known issue which is now fixed in in
SP1.

This will hopefully resolve all cases for failed restores and it would be great if all of you running into this problem could
upgrade to SP1 and provide us feedback on this issue, whether it has resolved the problem for you or not.

4. Fix for drive table inconsistency on a machine causing SR to not create restore points.

5. Security fixes for SR to keep away those terrible hackers and viruses.

So upgrade to SP1 and provide us with some feedback on your issues with SR and whether they are now resolved, especially when dealing with failed restores.

Anshul Rawat [MS]
System Restore, Windows XP

Tuesday, March 16, 2010

VMware ESX and ESXi 3.5 Comparison

VMware ESX and ESXi 3.5 Comparison
Purpose
This article provides a detailed comparison of VMware ESX and ESXi 3.5. The article is separated into capabilities or features and compared at that level.
Resolution
Capability
VMware ESX
VMware ESXi

Service Console
Service Console is a standard Linux environment through which a user has privileged access to the VMware ESX kernel. This Linux-based privileged access allows you to highly customize your environment by installing agents and drivers and executing scripts and other Linux-environment code.
VMware ESXi is designed to make the server a computing appliance. Accordingly, VMware ESXi behaves more like firmware than traditional software. To provide hardware-like security and reliability, VMware ESXi does not support a privileged access environment like the Service Console of VMware ESX. To enable interaction with agents, VMware has provisioned CIM Providers through which monitoring and management tasks – traditionally done through Service Console agents – can be performed. VMware has provisioned RCLI to allow the execution of scripts.

Remote CLI
VMware ESX Service Console has a host CLI through which VMware ESX can be configured. ESX 3.5 Update 2 supports RCLI.
VMware ESX Service Console CLI has been ported to a Remote CLI (RCLI) for VMware ESXi. RCLI is a virtual appliance that interacts with VMware ESXi hosts to enable host configuration through scripts or specific commands.



Note:
RCLI is limited to read-only access for the free version of VMware ESXi. To enable full functionality of RCLI on a VMware ESXi host, the host must be licensed with VI Foundation, VI Standard, or VI Enterprise.


The VMware Infrastructure toolkit for Windows and the Perl toolkit access ESXi through the same API as RCLI. Similarly, these toolkits are limited to read-only access for the free version of VMware ESXi. When the host is upgraded to VI Foundation, VI Standard, or VI Enterprise, these toolkits have write-access and provide a scriptable method for managing ESXi hosts.


The following Service Console CLI commands have not been implemented in RCLI:
ESXcfg-info
ESXcfg-resgrp
ESXcfg-swiscsi

Scriptable Installation
VMware ESX supports scriptable installations through utilities like KickStart.
VMware ESXi Installable does not support scriptable installations in the manner ESX does, at this time. VMware ESXi does provide support for post installation configuration script using RCLI-based configuration scripts.

Boot from SAN
VMware ESX supports boot from SAN. Booting from SAN requires one dedicated LUN per server.
VMware ESXi may be deployed as an embedded hypervisor or installed on a hard disk.



In most enterprise settings, VMware ESXi is deployed as an embedded hypervisor directly on the server. This operational model does not require any local storage and no SAN booting is required because the hypervisor image is directly on the server.



The installable version of VMware ESXi does not support booting from SAN.

Serial Cable Connectivity
VMware ESX supports interaction through direct-attached serial cable to the VMware ESX host.
VMware ESXi does not support interaction through direct-attached serial cable to the VMware ESXi host at this time.

SNMP
VMware ESX supports SNMP.
VMware ESXi supports SNMP when licensed to a VI Foundation, VI Standard, or VI Enterprise edition. The free version of VMware ESXi does not support SNMP.

Active Directory Integration
VMware ESX supports Active Directory integration through third-party agents installed on the Service Console.
VMware ESXi with a Virtual Infrastructure license and in conjunction with VirtualCenter allows users to be authenticated via Active Directory. In this configuration, users can log in directly to an ESXi host and authenticate using a local username and password.



The free version of VMware ESXi does not support Active Directory integration at this time.

HW Instrumentation
Service Console agents provide a range of HW instrumentation on VMware ESX.
VMware ESXi provides HW instrumentation through CIM Providers. Standards-based CIM Providers are distributed with all versions of VMware ESXi. VMware partners may inject their own proprietary CIM Providers in customized versions of VMware ESXi. To obtain a customized version of VMware ESXi, you typically have to purchase a server with embedded VMware ESXi through a server vendor.



At this time, HP also offers its customized VMware ESXi Installable on http://www.vmware.com/. Dell, IBM, and FSC will soon offer their customized version of VMware ESXi on http://www.vmware.com/.



Remote console applications like Dell DRAC, HP iLO, IBM RSA, and FSC iRMC S2 are supported with ESXi.



Note: COS agents have a longer lineage than CIM Providers and are therefore more mature. VMware is actively working with its 250+ partners to close the CIM Provider–Service Console agent gap.

Software Patches and Updates
VMware ESX software patches and upgrades behave like traditional Linux based patches and upgrades. The installation of a software patch or upgrade may require multiple system boots as the patch or upgrade may have dependencies on previous patches or upgrades.
VMware ESXi patches and updates behave like firmware patches and updates. Any given patch or update is all-inclusive of previous patches and updates. That is, installing patch version “n” includes all updates included in patch versions n-1, n-2, and so forth.

VI Web Access
VMware ESX supports managing your virtual machines through VI Web Access. You can use the VI Web Access to connect directly to the ESX host or to the VMware Infrastructure Client.
VMware ESXi does not support web access at this time.

Licensing
VMware ESX hosts can be licensed as part of a VMware Infrastructure 3 Foundation, Standard, or Enterprise suite.


VMware ESXi hosts can be individually licensed (for free) or licensed as part of a VMware Infrastructure 3 Foundation, Standard, or Enterprise suite.



Individually licensed ESXi hosts offer a subset of management capabilities (see SNMP and Remote CLI).

Jumbo Frames iSCSI with Jumbo Frames is not supported. Jumbo Frames are not supported for VMkernel networking interfaces in ESXi 3. In ESXi 3.5, Jumbo Frames are only supported on non-VMKernel network interfaces. For more information, see Enabling Jumbo Frames of the ESXi Server Configuration Guide.



ESXi – Free License

(ESX not available without VI)
VI Foundation

(with ESX or ESXi)
VI Standard

(with ESX or ESXi)
VI Enterprise

(with ESX or ESXi)

Core hypervisor functionality
Yes
Yes
Yes
Yes

Virtual SMP
Yes
Yes
Yes
Yes

VMFS
Yes
Yes
Yes
Yes

VirtualCenter Agent

Yes
Yes
Yes

Update Manager

Yes
Yes
Yes

Consolidated Backup

Yes
Yes
Yes

High Availability


Yes
Yes

VMotion



Yes

Storage VMotion



Yes

DRS



Yes

DPM



Yes

VirtualCenter service does not start after reboot

Symptoms
VirtualCenter service does not start after reboot
VMware Infrastructure (VI) Client cannot connect to VirtualCenter
You are using Microsoft SQL Server or SQL Express
VirtualCenter Server service can be started manually with no problems
Purpose
In some cases a race condition can occur and VirtualCenter starts before the SQL database it depends on.

This article provides steps to prevent the race condition from occurring.
Resolution
This issue may occur if the VirtualCenter Server service starts before one of the services it depends on. The VirtualCenter Server service is dependent on the following services:
SQL Services
ADAM Services (when using linked mode in vCenter Server 4.0)
To resolve this issue, add a dependency to the VirtualCenter service so that it only starts after the necessary services have started.


Note: This solution assumes that the database server and the SQL server reside on the same machine. If the SQL server is on a different physical machine, you must ensure that the SQL server is functioning before attempting to start the VirtualCenter service.

To create a service dependency:
Click Start > Run.
Type services.msc and press Enter.
Locate any services that VirtualCenter requires. For example, SQLEXP_VIM or ADAM_VCMSDS.
Open the service properties and note the Service Name. For example, MSSQL$SQLEXP_VIM .
In the Run dialog, type Regedit.exe and press Enter. Browse to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\vpxd.
Double-click the DependOnService key and add the Service name using the name identified in step 4.
Close Regedit.
Go back to the Services window and open the service properties for the service identified in step 3.
On the Dependencies tab, verify the VMware VirtualCenter service is listed as depending on the service.
Repeat steps 3 to 9 for any services that VirtualCenter requires.

Followers