But years later collection of mistakes is called experience, which leads to SUCCESS.
Sunday, October 11, 2009
BEST QUOTES
But years later collection of mistakes is called experience, which leads to SUCCESS.
20 reasons why life without a girlfriend is cool
You don’t have to spend money on her.
You won’t get boring result in ur board papers.
No girlfriend, no emotional blackmailing.
If u don’t have a girlfriend, she can’t dump u.
Having a girlfriend is hot, not having a girlfriend is automatically cool, and every one loves to be a cool guy.
This can be more to life than just waiting for the bloody phone to ring.
You won’t have to tolerate someone else defining, “right” and “wrong” for u.
Girlfriend can get so possessive that you can’t do anything according ur wishes anymore.
You can buy gifts for mom, dad, sis or grandpa instead of a girlfriend and have a happier family life.
You won’t have to waste paper writing love letters. No more endless waiting for ur date to arrive at some weird shop place.
You can have more friends, as u will have more time for them.
You wont have to see boring love stories instead of sports.
You wont have to tell lie to anybody and, therefore, u’ll sin less.
You can have good night’s sleep-no need to dream about her.
You wont have to fight over having a ’special’ friend with ur folks.
You wont have drown in the pool of her tears.
No tension.
You can be “yourself”
You wont have to hide your telephone bills….
Tuesday, June 30, 2009
How to use the remote shutdown command in Windows
This article will show you how to use the remote shutdown command tool in Windows to remotely shut down, restart, or logoff a local or networked computer. This can be very useful sometimes if you have multiple computers at home or on your network that you want to quickly shutdown or restart.
You can perform a remote shutdown from the command prompt using the shutdown command and it’s associated switches, from the remote shutdown dialog box, or from a batch file. I’ll try to go through all three in this guide.
Remote Shutdown Overview
Firstly, in order to remotely shutdown a computer on your network, you’ll need to make sure you have Administrative access to that computer. If you’re on a home network, the best way to do this is to make sure all computers are in the same workgroup and that they all have at least one Administrator account with the same user name and password.
You can also have different Administrator account names across computers, but then you’ll need to make sure you add the Administrator account of one computer to the account list on the other computers. You’ll also need to know all the names of the other computers on the network. You can do that by going to Control Panel and then clicking on System. Then click on the Computer Name tab.
Remote shutdown is useful for managing multiple computers at once and especially useful for helpdesk technicians when they have to fix remote computers.
Remote shutdown via Command Prompt
The shutdown command is most flexible when using it from the command prompt because you can add a bunch of switches to it, which allow you to customize the behavior. Go to Start, then Run, and type in CMD. In the black command window, type in shutdown /? to see the list of switches.
You have to use at least one switch in order for the command to do anything. Basically you would type in shutdown -X -Y -Z where X, Y, Z are letters in the list above.
Here are a couple of the most command switches and what actions they peform:
-l: Logs off the computer
-s: Shuts down the computer
-r: Restarts the computer
-m \\computername: remote shutdown of a computer
-f: Forces programs to close immediately
So for remotely shutting down another machine on your network, you would type into the command prompt the following commands:
shutdown –m \\computername –r –f
This above command will restart the computer named computername and force all programs that are still running to die.
shutdown –m \\computername –r –f –c “The computer will restart, please save all work.” –t 60
This command will restart the computer named computername, force all programs that are running to die, show a message to the user, and countdown 60 seconds before it restarts.
Remote Shutdown via Shutdown Dialog
If you don’t like all those switches, etc, or using the command prompt, then you can bring up the shutdown dialog box. You can open the dialog window by clicking Start, click Run, type CMD and typing shutdown -i and in the blank DOS window.
A window similar to the one below will appear:
Click the Add or Browse button to add computers to the list. You can then run the commands on the entire batch of computers. If you click Add, you’ll need to enter in the network name of the computer in the format \\computername. You can even add your own computer to test it out and make sure it works.
Of course, you need to know the actual computer name, which I mentioned how you can figure out above. You’ll also need Administrative access. You can determine this by going to My Computer and typing \\computername into the address bar and seeing if you can get access without having to be prompted for a password.
So add as many computers to the list as you like and then set your options. You can shutdown, restart, or logoff. You can also display a warning for however many seconds you like. You can type in a comment at the bottom which will be displayed to users. That’s it!
Remote Shutdown via Batch File
Finally, you can create a batch file so that you can do all of this by just clicking on a file! Or you can even schedule the batch file to be run at specific intervals using Windows Scheduler.
Just go to Notepad and type in the commands you would have typed into the command prompt:
shutdown –m \\computername1 –r
shutdown –m \\computername2 –r
shutdown –m \\computername3 –r
This will restart three computers on my home network. You would of course replace computername1 with the actual names of your computers. Then simple save the file with a .BAT file extension. You can put as many commands into the batch file as you like, so feel free to experiment!
I’ve written an extensive post on how to use batch files in Windows, so read that if you are not familiar with batch files. Enjoy!
How to gain access to system account the most powerful account in Windows.
There is an account in Microsoft Windows that is more powerful than the Administrator account in Windows Operating Systems. That account is called System account it is similar to the root OR super user in the Linux/Unix world . I will show you how to access this system account in this article.
You can use this facility for removing programs that are causing problems to your system, malware etc.
Introduction
If you look at the task manager (which can be launched by pressing [CTRL]+[ALT]+[DEL]) you will see some processes that are running with System level privileges. Even the Administrator account is unable to do some of the things a system account can do.
System is the highest account in Windows (like root),You can be a super power user by accessing the system account (even while you are logged in as a restricted user)
Note: Accessing system account may cause serious problems.
Leave this tread and don’t follow the rest of this topic
if you don’t know what you are doing. I am not liable for any problems caused by accessing the system account
Local system differs from an administrator account in that it has
full control of the operating system, similar to root on a Unix
machine. Most system processes are required by the operating
system, and cannot be closed, even by an administrator account;
attempting to close them will result in an error message.
In Windows NT and later systems derived from it (windows 2000,
Windows XP, Windows servers 2003 and Windows Vista), there may
or may not be a superuser. By default, there is a superuser named
Administrator, although it is not an exact analogy of the Unix
root superuser account. Administrator does not have all the
privileges of root because some superuser privileges are assigned
to the Local System account in windows NT/XP.
What you gain by accessing System account?
Local privilege escalation is useful on any system that a hacker
may compromise; the system account allows for several other
things that aren’t normally possible (you can reset passwords, resetting administrator passwords is also possible)
You can even login to System and lock administrator account out by
editing group policy or other tools in windows.
How to access System:
Note : Don’t follow the procedure bellow if you don’t know what you
are doing. You may harm your PC. If you follow, Do it on your own risk.
- Check the name of the account you’ve logged into (Click start. You
will see the name of the account you’ve logged in.) - Launch the command prompt. (Start | Run | cmd | [Enter] )
in command prompt, create a schedule to run cmd.exe.
To create a schedule type the following line and hit enter.
at 10:41 /interactive “cmd.exe”
this will create a schedule to run cmd.exe at 10:41.
(Since you are testing, check the time in your system try and add two or three minutes.)Change this time according to your local time
Hint: you can check if the schedule is placed by typing “at“
and hitting enter after the above step. - Wait for the time you set for the schedule.
cmd.exe would be launched at the specified time. - After cmd.exe is launched by the scheduled time, press [CTRL] + [ALT] + [DEL] and launch task manager.
Select “Process” tab, select explorer.exe in the process list and click “End Process” button.
You will receive a confirmation dialogue. Click “Yes” to end the process. - Close task manager by clicking the close (X) button.
Close the first cmd window (be careful to close the first one not the second one.) - Now you have only the second command prompt window and an empty desktop.
In command prompt type the following line and hit “Enter”
cd .. - In command prompt type the following line and hit “Enter”
explorer.exe
If this is the first time you do it, windows creates the necessary
components for you to access System ( Desktop, start menu,
My document)
when it’s finished you will have a new desktop. - Close command prompt window. Click start and check your username.
It’s changed to System.
Now you are a super-power user. Be careful not to harm your PC and delete or modify system files if you don’t know what you are doing.
Am once again saying, don’t attempt accessing system account, unless you are an experienced Windows user.
Running CMD.EXE as Local System
Running CMD.EXE as Local System 









Many times in the past I had to run an interactive command-line shell under the Local SYSTEM account. That is, a CMD window on your desktop running under the system account. This technique is extremely useful in many cases, for example to debug ERROR_ACCESS_DENIED type errors that are coming from a system service.
Let’s take a simple example to illustrate where running CMD as system would be useful. Let’s say that you write an ASP or ASP.NET application, configured to run under local system, without client impersonation. This application gets some weird E_ACCESSDENIED errors when invoking some COM objects (say that you are developing an ASP.NET layer on top of Visual Source Safe, for example).
One option to “debug” this is to attach a debugger to the ASP.NET working process, and attempt to figure out what goes wrong. But how would you debug COM calls, or even a failed CoCreateInstance? The “source code” for the COM infrastructure is not available. And even if you would be able to get access to this complex source code, there is a very high chance that you won’t understand what happens under the cover.
So, instead, here is a simpler solution: just start a CMD.EXE instance, running as local system (using one of the methods described below). Then, in this instance, try to execute an equivalent VB Script (or C++) code that does almost the same thing. You would probably get the same E_ACCESSDENIED but this time you are now able to fine-tune the COM security parameters, like specifying special settings through DCOMCNFG.EXE.
Anyway, let’s go back to the original issue – how to get “CMD.EXE” to run as the system account. Interactively. My first shot was to the RUNAS.EXE command. We already know that RUNAS allows you to run a process under a given user account. Unfortunately, RUNAS won’t work in our case, since a process running under an interactive logon session won’t be able to spawn a Local SYSTEM process. For security reasons, only a system process (that is already running as Local SYSTEM) like the SCM (services.exe) or RPCSS is allowed to spawn another system process.
After asking around, someone told me a quick-and-dirty solution that uses the AT.EXE command. AT can be used to spawn jobs at a certain point in time. What people don’t immediately realize is that these jobs run under the Local SYSTEM account. In fact, what happens under the cover is that AT creates a special Task in the Task Scheduler database. To complete the trick, AT allows tasks to run in “interactive” mode, i.e. the ability to interact with the desktop console (if active). In the end, to run a CMD through the AT.EXE command you must do two things:
1) Get the local time (through the TIME shell command, for example)
2) Add one minute to this time
3) Run the AT command with this new time.
4) Wait one minute for the command window to appear.
E:\Documents and Settings\Adi>time
The current time is: 16:29:00.96
Enter the new time:
E:\Documents and Settings\Adi>at 16:30 /interactive cmd.exe
Added a new job with job ID = 1
Well, this method looked pretty ugly to me. First of all is not scriptable. Second, it requires me to wait for one minute for the command window to appear. At last, the job remains there and needs to be cleaned up.
After this first shot, I started looking for simpler methods to show this command window. A nice start point was the SC.EXE command. If you are not already familiar with it, note just the fact that this is the standard utility for Windows Service related tasks: creating, deleting, enumerating services and their configuration details, etc.
My first attempt was to create an interactive service that just runs CMD.EXE. This didn’t work. I found out that when SCM starts a service, it waits a little for this new process to setup a communication channel (through the RegisterServiceCtrlHandler API). This channel is needed by SCM to send commands to the service.
E:\Documents and Settings\Adi>sc create testsvc binpath= "cmd" type= own type= interact
[SC] CreateService SUCCESS
E:\Documents and Settings\Adi>sc start testsvc
[SC] StartService FAILED 1053:
The service did not respond to the start or control request in a timely fashion.
But anyway, I succeeded to run CMD.EXE for a very brief period of time as Local System. After a couple of tweaks, I discovered the solution. You need to “convince” the original CMD.EXE process to spawn a separate CMD.EXE command window. Then, even if the original process dies, the other CMD.EXE instance will stay alive. Spawning a new CMD.EXE is very easy through the START shell command. In fact, just running START (with no parameters) from a CMD shell will start another window.
Let’s delete the original service and try again.
E:\Documents and Settings\Adi>sc delete testsvc
[SC] DeleteService SUCCESS
E:\Documents and Settings\Adi>sc create testsvc binpath= "cmd /K start" type= own type= interact
[SC] CreateService SUCCESS
E:\Documents and Settings\Adi>sc start testsvc
[SC] StartService FAILED 1053:
The service did not respond to the start or control request in a timely fashion.
Note that this time, the SC START immediately creates a new CMD window, even if the original CMD window failed to start with error 1053 (this is expected since CMD.EXE doesn’t have any service related code in it).
In the end, I would like to mention one more thing. You can use this new service to start as many CMD windows as you want, and you will get a new CMD window as soon as you do a “sc start testsvc” again.
Tuesday, May 26, 2009
7 Tips to Keep Windows XP Fast and Responsive
Windows XP is a landmark in Microsoft’s history. After a couple of unstable releases, Windows XP ironed out all the creases. Even today, Windows XP is more stable and considered a better OS than Vista by many.
No matter how stable, any (Windows) operating system requires proper care, optimization and tuning to keep it quick and responsive over long periods. Temporary files, crumbs of partially (un)installed programs, cached files and similar add to the bloat and make Windows XP slower over extended usage.
However, following a few simple tips, we can keep XP squeaky-clean and fast - just what you want. Follow these easy tips:
1. Install only necessary apps.
Installing every application you come across, trying them out for a few days and then uninstalling them is a bad idea. Install only the important applications, and then stay with it - do not uninstall. The reason is that more often than not, applications leave various files (temporary, shared etc.) even after uninstalling them. Over time, multiple install/uninstalls can lead to an unhealthy system with unnecessary bloat (and hence slowdown).
2. Install a good anti-virus, anti-spyware and firewall.
Though the chances of being infected with malware is limited if you access only legitimate sites and downloads, it is still better to be on the safe side. Installing an anti-spyware is important, because spyware can simultaneously slow down your system and use internet bandwidth.
3. Defragment your harddrive.
Defragmenting hard drive is commonplace, and is advisable. However, the default defragmentation app on Windows defragmentation is very slow, so using a third-party tool is a good idea. PowerDefragmenter accomplishes this task effectively. Search in google for it .
4. Use multiple partitions cleverly.
Using multiple partitions can improve data seek times significantly. Create partitions for operating system, program files (and use this partition as the location for all app installs), documents and media. Try to keep the partitions small in size, except for the media partition.
If you have more than one hard drive, use one of them for OS, and the other for other files (media, programs, My Documents etc.). This improves performance, and also increases the longevity of the hard drive on which the OS is located, since the data access is made for OS only. You can check the instructions about hard disk partitions below .
How to Partition a Hard Drive :
Instructions :
Step 1 : Start the computer in Command Prompt Mode.
Step 2 : Type "FDISK." The partition window will appear with menu options.
Step 3 : Enter 5 if you're partitioning a second drive, and select the drive; otherwise, skip to the next step.
Step 4 : Enter 1 (Create DOS Partition or Logical DOS Drive).
Step 5 :Enter 2 (Create Extended DOS) to create a partition.
Step 6 : Enter N when the program asks if you want to use the maximum available size.
Step 7 : Designate the amount of disk space to allocate to the second partition (the partition will be assigned the next drive letter).
Step 8: Type a name for the new partition and press Enter. The partition menu will appear.
Step 9 : Repeat steps 5 through 8 to create additional partitions.
Step 10 : Press Esc to exit the partition command.
Step 11 : Format the newly created partitions .
5. Optimize page-file usage.
Windows controls the page-file usage by default, but performance can be improved by setting the limits manually. Go to Control Panel > System > Advanced, and click the settings button under Performance. In the Performance dialog box, click the Advanced tab. Click on the Change button under Virtual Memory. In the dialog box that comes up, click ‘Custom’ and set the value at 1.5 times that of your system RAM. For example, if your computer has 1GB RAM, enter 1536 (remember, 1 GB=1024 MB).
6. Control startup applications:
Startup items can plague your computer with slower startup times. The best way to improve boot times is to disable unnecessary startup programs. Unlike other tweaks mentioned in this post, this tweak will be different for everyone. Common apps to disable include Skype, Yahoo Messenger, iTunes etc. However, ensure that you do not disable antivirus, anti-spyware and firewall applications.
Not sure how to do this? Check this TweakXP article below .
Remove start-up items :
Having programs run when windows loads slows down your start.
There are two ways do disable programs that may be in your startup (like icq, messanger,)
The easiest is to do the following:
1. start --> run --> msconfig
2. Click on the "startup" tab (furthest right)\
3. Unclick any items you don't want to load when windows starts.
The second is by deleting registry entrys, this can be done the following way:
1. Start --> run --> regedit
2. Navigate to : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
3. Delete any entry's that you don't want to load up
Note : Deleting keys from the registry will not allow you to set them to startup again if you change your mind.
7. Ditch Internet Explorer.
Internet Explorer renders pages poorly and gets a lot of flaming for it. However, an even more important aspect is security. Windows and Internet Explorer are tightly integrated. This means that any vulnerability in the browser can make the OS also vulnerable. Spyware attacks, phishing etc. are commonplace on IE. IE 7 is better in terms of security, but still has creases to iron out. A better idea would be to get a third-party browser - Firefox or Opera.
P. s : Enough care should be taken while handling the registry files.
Tuesday, March 10, 2009
Sunday, February 22, 2009
Using AnalogX Proxy to share an Internet Connection in a network
Introduction
Are you're using Internet Connection Sharing, but not satisfied with the results? You may try AnalogX Proxy server. It is very compact and easy to use. AnalogX Proxy is a small and simple server that allows any other machine on your local network to route it's requests through a central machine. Run Proxy on the machine with the internet connection and configure the other machines to use the Proxy Server. Supports all Windows Operating Systems.
In Windows XP system
- Download AnalogX Proxy and install it.
- Open Network Connections folder
- Right-click the LAN connection, choose Properties
- Select Internet Protocol (TCP/IP) from the list
- Choose Properties.
- Click Use the following IP Address
- Type in the IP address 192.168.0.1
- Subnet Mask 255.255.255.0
- Click OK, then OK.
In the client computers
Configure the system for internet browsing:
- Click Start, Run and type CONTROL INETCPL.CPL
- Choose Connections tab and click LAN Settings
- In the Proxy Server section, type in 192.168.0.1. Mention 6588 as the Port Number (for http)
- Click OK, OK and close the dialogs.
AnalogX notifies you that the Proxy is in open mode, the first time when you use it. You need to change it to closed mode so that only your local network accesses this Proxy server.
Open AnalogX proxy main screen and type 192.168.0.1 in the Proxy Binding text box. See this dialog:
You need to perform the above steps in each client computer in the network. Now, everything is set and you can browse the internet from the client computer(s). For other applications apart from Internet Explorer, you need to configure the program to use the Proxy Server (if the program allows it).
Example: If you're performing a Symantec Live Update in a client machine, configure the Live Update interface to use the Proxy Server. Same for any Instant Messengers you might use.
AnalogX and their Port Numbers
| List of Services supported by AnalogX and their Port Numbers | ||
| Services | Description | Port Number |
| HTTP | Browsing the internet | 6588 |
| HTTPS | Browsing the internet (secure) | 6588 |
| SOCKS4 | TCP proxying | 1080 |
| SOCKS4a | TCP Proxying with DNS lookups | 1080 |
| SOCKS5 | 1080 | |
| NNTP | Usenet Newsgroups | 119 |
| POP3 | Incoming email | 110 |
| SMTP | Outgoing email | 25 |
| FTP | File Transfer | 21 |
From AnalogX main screen, you may turn OFF unwanted services by disabling the appropriate buttons. This affects all the client computers and not the computer which shares the Internet. (Example: Disabling HTTP service turns OFF browsing in all client machines. Rest all services work)