Friday, December 23, 2011

An Introduction to IPv6

An Introduction to IPv6
One of the biggest architectural changes in Windows Server 2008 is the inclusion of IPv6. IPv6 has been a part of Windows since Windows 2000, but Windows Server 2008 is the first version of Windows to enable IPv6 by default. Furthermore, The transport stack has been completely redesigned so that IPv6 and IPv4 are able to run parallel to each other, as shown in Figure A below.

The fact that some Windows features will not even work without IPv6 proves that Microsoft sees IPv6 as the protocol of the future. Even so, IPv6 is a lot more complex than IPv4, and can be a bit intimidating to say the least. In this article series, I will introduce you to the basics of using IPv6.


IPv4 Addressing


Although IPv6 addresses look nothing like IPv4 addresses, they do have their similarities. The biggest differences are that IPv4 addresses are 32 bits long, and IPv6 addresses are 128 bits long. Because of the excessive length of an IPv6 address, they are represented in an abbreviated form that will probably look completely foreign to anyone who has never used them before.

Any time a seasoned network administrator sees an address like 192.168.1.1, they instantly recognize it as an IPv4 address. This address contains four, eight bit numbers separated by periods. In order to understand how IPv6 addressing works, it is important to realize that when you see an IPv4 address, the address is being expressed in decimal form.  This decimal form is a shortcut to expressing a 32 bit binary number. For example, the IP address 192.168.1.1 expressed in binary form looks like this:

11000000.10101000.00000001.00000001

In the interest of saving space, I don’t want to get into how I did the conversion, but if you need help converting from a decimal number to a binary number, you can use the Windows Calculator.

IPv6 Addressing


Hopefully, my example above helps you to understand that even a simple IPv4 address is really long when you convert it to binary form. This problem is compounded when we start talking about IPv6 addresses though. Like an IPv4 address, an IPv6 address is an abbreviated form of a binary number.  For example, here is what a 128 bit binary number looks like:

1111111010000000 0000000000000000 0000000000000000 0000000000000000 0000001000001100 0010100111111111 1111111001000100 0111111000111111

When an IPv4 address is expressed in binary form, it is expressed in eight digit chunks called octets. Each of these octets corresponds to one of the numbers in the address (when it is displayed in digital form). IPv6 addresses are expressed in 16 digit chunks when they are displayed in binary form.  Unlike IPv4 addresses though, IPv6 addresses are not written in decimal form, but rather in hexadecimal form. Therefore, to see what an IPv6 address looks like, convert each of the 16 digit blocks of numbers above to hexadecimal format, and then separate each hexadecimal number with a colon. The result looks like this:

FE80:0000:0000:0000:020C:29FF:FE44:7E3F

As you can see, this address is still pretty long. We can (and should) simplify it though. In IPv6 addressing, leading zeros are irrelevant, so let’s rewrite the address with the leading zeros omitted. After doing so, the address above becomes:

FE80:0:0:0:20C:29FF:FE44:7E3F

Just omitting the leading zeros shortens the address quite a bit, but there is one more thing that can be done. You will notice that three of the values in the address are 0. Any time that you have a series of zeros, you can get rid of all of the zeros, and just use double colons instead. Keep in mind though, that you can only use double colon notation once per address. In this case, the address becomes:

FE80::20C:29FF:FE44:7E3F

Conclusion


As you can see, IPv6 addresses are more complex than their IPv4 counterparts, but there is at least a logical reason behind the way that they are expressed. In Part 2 I will conclude this series by discussing the special meanings behind some of the digits in an IPv6 address.


All RUN command shortcuts

RUN command shortcuts

I know there are a lot of people who love using the run prompt or the command prompt rather than using the mmc control ... So here are some quick tips that you can use ... Enjoy...
Accessibility Controls  :  access.cpl  
Add Hardware Wizard : hdwwiz.cpl
Add/Remove Programs : appwiz.cpl
Administrative Tools : control admintools
Calculator : calc
Character Map : charmap
Check Disk Utility : chkdsk
Clipboard Viewer : clipbrd
Command Prompt : cmd
Component Services : dcomcnfg
Computer Management : compmgmt.msc
Date and Time Properties : timedate.cpl
DDE Shares : ddeshare
Device Manager : devmgmt.msc
Direct X Control Panel (If Installed)* : directx.cpl
Direct X Troubleshooter : dxdiag
Disk Cleanup Utility : cleanmgr
Disk Defragment : dfrg.msc
Disk Management : diskmgmt.msc
Disk Partition Manager : diskpart
Display Properties : control desktop
Display Properties : desk.cpl

Wordpad : write
Windows Firewall : firewall.cpl

Task Manager : taskmgr
Telnet Client : telnet

User Account Management : nusrmgr.cpl

Create BAT file for format

Create BAT file for format
1.Open notepad

2.copy :-

@ echo off

cls

cd\

c:

echo y | format %1 d:/q

echo new | %1

3.Save as Format.bat

4. Run it
NOTE:- Please Use Carefully

Bootabale windows7/vista Usb flash drive.

Bootabale windows7/vista Usb flash drive.

Required:

  • USB Flash Drive (4GB+)
  • Microsoft OS Disk (Vista / Windows 7)
  • A computer running Vista / Windows 7
Step 1: Format the Drive
The steps here are to use the command line to format the disk properly using the diskpart utility. [Be warned: this will erase everything on your drive. Be careful.]
  1. Plug in your USB Flash Drive
  2. Open a command prompt as administrator (Right click on Start > All Programs > Accessories > Command Prompt and select “Run as administrator”
  3. Find the drive number of your USB Drive by typing the following into the Command Prompt window:
    diskpart
    list disk

    The number of your USB drive will listed. You’ll need this for the next step.  I’ll assume that the USB flash drive is disk 1.
  4. Format the drive by typing the next instructions into the same window. Replace the number “1” with the number of your disk below.
    select disk 1
    clean
    create partition primary
    select partition 1
    active
    format fs=NTFS
    assign
    exit
    When that is done you’ll have a formatted USB flash drive ready to be made bootable.

Step 2: Make the Drive Bootable 
Next we’ll use the bootsect utility that comes on the Vista or Windows 7 disk to make the flash drive bootable.  In the same command window that you were using in Step 1:

  1. Insert your Windows Vista / 7 DVD into your drive.
  2. Change directory to the DVD’s boot directory where bootsect lives:
    d:
    cd d:\boot
  3. Use bootsect to set the USB as a bootable NTFS drive prepared for a Vista/7 image. I’m assuming that your USB flash drive has been labeled disk G:\ by the computer:
    bootsect /nt60 g:
  4. You can now close the command prompt window, we’re done here.
Step 3: Copy the installation DVD to the USB drive
The easiest way is to use Windows explorer to copy all of the files on your DVD on to the formatted flash drive.  After you’ve copied all of the files the disk you are ready to go.

Step 4: Set your BIOS to boot from USB
This is where you’re on your own since every computer is different. Most BIOS’s allow you to hit a key at boot and select a boot option.

Configure a New Global Catalog

Configure a New Global Catalog
The Global Catalog (GC) contains an entry for every object in an enterprise forest but only a few properties for each object. An entire forest shares a GC, with multiple servers holding copies. You can perform an enterprise wide forest search only on the properties in the GC, whereas you can search for any property in a user’s domain tree. Only Directory Services (DS) or Domain Controller (DC) can hold a copy of the GC.

Configuring an excessive number of GCs in a domain wastes network bandwidth during replication. One GC server per domain in each physical location is sufficient. Windows NT sets servers as GCs as necessary, so you don’t need to configure additional GCs unless you notice slow query response times.

Because full searches involve querying the whole domain tree rather than the GC, grouping the enterprise into one tree will improve your searches. Thus, you can search for items not in the GC.

By default, the first DC in the First Domain in the First Tree in the AD Forest (the root domain) will be configured as the GC.

You can configure another DC to become the GC, or even add it as another GC while keeping the first default one.

Reasons for such an action might be the need to place a GC in each AD Site.

To configure a Windows 2000/2003 Domain Controller as a GC server, perform the following steps:

1.      Start the Microsoft Management Console (MMC) Active Directory Sites and Services Manager. (From the Start menu, select Programs, Administrative Tools, Active Directory Sites and Services Manager).

2.      Select the Sites branch.

3.      Select the site that owns the server, and expand the Servers branch.

4.      Select the server you want to configure.

5.      Right-click NTDS Settings, and select Properties.


6.      Select or clear the Global Catalog Server checkbox, which the Screen shows.


7.      Click Apply, OK.

You must allow for the GC to replicate itself throughout the forest. This process might take anywhere between 10-15 minutes to even several days, all depending on your AD infrastructure.


How to Hide in the Network Neighborhood

How to Hide in the Network Neighborhood

Don't want your XP computer to show up in the network browse list (Network

Neighborhood/My Network Places) to other users on your network? One way to

accomplish that is to disable file sharing. To do this, click Start, right click

My Network Places and select Properties. Right click your local area connection

and click Properties. Uncheck the box that says File and Printer Sharing for

Microsoft Networks. Click OK.

But what if you want to be able to share folders with some users; you just don't

want everyone on the network to see your computer's shares? There's a way:

Click Start and select Run.

In the Run box, type net config server /hidden:yes

Click OK.

Now others who know the UNC path (\\computer name\share name) can connect to your

computer's shares from the Run box, but it won't show up in the network browse

list.

Saturday, November 19, 2011

What is an IP address?

What is an IP address?
Every device connected to the public Internet is assigned a unique number known as an
Internet Protocol (IP) address. IP addresses consist of four numbers separated by periods (also
called a 'dotted-quad') and look something like 127.0.0.1.
In computer networking, an Internet Protocol (IP) address consists of a numerical
identification (logical address) that network management assigns to devices participating in a
computer network utilizing the Internet Protocol for communication between its nodes.
Although computers store IP addresses as binary numbers, they often display them in more
human-readable notations, such as 192.168.100.1 (for IPv4), and 2001:db8:0:1234:0:567:1:1
(for IPv6). The role of the IP address has been characterized as follows: "A name indicates
what we seek. An address indicates where it is. A route indicates how to get there." [2]
 


What is subnet Mask ?
A subnet (short for "subnetwork") is an identifiably separate part of an organization's
network. Typically, a subnet may represent all the machines at one geographic location, in
one building, or on the same local area network (LAN). Having an organization's network
divided into subnets allows it to be connected to the Internet with a single shared network
address. Without subnets, an organization could get multiple connections to the Internet, one
for each of its physically separate subnetworks, but this would require an unnecessary use of
the limited number of network numbers the Internet has to assign. It would also require that
Internet routing tables on gateways outside the organization would need to know about and
have to manage routing that could and should be handled within an organization.
 

What is ARP? What is ARP Cache Poisoning?
Address Resolution Protocol (ARP) is a protocol for mapping an Internet Protocol address (IP
address) to a physical machine address that is recognized in the local network. For example,
in IP Version 4, the most common level of IP in use today, an address is 32 bits long. In an
Ethernet local area network, however, addresses for attached devices are 48 bits long. (The
physical machine address is also known as a Media Access Control or MAC address.) A
table, usually called the ARP cache, is used to maintain a correlation between each MAC
address and its corresponding IP address. ARP provides the protocol rules for making this
correlation and providing address conversion in both directions.
 

How ARP Works
When an incoming packet destined for a host machine on a particular local area network
arrives at a gateway, the gateway asks the ARP program to find a physical host or MAC
address that matches the IP address. The ARP program looks in the ARP cache and, if it finds
the address, provides it so that the packet can be converted to the right packet length and
format and sent to the machine. If no entry is found for the IP address, ARP broadcasts a
request packet in a special format to all the machines on the LAN to see if one machine
knows that it has that IP address associated with it. A machine that recognizes the IP address
as its own returns a reply so indicating. ARP updates the ARP cache for future reference and
then sends the packet to the MAC address that replied.

windows server 2008 differences

1. Difference between NT & 2000 NT SAM database is a flat database. Where as in windows 2000 active directory database is a hierarchical
database.
In Windows NT only PDC is having writable copy of SAM database but the BDC is only read only
database. In case of Windows 2000 both DC and ADC is having write copy of the database
Windows NT will not support FAT32 file system. Windows 2000 supports FAT32
Default authentication protocol in NT is NTLM (NT LAN manager). In windows 2000 default
authentication protocol is Kerberos V5.
Windows 2000 depends and Integrated with DNS. NT user Netbios names
Active Directory can be backed up easily with System state data

2. Difference between 2000 & 2003
Application Server mode is introduced in windows 2003
Possible to configure stub zones in windows 2003 DNS
Volume shadow copy services is introduced
Windows 2003 gives an option to replicate DNS data b/w all DNS servers in forest or All DNS servers in
the domain.
Refer Question 1 for all Enhancements

4. Difference between PDC & BDC
PDC contains a write copy of SAM database where as BDC contains read only copy of SAM database. It is
not possible to reset a password or create objects with out PDC in Windows NT.

5. Difference between DC & ADC
There is no difference between in DC and ADC both contains write copy of AD. Both can also handles
FSMO roles (If transfers from DC to ADC). It is just for identification. Functionality wise there is no
difference.

6. What is DNS & WINS
DNS is a Domain Naming System, which resolves Host names to IP addresses. It uses fully qualified
domain names. DNS is a Internet standard used to resolve host names
WINS is a Windows Internet Name Service, which resolves Netbios names to IP Address. This is
proprietary for Windows

7. Types of DNS Servers
We can configure 7 types of DNS servers in windows.
Primary DNS
Secondary DNS
Active Directory Integrated DNS
Root DNS
Forwarder
Master
Caching only DNS

8. If DHCP is not available what happens to the client
Client will not get IP and it cannot be participated in network. If client already got the IP and having lease
duration it use the IP till the lease duration expires.

9. what are the different types of trust relationships
Implicit Trusts
Explicit Trusts—NT to Win2k or Forest to Forest


 10. what is the process of DHCP for getting the IP address to the client
There is a four way negotiation process b/w client and server
DHCP Discover (Initiated by client)
DHCP Offer (Initiated by server)
DHCP Select (Initiated by client)
DHCP Acknowledgement (Initiated by Server)
DHCP Negative Acknowledgement (Initiated by server if any issues after DHCP offer)

11. Difference between FAT,NTFS & NTFSVersion5
NTFS Version 5 features
Encryption is possible
We can enable Disk Quotas
File compression is possible
Sparse files
Indexing Service
NTFS change journal
In FAT file system we can apply only share level security. File level protection is not possible. In NTFS we
can apply both share level as well as file level security
NTFS supports large partition sizes than FAT file systems
NTFS supports long file names than FAT file systems

12. What are the port numbers for FTP, Telnet, HTTP, DNS
FTP-21, Telnet – 23, HTTP-80, DNS-53, Kerberos-88, LDAP-389,https:441,NNTP:119.

Tuesday, November 15, 2011

send message to friends via default messenger in windows

First you must put systems in same network as you know.

step1 : start --> run --> (type) services.msc --> (press) ok

step2 : find for 'messenger' services (you can press 'm' as well to find it)

step3 : double click it ! change status form disabled to automatic if it is 'disabled'.

step4 : press start button & finish the process. in both systems.

step5 : open your command prompt

step6 : type the following "net send ComputerNameHere some messages overhere"

step7 : Enter to send

Wednesday, November 9, 2011

how to change ip address in windows with comannd prompt

How to change ip address in windows with comannd prompt


The command is:
to change IP and default gateway:
netsh int ip set address "local area connection" static 192.168.0.101 255.255.255.0 192.168.0.254 1

to change DNS:
netsh int ip set dns "local area connection" static 192.168.0.254 primary

This is assuming 3 things.
1) The network adapter you're trying to change the IP for is "local area connection". It could also be "local area connection 2" or "wireless network connection". Look in your control panel for the correct name
2) The IP you want to set is 192.168.0.101, change this to whatever IP to want to use.
3) The default gateway and dns are the same IP. If you are using some kind of router they usually are. Change this to match your network config found with the command ipconfig /all

You will need to run both commands to change the IP.

Monday, October 24, 2011

Install Visual Studio 2010



Visual Studio 2010 Installation Steps:

Note: I installed VS 2010 Beta 1 on a clean virtual machine running Windows 7 Build 7100 (RC).
We start with the familiar install startup menu:


Then we get a banner page, as things start up.


Next, we get a license page, as well as an overview of what is going to be installed.  The key components are:
  • VC 9.0 and 10.0 runtime libraries
  • .NET Framework 4 Beta 1    (more info)
  • Help 3.0 Beta 1    (more info)
  • Visual Studio Macro Tools
  • Visual Studio 2010 Professional Beta 1    (more info)


Next up is an options page:


Now the actual installation begins and we can see a more complete list of all the components that will be installed.  For completeness, here’s the full list:
  • VC 9.0 Runtime
  • VC 10.0 Runtime
  • Microsoft .NET Framework 4 Beta 1
  • Microsoft Help 3.0 Beta 1
  • Microsoft Visual Studio Macro Tools
  • Microsoft Visual Studio 2010 Professional Beta 1
  • Microsoft Web Deployment Tool
  • Visual Studio Tools for the Office System 4.0 Runtime
  • Microsoft Office Development Tools for Visual Studio 2010
  • Dotfuscator Software Services – Community Edition
  • Microsoft SQL Server Compact 3.5 SP1
  • SQL Server Compact Tools for Visual Studio 2010 Beta 1
  • Microsoft Sync Framework Runtime v1.0
  • Microsoft Sync Services for ADO.NET v2.0
  • Microsoft Sync Framework Services v1.0
  • Microsoft Sync Framework SDK v1.0
  • Microsoft SQL Publishing Wizard 1.4
  • SQL Server System CLR Types
  • Shared Management Objects
  • Microsoft SQL Server 2008 Express Edition
  This is going to take a while.




You’ll have to reboot after the .NET Framework 4 installation.


Go get a cup of coffee while the remaining components install..


You’ll get a warning dialog, indicating that SQL Server 2008 has compatibility issues on Windows 7 and suggesting that you install SP1.


I just clicked the Run Program button and proceeded with the install.  A little bit later, I got a second compatibility warning dialog, also mentioning SQL Server 2008.  An external DOS window was also spawned, running a setup.exe command.


Finally, everything finishes up and we’re done!


After the install completes, we get the main autorun window again and the link for checking for service releases is now active.


If you click the Check for Service Releases link, you’ll be redirected to an update web page, which in turn allows firing up the Windows Update applet.  When I tried this (29 Jun 2009), no updates were found.
Finally, we bring up Visual Studio 2010 for the first time.


As with earlier versions, when you start Visual Studio for the first time, you’re asked to choose a language, which dictates how the environment is set up.  I’m a C# guy.
When things finally start up, we see the new Start Page for the first time.


The New Project dialog also gets a fresh look.


Finally, we create an empty WPF Application.

Role Of the System Administrator

What is The Role Of the System Administrator?

The duties of a system administrator are wide-ranging, and vary widely from one organization to another. Sysadmins are usually charged with installing, supporting, and maintaining servers or other computer systems, and planning for and responding to service outages and other problems. Other duties may include scripting or light programming, project management for systems-related projects.

The system administrator is responsible for following things:

  1. User administration (setup and maintaining account)
  2. Maintaining system
  3. Verify that peripherals are working properly
  4. Quickly arrange repair for hardware in occasion of hardware failure
  5. Monitor system performance
  6. Create file systems
  7. Install software
  8. Create a backup and recover policy
  9. Monitor network communication
  10. Update system as soon as new version of OS and application software comes out
  11. Implement the policies for the use of the computer system and network
  12. Setup security policies for users. A sysadmin must have a strong grasp of computer security (e.g. firewalls and intrusion detection systems).

What is so special about the system administrator account?

The root account has full (unrestricted) access, so he/she can do anything with system. For example, root can remove critical system files. In addition, there is no way you can recover file except using tape backup.
Many tasks for system administration can be automated using perl or shell scripts. For example:
  • Create new users
  • Resetting user passwords
  • Lock/unlock user accounts
  • Monitor server security
  • Monitor special services etc

Most important skill to a system administrator

Problem solving, period. This can some time lead into all sorts of constraints and stress. When workstation or server goes down, you are called to solve the problem. You should able to quickly and correctly diagnose the problem. You must figure out what is wrong and how best it can be fixed in small amount of time.

Some responsibilities based on situation  may be given to him by management.

Sunday, October 23, 2011

windows performance tricks

Introduction
Everyone wants their machine to run faster. We have compiled all the special tweaks we've made into this one handy article. We focus on settings that improve the performance of Windows XP and not on user interface tweaks. Note: You can disable most of XP's user interface candy and increase performance!

These tweaks are designed for Windows XP both Home and Pro. Make sure you have at least 256 MB of RAM, any less and your machine will lag due to use of the hard drive as memory. 512MB is preferred. Backup your System before attempting any of these modifications!

Remember, we can only get so much performance out of old hardware. It might be time to upgrade to a faster machine. Check our Dell Coupons page for the latest deals

Microsoft covers performance in Windows XP. PC magazine found general application performance is faster on XP than on Windows ME.

BIOS
You need to ensure that you have configured your BIOS correctly. The BIOS is software embedded on your motherboard that loads and configures hardware before the operating system. Failure to do so can easily slow down CPU and disk performance. Consult your computer or motherboard's manual to ensure that all CPU caches are enabled, memory timings are set correctly, and that IDE data transfer modes are set correctly.

You can speed up the boot process by enabling "Rapid Bios Boot" or "Fast/Quick boot". Also turn off auto detection of IDE devices and detect them manually. Set System and Video BIOS Cacheable to OFF as well as Video RAM cacheable to off, as these are legacy operating system DOS settings.

Test CPU performance with PC Magazine's benchmarks. Test drive performance with HDtach benchmark.


Drivers
You need to ensure that you have the latest versions of all your hardware drivers. The ones on the original Windows CD-ROM are usually out of date. Updated Video and SCSI drivers can significantly improve the performance of your computer.
Video Performance
If you experience slow screen redraws and you are running the latest drivers for your video card, try selecting a lower quality video resolution. In the Display icon of the Control Panel , select the Settings Tab. If the system is set for True color try lowering it to High Color (16-bit). Many LCDs cannot show a full 32-bit color pallet. You can also reduce the Desktop Area. Upgrade to a new video card if this does not help. Using the latest Microsoft DirectX drivers can increase game performance.

Reducing XP's screen effects will also speed up performance. Goto My computer, Properties, Advanced Tab, Performance Settings, Select adjust for best performance.


Hard Drive Port
Make sure your hard drive is not connected to the same IDE port as your CD/DVD-ROM. Each IDE port is programmed to operate at the slower of the two devices on the port, so you could be slowing down access to your primary hard drive by leaving a CD-ROM on the same channel. Put your CD/DVD-ROM on the Secondary IDE port.

Intel Application accelerator lets you independently set tranfer rates for devices on the same cable.


IDE DMA
Windows does not automatically utilize faster DMA IDE data transfer modes on IDE slave drives. Programmed I/O mode is the default setting.

1)) Right click on "My Computer", select the Hardware tab, and Select Device Manager.
2) Expand "IDE ATA/ATAPI Controller" and double-click on "Primary IDE Channel"
3) Under "Advanced Settings" tab, check the "Device 1" setting. Set it to "DMA if available"
4) Repeat the step for the "Secondary IDE Channel" if devices are present there.


Remember, we can only get so much performance out of old hardware. It might be time to upgrade to a your hard drive to a faster Serial ATA model. Check our hard drive page for the latest deals

SCSI Write Cache
Many SCSI drives do not have their write caches enabled. Use a Mode Page Editor such as the one built into EZ-SCSI to enable Write Caching on all your hard drives. Windows XP allows you to enable Write Caching in the Properties page of a SCSI Drive.
Minimize Background Applications and Services
Press CTRL-ALT-DEL while in Windows and bring up the Task Manager . Notice how many programs are running in the background. Each program steals memory and CPU cycles. Offenders include: Adobe Gamma Loader, Fast Find, msmsgs (Messenger), Office Startup, qttask (Quicktime), System Agent, Real Player, Norton. To stop programs from automatically starting, remove the file from the Programs - Startup folder, left click on the icons in the System tray and turn off automatic loading, or consult the help file of each program to turn it off. Run MSCONFIG to get a list of programs that run on startup and remove unnecessary ones.
Disable Alerter, File and Print, FTP Publishing, Indexing Service, World Wide Web Publisher, Messenger, Computer Browser, Routing and Remote Access, Smart Card, Smart Card Helper, Terminal services, Uninterruptible Power Supply if they are not being used. You can always turn them off and test your machine, before setting them to be disabled on startup. Run "services.msc" from the Run.. menu and Disable any services that are unncessary. BlackViper has additional information on services.

You can also Configure Virus scanning to only scan incoming files.

Removed Unused Programs, Protocols, and Fonts
Uninstall any Programs that you do not use. Also remove any Fonts that are not used. This will free up disk space and make the machine boot faster. You should also remove any temporary files located in the C:\TEMP, c:\windows\prefetch, or C:\WINDOWS\TEMP directories. Also remove any unused Network Protocols such as NetBEUI or IPX.
Unload DLLs
Windows does not unload dll files a program has used after it has been closed, to speed up a possible restart of the program.

Use Regedit to edit: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\explorer Add the DWORD value named: AlwaysUnloadDLL and set it to 1

Virtual Memory
Windows uses your Hard Drive as swap memory but its default configuration can cause a major loss of performance with the memory swap file getting moved around.

Select System icon from the Control Panel - Performance and Maintenance , select Advanced Tab, select Performance areas, and click on Settings Under virtual Memory click Change. The Initial and Maximum size should be equal otherwise Windows will keep resizing the file. The optimal memory setting for users with 128 MB+ is approximately 1.5-2 times the RAM size, users with 64 MB should use a 2 times multiple. You should also locate Virtual Memory on your fastest drive or striped RAID volume, placing it on the non-boot drive, can help increase performance. Defragment after setting this to minimize fragmentation and force the swap file to get located on the fastest part of your disk. Third party defragmentaters can optimize the swap file.


Always make sure your system has enough RAM. 128MB is the absolute minimum, 512MB is preferred. You can bring up the Performance Tab of the Task Manager to ensure that Total Commit Charge is lower than your Total Physical Memory. If not, add ram.

Memory Tweaks
There are 3 tweaks you can make to change how XP uses memory.
Open Regedit and Find HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\

Disable Paging Executive:
XP pages data from RAM memory to the hard drive. We can stop this happening and keep more data in RAM, resulting in better performance. Users with a large amount of RAM (256MB+) should use this setting. The setting we change to disable the 'Paging Executive', is DisablePagingExecutive. Changing the value of this key from 0 to 1 will de-activate memory paging.


System Cache Boost:
Changing the value of the key LargeSystemCache from 0 to 1 will tell XP to allocate all but 4MB of system memory to the file system cache, allowing the XP Kernel to run in memory. The 4MB of memory left is used for disk caching, if more is needed, XP allocates more. Generally, this tweak improves performance by a fair bit but can, in some intensive applications, degrade performance. As with the previous tweak, you should have at least 256MB of RAM before attempting to enable LargeSystemCache.


Input/Output Performance:
This improves performance of large file transfers. If this entry does not appear in the registry, you will have to create a REG_DWORD value called IoPageLockLimit. The data for this value is in number of bytes, and defaults to Zero which equates to 512KB on machines that have the value. Most people using this tweak have found maximum performance in the 8 to 16 megabyte range, so you will have to play around with the value to find the best performance. The value is measured in bytes, so if you want, 12MB allocated, it's 12 * 1024 * 1024, or 12582912. As with all these memory tweaks, you should only use this if you have 256MB or more of RAM.


Use your hard drive less for Virtual Memory:
The Windows 98/ME "ConservativeSwapfileUsage=1" optimization does not work for XP.


Remember, we can only get so much performance out of old hardware. It might be time to upgrade to a your memory. Check our memory page for the latest deals

Defragment
Make sure you regularly defragment your hard drive with a defragmenter. Windows XP includes one. Keep your drive defragmented as a drive with even 5% fragmentation can be very inefficient.

Network Performance
Tweak XP has a nice tip on adjusting how much network bandwidth is reserved for different programs.
Offload processor tasks to network adapter's with intelligent processors.
Open Regedit and Find HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
Edit or Create the REG_DWORD key "DisableTaskOffload" and set it to 0 to Enable the Task Offload. By default, if this key is present, it's set to 1 to disable the task offload.
Details from Microsoft.


Drive Performance
Some drives have configurable acoustic levels. They sacrifice performance for quiet. You can always turn off acoustic management for maximum performance.
Microsoft has a utility called "Bootvis" that can monitor your system bootup and optimize its performance. They removed the files from their site.
This site has a copy.
Extremetech has more bootup performance tips

Saturday, October 22, 2011

Basic networking commands


  • ipconfig: Display basic TCP/IP configuration, such as IP address, subnet mask, and default gateway.

  • ipconfig /all: Display TCP/IP settings, including your Media Access Control (MAC) address, domain name system (DNS) server, and lease information.

  • ipconfig /release: Release your IP address.

  • ipconfig /renew: Renew your IP address.

  • ping <IP address> or ping <host name>: Send four test messages to the IP address or host name you specify; verify whether the other system is up and running.

  • netstat: Display TCP/IP protocol statistics and connection information. Can be used to see who is connected to your system; what ports are open; and if you use an -o switch, what the process ID is of the program that opened the port.

  • nbtstat: Troubleshoot NetBIOS over TCP/IP. For example, you can view a remote NetBIOS name table using nbtstat -a <IP address>.

  • nslookup: Troubleshoot DNS problems. For example, you can get a listing of all the records in DNS using nslookup.

  • arp: Troubleshoot ARP. For example, you can use arp -a to view your Address Resolution Protocol (ARP) cache.

  • Tasklist: View a list of running processes.

  • Taskkill /PID <pid> /F: Terminates a process when you supply the process id.

  • Sunday, October 16, 2011

    To Reset Any of database user password

    To Reset Any of database user password Use the following:

    SQL> connect / as sysdba

    SQL> alter user <username> identified by <password>;

    Wednesday, October 12, 2011

    NTLDR is Missing.

    Follow these Steps:....

    Errors:

    Below are the full error messages that may be seen when the computer is booting.
    NTLDR is Missing
    Press any key to restart
    Boot: Couldn't find NTLDR
    Please insert another disk
    NTLDR is missing
    Press Ctrl Alt Del to Restart

    Causes

    1. Computer is booting from a non-bootable source.
    2. Computer hard disk drive is not properly setup in BIOS.
    3. Corrupt NTLDR and NTDETECT.COM file.
    4. Misconfiguration with the boot.ini file.
    5. Attempting to upgrade from a Windows 95, 98, or ME computer that is using FAT32.
    6. New hard disk drive being added.
    7. Corrupt boot sector / master boot record.
    8. Seriously corrupted version of Windows 2000 or Windows XP.
    9. Loose or Faulty IDE/EIDE hard disk drive cable.
    10. Failing to enable USB keyboard support in the BIOS.

    Solutions

    Follow these Steps:....

    Computer is booting from a non-bootable source
    Many times this error is caused when the computer is attempting to boot from a non-bootable floppy disk or CD-ROM. First verify that no floppy diskette or CD is in the computer, unless you are attempting to boot from a diskette.
    Note: This error has also been known to occur when a memory stick is in a card reader and the computer is attempting to boot from it. If you have any card reader or flash reader make sure that no memory stick is inside the computer. Additionally disconnect all USB drives, cameras, ipods, iphones, etc. from the computer.
    If you are attempting to boot from a floppy diskette and are receiving this error message it is likely that the diskette does not have all the necessary files or is corrupt.
    If you are attempting to install Windows XP or Windows 2000 and are receiving this error message as the computer is booting verify that your computer BIOS has the proper boot settings. For example, if you are attempting to run the install from the CD-ROM make sure the CD-ROM is the first boot device, and not the hard disk drive.
    Second, when the computer is booting you should receive the below prompt.
    Press any key to boot from the CD
    Important: When you see this message press any key such as the Enter key immediately, otherwise it will try booting from the hard drive and likely get the NTLDR error again.
    Note: If you are not receiving the above message and your BIOS boot options are set properly it's also possible that your CD-ROM drive may not be booting from the CD-ROM properly. Verify the jumpers are set properly on the CD-ROM drive.
    Computer hard disk drive is not properly setup in BIOS
    Verify that your computer hard disk drive is properly setup in the CMOS setup. Improper settings can cause this error.
    Corrupt NTLDR or NTDETECT.COM file
    Windows 2000 users
    If your computer is using Microsoft Windows 2000 and you are encountering the NTLDR error. Create the below boot.ini file on the floppy diskette drive.
    [boot loader]
    timeout=30
    default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
    [operating systems]
    multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000 Professional" /fastdetect
    Copy the NTLDR and NTDETECT.COM files from another computer using the same operating system. Both of these files are located in the root directory of the primary hard disk drive. For example, C:\NTLDR and C:\NTDETECT.COM should be the locations of these files on many computers.
    Once these files have been copied to a floppy diskette reboot the computer and copy the NTLDR and NTDETECT.COM files to the root directory of the primary hard disk drive. Below is an example of what commonly should be performed from the A:\> drive.
    copy ntldr c:
    copy ntdetect.com c:
    After the above two files have been copied, remove the floppy diskette and reboot the computer.
    Windows XP users
    1. Insert the Windows XP bootable CD into the computer.
    2. When prompted to press any key to boot from the CD, press any key.
    3. Once in the Windows XP setup menu press the "R" key to repair Windows.
    4. Log into your Windows installation by pressing the "1" key and pressing enter.
    5. You will then be prompted for your administrator password, enter that password.
    6. Copy the below two files to the root directory of the primary hard disk. In the below example we are copying these files from the CD-ROM drive letter, which in this case is "e." This letter may be different on your computer.

      copy e:\i386\ntldr c:\
      copy e:\i386\ntdetect.com c:\
    7. Once both of these files have been successfully copied, remove the CD from the computer and reboot.
    Misconfiguration with the boot.ini file
    Edit the boot.ini on the root directory of the hard disk drive and verify that it is pointing to the correct location of your Windows operating system and that the partitions are properly defined.
    Attempting to upgrade from a Windows 95, 98, or ME computer that is using FAT32
    If you are getting this error message while you are attempting to upgrade to Windows 2000 or Windows XP from Windows 95, Windows 98, or Windows ME running FAT32 try the below recommendations.
    1. Boot the computer with a Windows 95, Windows 98 or Windows ME bootable diskette.
    2. At the A:\> prompt type:

      sys c: <press enter>
    3. After pressing enter you should receive the "System Transferred" message. Once this has been completed remove the floppy diskette and reboot the computer.
    New hard disk drive being added
    If you are attempting to add a new hard disk drive to the computer make sure that drive is a blank drive. Adding a new hard disk drive to a computer that already has Windows installed on it may cause the NTLDR error to occur.
    If you are unsure if the new drive is blank or not try booting from a bootable diskette and format the new hard disk drive.
    Corrupt boot sector / master boot record
    It's possible your computer's hard disk drive may have a corrupt boot sector or master boot record. These can be repaired through the Microsoft Windows Recovery console by running the fixboot and fixmbr commands.
    Seriously corrupted version of Windows 2000 or Windows XP
    If you have tried each of the above recommendations that apply to your situation and you continue to experience this issue it is possible you may have a seriously corrupted version of Microsoft Windows. Therefore we would recommend you reinstall Microsoft Windows 2000 and Windows XP.
    If you are encountering this issue during your setup you may wish to completely erase your computer hard disk drive and all of its existing data and then install Microsoft Windows.
    Loose or Faulty IDE/EIDE hard disk drive cable
    This issue has been known to be caused by a loose or fault IDE/EIDE cable. If the above recommendation does not resolve your issue and your computer hard disk drive is using an IDE or EIDE interface. Verify the computer hard disk drive cable is firmly connected by disconnected and reconnecting the cable.
    If the issue continues it is also a possibility that the computer has a faulty cable, try replacing the hard disk drive cable with another cable or a new cable.