Showing posts with label OS - Windows. Show all posts
Showing posts with label OS - Windows. Show all posts

Thursday, January 6, 2011

How to reset dynamic IP address?

code:--------------------------------------------------------------------------------
@ECHO OFF
%WINDIR%\system32\ipconfig /release
echo.
echo Ip-adress released  Make sure you wait about 5 minutes for someone to take your old IP-adress.
echo.
pause
%WINDIR%\system32\ipconfig /renew
echo.
echo Ip-adress renewed
echo.
pause
exit
--------------------------------------------------------------------------------

Explanation:
%WINDIR%\system32\ipconfig /release <-- tells command prompt to look for a program named ipconfig in your \system32 folder and start it with the option /release. (which releases your ip so other people can take it, and enables you to get a new one.)

%WINDIR%\system32\ipconfig /renew <-- tells command prompt the same as above, only with the option /renew. (which renews your IP-address hoping that someone took your old. @ECHO OFF <-- tells the command prompt to hide paths (Like C:\windows\system32\ipconfig /renew wont be shown on screen.) echo. <-- tells command promt to jump a line down without displaying any text or doing anything at all. echo <-- prints a message to the screen in command prompt.

pause <-- makes you have to press a key to continue with the script.

exit <-- exits command prompt.

Tuesday, December 14, 2010

Chinese Characters in the Subject Line of Outlook E-Mail Message Appear As Question Marks

Chinese characters in the Subject line of a Microsoft Outlook e-mail message may appear as question marks when the e-mail message is received. This problem may occur with any characters from a double-byte character set (DBCS).

CAUSE
The Subject line in Outlook relies on the character set defined by the operating system on the client computer. To display Chinese characters in the Subject line of an e-mail message, your operating system must support Chinese.

NOTE: Windows 2000 and Windows XP are currently the only English-language Microsoft operating systems that support double-byte character sets. Outlook cannot display Chinese in the Subject line of an Outlook e-mail message on the English-language versions of Microsoft Windows 95 or Microsoft Windows 98 operating system.

To display Chinese in the Subject line of Outlook e-mail messages, install the Chinese language support files on Windows 2000 or Windows XP, and then set Chinese as the default language for the operating system of the client computer. To install the Chinese language support files and set Chinese as the default language, use one of the following methods.
1. How to Enable Chinese Support In Windows XP?
2. How to Enable Chinese Support In Windows 2000?

How to Enable Chinese Support In Windows XP

   1. Click Start, point to Settings, and then click Control Panel.
   2. Double-click the Regional and Language Options icon.
   3. On the Languages tab, click to select the Install files for East Asian languages check box.
   4. When you receive the following message, click OK:
You chose to install the Chinese, Japanese, and Korean language files. This will require 230 MB or more of available disk space. The files will be installed after you click OK or Apply on the Regional and Language Options dialog box.
   5. On the Advanced tab, click Chinese under the Language for non-Unicode programs section.
   6. Click to select the Apply all settings to the current user account and to the default user profile check box.
   7. When you receive the following message, click OK:
You chose to apply these settings to the default user profile. These changes will affect the logon screen and all new user accounts. Some system services may require you to restart your computer before the changes will take effect.
   8. In the Regional and Language Options dialog box, click Apply.
   9. When you receive the following message, click Yes:
The required files are already installed on your hard disk. Setup can use these files, or Setup can recopy them from your original Windows CD-ROM or from a network share.

Would you like to skip the file copying and use the existing files? (If you click No, you will be prompted to insert your Windows CD-ROM or to supply a different location where the files can be found.)
  10. Click Yes when you are prompted to restart your computer.

How to Enable Chinese Support In Windows 2000

   1. Click Start, point to Settings, and then click Control Panel.
   2. Double-click the Regional Options icon.
   3. In the Regional Options dialog box, click to select the Chinese check box.
   4. Click the Set default button.
   5. In the Select System Local dialog box, click Chinese, and then click OK.
   6. In the Regional Options dialog box, click Apply.
   7. When you receive the following message, click Yes:
Required files are already installed on your hard disk. Setup can use these existing files, or Setup can recopy them from your original Windows CD-ROM or from a network share.

Would you like to skip the file copying and use the existing files? (If you click No, you will be prompted to insert your Windows CD-ROM or to supply a different location where the files can be found.)
   8. When you are prompted to restart your computer, click Yes.

Add a new Group in WinXP

Add a new Group in WinXP

Local Users and Groups manages users and groups of users for your computer. You can create new users and groups, add users to groups, remove users from groups, disable user and group accounts, and reset passwords.
Start Menu -> Programs -> Administrative Tools -> Computer Management -> System Tools -> Local Users and Groups -> Groups
Or
Right click on My Computer -> Manage -> System Tools -> Local Users and Groups -> Groups

New Example
Here

Monday, December 13, 2010

Windows 2000 Backup

Reference: http://support.microsoft.com/default.aspx?scid=kb;en-us;301420&sd=tech

Requirements

  1. You must have a tape or disk storage device that is attached to your computer from which you want to make the backup.
  2. You must be an administrator or a backup operator to back up files and folders.

To Create the Backup

  1. Insert a tape into your tape storage device.
  2. Click Start, point to Programs, point to Accessories, point to System Tools, and then click Backup. The Welcome to the Windows 2000 Backup and Recovery Tools screen is displayed.
  3. Click the Backup Tab.
  4. At the bottom of the screen, verify that the entry that is displayed in the Backup media or file name box is correct. The default entry is A:\Backup.bkf. If you want to back up to a different drive, change the drive letter to the correct drive letter.
  5. Insert the appropriate medium into the backup drive, for example, a floppy disk, CD-ROM, or DAT tape.
  6. Expand the My Computer tree to find the C:\InetPub\Wwwroot folder. Place a check mark next to this folder. This folder is the default content folder for IIS. If you have additional virtual Web sites, put a check mark next to those content folders as well.
  7. Click Start Backup.
  8. A Progress dialog box is displayed. When the backup is complete, remove the medium and close the Windows Backup window. Refer to the following Best Practices section for information about how to use backups effectively.

Best Practices

  1. Create a backup log: Always create and print a backup log for each backup. Keep a book of logs to make it easier to locate specific files. The backup log is helpful when you restore data as you can print it or read it from any text editor. Also, if the tape that contains the backup set catalog is corrupted, the printed log can help you to locate a file.
  2. Retain copies: Keep three copies of the media. Keep at least one copy offsite in a properly controlled environment.
  3. Perform trial restorations: Perform a trial restoration periodically to verify that your files had been properly backed up. A trial restoration can uncover hardware problems that are not revealed with software verifications.
  4. Secure devices and media: Secure both the storage device and the backup media. It is possible for someone to access the data from a stolen medium by restoring the data to another server for which that user is an administrator.

Windows XP Restore

Reference: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sag_restore_wizard.mspx

To restore files with the restore wizard

  1. Open Backup
  2. The Backup Utility wizard starts by default, unless it is disabled. Follow the wizard instructions to select what to restore, where to restore to, and which optional advanced restore features you want.
  3. If the wizard is disabled, click the Welcome tab, click Restore Wizard to start the restore wizard.
  4. Follow the wizard instructions to select what to restore, where to restore to, and which optional advanced restore features you want.

To restore files from a file or a tape

  1. Open Backup. The Backup Utility Wizard starts by default, unless it is disabled.
  2. Click the Advanced Mode button shown below in the Backup Utility Wizard.


  1. Click the Restore and Manage Media tab, in Click to select the check box for any drive, folder, or file that you want to restore, select the files and folders you want to restore by clicking the check box to the left of a file or folder.



  1. In Restore files to, do one of the following:

a) Click Original location if you want the backed up files and folders to be restored to the folder or folders they were in when they were backed up. Skip to step 6.

b) Click Alternate location if you want the backed up files and folders to be restored to a folder that you designate. This option will preserve the folder structure of the backed up data; all folders and subfolders will appear in the alternate folder you designate.

c) Click Single folder if you want the backed up files and folders to be restored to a folder that you designate. This option will not preserve the folder structure of the backed up data; the files will appear only in the folder that you designate.

  1. If you selected Alternate location or Single folder, type a path for the folder under Alternate location, or click the Browse button to find the folder.
  2. On the Tools menu, click Options, click the Restore tab, and then do one of the following:

a) Click Do not replace the file on my computer (recommended) if you do not want the restore operation to copy over files that are already on your hard disk.

b) Click Replace the file on disk only if the file on disk is older if you want the restore operation to replace older files on your disk with newer files from your backup.

c) Click Always replace the file on my computer if you want the restore operation to replace files on your disk regardless of whether the backup files are newer or older.

  1. Click OK to accept the restore options you have set.
  2. Click Start Restore.
  3. If you want to change any of the advanced restore options, such as restoring security settings, the Removable Storage database, and junction point data, click Advanced. When you are done setting advanced restore options click OK.
  4. Click OK to start the restore operation.

Caution

• If you are restoring the System State data, and you do not designate an alternate location for the restored data, Backup will erase the System State data that is currently on your computer and replace it with the System State data you are restoring. Also, if you restore the System State data to an alternate location, only the registry files, SYSVOL directory files, Cluster database information files, and system boot files are restored to the alternate location. The Active Directory directory services database, Certificate Services database and Component Services Class Registration database are not restored if you designate an alternate location.

• Clicking Replace the file on disk only if the file on disk is older can change some or all of the files that are currently on your disk.

• Clicking Always replace the file on my computer can cause you to lose data if a file you are working on is contained in the backup.

• You can use Backup to back up and restore data on either FAT16, FAT32, or NTFS volumes. However, if you have backed up data from an NTFS volume used in Windows XP it is recommended that you restore the data to an NTFS volume used in Windows XP, or you could lose data as well as some file and folder features. Some file systems may not support all features of other file systems. For example, permissions, encrypting file system (EFS) settings, disk quota information, mounted drive information, and Remote Storage information will be lost if you back up data from an NTFS volume used in Windows XP and then restore it to a FAT volume or an NTFS volume used in Windows NT 4.0.

• To back up and restore Microsoft SQL Server database files, it is recommended that you use SQL's built-in backup and restore utilities. For more information, see the Microsoft SQL Server documentation.

Windows XP Backup

Get Started

Before you can even think about creating a backup, you have to get your files in order. This doesn't mean you need to compulsively rearrange every file in every folder. All you have to do is just to check to make certain all your essential data files are stored in one easy-to-find location.

Windows XP makes this task especially easy

by giving every user account its own personal profile, which consists of a set of subfolders in the Documents and Settings folder. Your profile holds your personal files (in the My Documents folder), Outlook Express e-mail messages, Internet Explorer Favorites and cookies, and information about your settings and preferences. If you have personal data stored elsewhere, consider moving it into the My Documents folder to make backing up easier. If you're unwilling or unable to move those files, make a note of where they're located so you can be sure you add them to your backup set later.

Open Windows XP Backup

Windows XP includes its own backup program, although you may need to do some digging to find it. You can also take your pick of third-party programs (listed at the end of this column) that add bells and whistles you won't find in the basic Windows XP Backup utility.

If you use Windows XP Professional, the Windows Backup utility (Ntbackup.exe) should be ready for use. If you use Windows XP Home Edition, you'll need to follow these steps to install the utility:

1. Insert your Windows XP CD into the drive and, if necessary, double-click the CD icon in My Computer.

2. On the Welcome to Microsoft Windows XP screen, click Perform Additional Tasks.

3. Click Browse this CD.

4. In Windows Explorer, double-click the ValueAdd folder, then Msft, and then Ntbackup.

5. Double-click Ntbackup.msi to install the Backup utility.

For more information, see How to Install Backup in Windows XP Home Edition.

With that chore out of the way, you're ready to begin backing up. By default, the Backup utility uses a wizard that makes the process straightforward. To start Backup:

1. Click Start, point to All Programs, point to Accessories, point to System Tools, and then click Backup to start the wizard.

2. Click Next to skip past the opening page, choose Back up files and settings from the second page, and then click Next. You should see the page "What to Back up", which represents your first decision point. Please select "Let me choose what to backup" option.


Decide What to Back Up

You might be tempted to click All information on this computer so that you can back up every bit of data on your computer. Think twice before choosing this option, however. If you've installed a slew of software, your backup could add up to many gigabytes. For most people, the My documents and settings option is a better choice. This selection preserves your data files (including e-mail messages and address books) and the personal settings stored in the Windows Registry.

If several people use your computer—as might be the case on a shared family PC—select Everyone's documents and settings. This option backs up personal files and preferences for every user with an account on the computer.

If you know that you have data files stored outside your profile, click Let me choose what to back up. This option takes you to the Items to Back Up page shown below.

Select the My Documents check box to back up all the files in your personal profile, and then browse the My Computer hierarchy to select the additional files you need to back up. If some of your files are on a shared network drive, open the My Network Places folder and select those folders.

This option also comes in handy if you have some files you now you don't want to back up. For instance, I have more than 20 GB of music files in the My Music folder. To keep my data file backup to a reasonable size, I click the check box next to the My Music folder. This clears the check box from all the files and subfolders in My Music.

Decide Where to Store Your Backup Files

On the Backup Type, Destination, and Name page, Windows asks you to specify a backup location. If you're one of those exceedingly rare individuals with access to a backup tape, the Backup utility gives you a choice of options in the Select a backup type box. No tape drive? No problem. Backup assumes you're going to save everything in a single file; you just have to choose a location for that file and give it a name.

By default, Backup proposes saving everything to your floppy drive (drive A). Although that might have made sense 10 years ago, it's hardly a rational choice today. You'd need dozens, perhaps hundreds of floppy disks to store even a modest collection of data files, especially if you collect digital music or photos.

Instead, your best bet is to click Browse and choose any of the following locations:

• Your computer's hard disk. The ideal backup location is a separate partition from the one you're backing up. If your hard disk is partitioned into drive C and drive D and your data is on drive C, you can safely back up to drive D.

• A Zip drive or other removable media. At 100-250MB per disk, this is an option if you don't have multiple gigabytes to back up. Unfortunately, the Windows Backup utility can't save files directly to a CD-RW drive.

A shared network drive. You're limited only by the amount of free space on the network share.

An external hard disk drive. USB and IEEE 1394 or FireWire drives have dropped in price lately. Consider getting a 40 GB or larger drive and dedicating it for use as a backup device.

After you've chosen a backup location, enter a descriptive name for the file, click Next to display the wizard's final page, as shown below, and then click Finish to begin backing up immediately.

Set a Schedule—and Stick to It

If you're disciplined enough, you can repeat the above steps once each week and perform regular backups when you're ready. If you'd rather not count on remembering to perform this crucial task, however, set up an automatic backup schedule for Windows. When you get to the final page of the Backup Wizard (see above), don't click Finish. Instead, click the Advanced button, and click Next to open the When to Back Up page. Choose Later, and then click Set Schedule to open the Schedule Job dialog box shown below.

This example shows the settings for a weekly backup on Friday afternoon—a good way to make sure your week's work is protected. But you can set almost any schedule you want by poking around in the extensive set of options available in this dialog box. After you click OK to save your changes, Windows XP runs the backup automatically. Just remember to leave your computer turned on.

All in all, you can count on backing up 5 GB of data in as little as 10 minutes. And you don't need to worry about shutting down running programs, either—thanks to a feature called volume shadow copy, the Backup utility can safely create a copy of any file, even if it's currently in use. For more information, see the Microsoft TechNet article, Volume Shadow Copy Technology.