Saturday, July 25, 2009

How to compact files and folders at the Comman Line

COMPACT [/C | /U] [/S[:dir]] [/A] [/I] [/F] [/Q] [filename [...]]

/C Compresses the specified files. Directories will be marked
so that files added afterward will be compressed.
/U Uncompresses the specified files. Directories will be marked
so that files added afterward will not be compressed.
/S Performs the specified operation on files in the given
directory and all subdirectories. Default "dir" is the
current directory.
/A Displays files with the hidden or system attributes. These
files are omitted by default.
/I Continues performing the specified operation even after errors
have occurred. By default, COMPACT stops when an error is
/F Forces the compress operation on all specified files, even
those which are already compressed. Already-compressed files
are skipped by default.
/Q Reports only the most essential information.
filename Specifies a pattern, file, or directory.

Used without parameters, COMPACT displays the compression state of
the current directory and any files it contains. You may use multiple
filenames and wildcards. You must put spaces between multiple

Saturday, July 11, 2009

User State Migration Tool-How to migrate user accounts and user settings

  1. Log on to the source computer as an administrator, and specify:

    scanstate \\fileserver\migration\mystore /i:miguser.xml /i:migapp.xml /o

  2. Log on to the destination computer as an administrator.

  3. Do one of the following:

    • If you are migrating domain accounts, specify:

      loadstate \\fileserver\migration\mystore /i:miguser.xml /i:migapp.xml

    • If you are migrating local accounts along with domain accounts, specify:

      loadstate \\fileserver\migration\mystore /i:miguser.xml /i:migapp.xml /lac /lae

Saturday, July 4, 2009

Can't Creat a Performance log alerter

Start the Performance Logs and Alerts service by using the Local System account instead of the Network Service account:
  1. Click Start, click Run, type services.msc in the Open box, and then click OK.
  2. In the Name list, double-click Performance Logs and Alerts.
  3. Click the Log On tab, click Local System account, click Apply, and then click OK.
  4. Quit the Services dialog box, and then restart the ISA Server performance counter log.

Friday, July 3, 2009

Changing System Restore Options in the Windows Registry

In most situations, the default System Restore operation is satisfactory. However
there might be situations in which you need to change how System Restore functions. There are four settings that you can change in the Windows Registry tha affect the intervals System Restore uses when creating automatic restore point and the disk space it uses.
Each of these settings is located in the HKEY_LOCAL_MACHINE\SOFT
WARE\Microsoft\Windows NT\CurrentVersion\SystemRestore subkey.
These settings include the following:
1.RPSessionInterval This setting specifies the intervals, in seconds between scheduled restore-point creations during an active user session. The default value is 0 seconds (disabled).
2.RPGlobalInterval This setting specifies the time interval, in seconds, a which scheduled restore points are created (regardless of whether or no there is an active user session). The default value is 86,400 seconds (24 hours).
3.RPLifeInterval This setting specifies the time interval, in seconds, for which restore points are kept. System Restore deletes restore points older than the specified value. The default value is 7,776,000 seconds (90 days).
4.DiskPercent This setting specifies the maximum amount of disk space on each drive that System Restore can use. This value is specified as a percentage of the total drive space. The default value is 12 percent.

Thursday, July 2, 2009

Group Policy Verification

1.Type in Run--> rsop.msc and press enter.This will launch the Resultant Set of Policy wich will show you what group and security policyes are in efect on your PC.
2.Or you can run it from a Run-->>mmc from File menu add/remove snap-in select Resultant Set of Policy snap-in and ok. Right click on Resultant Set of Policy to generate the policy data for local or remote computer(folow the wizard).
3.Windows XP Professional also supplies a tool named Group Policy Result Tool,which is a command-line utility that helps you determine which policies are actually applied to a computer. You can start this tool by typing Gpresult.exe at the command prompt(run-->cmd).

Wednesday, July 1, 2009

Repair a network connection

1.See if the cable is pluged in or if is not broken someware.
2. ping your domain controller,your dns server and your gateway(if you have them if not skip this step). ex: cmd -->ping ip adress)
3. Attempts to renew the connections DHCP lease:
ipconfig /renew command at the command prompt.
4. Flushes the Address Resolution Protocol (ARP) cache,
arp -d command at the command prompt.
5. Reloads the NetBIOS name cache:
nbstat -R command at the command prompt.
A NetBIOS name update is also needed, which is using the nbtstat –RR command.
6. Flushes the Domain Name System (DNS) cache:
ipconfig /flushdns command at the command prompt.
7. Registers the computer’s DNS name:
ipconfig /registerdns command at the command prompt.
8.If non of this works you shoud see if the network card drivers are ok or the network adapter is ok.