Showing posts with label reboot. Show all posts
Showing posts with label reboot. Show all posts

Thursday, 27 October 2011

Create One-Click Shutdown and Reboot Shortcuts:






First, create a shortcut on your desktop by right-clicking on the desktop, choosing New, and then choosing Shortcut. The Create Shortcut Wizard appears. In the box asking for the location of the shortcut, type shutdown. After you create the shortcut, double-clicking on it will shut down your PC.





But you can do much more with a shutdown shortcut than merely shut down your PC. You can add any combination of several switches to do extra duty, like this:





shutdown -r -t 01 -c "Rebooting your PC"



Double-clicking on that shortcut will reboot your PC after a one-second delay and display the message "Rebooting your PC." The shutdown command includes a variety of switches you can use to customize it. Table 1-3 lists all of them and describes their use.





I use this technique to create two shutdown shortcuts on my desktop—one for turning off my PC, and one for rebooting. Here are the ones I use:





shutdown -s -t 03 -c "Bye Bye m8!"



shutdown -r -t 03 -c "Ill be back m8 ;)!"





Switch



What it does





-s



Shuts down the PC.





-l



Logs off the current user.





-t nn



Indicates the duration of delay, in seconds, before performing the action.





-c "messagetext"



Displays a message in the System Shutdown window. A maximum of 127 characters can be used. The message must be enclosed in quotation marks.





-f



Forces any running applications to shut down.


Thursday, 20 October 2011

XP PRO has a lot of fun utilities. One of the most useful ones I have found to date is the ability to remotely reboot a PC. There are 2 ways of doing this. You will need to have admin access to the PC to preform these actions. That being said, here is the first way to do it:




Right click my computer, choose manage.



Highlight the Computer Management (Local) then click on Action, choose connect to another computer.



In the window that opens fill in the machine name of the PC you want to connect to and click ok.



Once connected right click on Computer Management (Remote machine name) and choose properties.



Go to the "Advanced" tab and click the Settings button under Start up and recovery.



Click on the Shutdown button.



Under action choose what you want to do (you can log off current user, shut down, restart, or power down. you can also choose if you want to force all applications to close, close hung apps, or wait for all apps to close by themselves).





The second way... Remember dos... that good old thing. Open up a command prompt and enter in the following:





%windir%\System32\shutdown.exe -r -m \\Machinename. The command prompt has more switches and options. I highly suggest using shutdown.exe /? to see all the posibilities.


Wednesday, 19 October 2011

Create One-Click Shutdown and Reboot Shortcuts:






First, create a shortcut on your desktop by right-clicking on the desktop, choosing New, and then choosing Shortcut. The Create Shortcut Wizard appears. In the box asking for the location of the shortcut, type shutdown. After you create the shortcut, double-clicking on it will shut down your PC.





But you can do much more with a shutdown shortcut than merely shut down your PC. You can add any combination of several switches to do extra duty, like this:





shutdown -r -t 01 -c "Rebooting your PC"



Double-clicking on that shortcut will reboot your PC after a one-second delay and display the message "Rebooting your PC." The shutdown command includes a variety of switches you can use to customize it. Table 1-3 lists all of them and describes their use.





I use this technique to create two shutdown shortcuts on my desktop—one for turning off my PC, and one for rebooting. Here are the ones I use:





shutdown -s -t 03 -c "Bye Bye m8!"



shutdown -r -t 03 -c "Ill be back m8 ;)!"





Switch



What it does





-s



Shuts down the PC.





-l



Logs off the current user.





-t nn



Indicates the duration of delay, in seconds, before performing the action.





-c "messagetext"



Displays a message in the System Shutdown window. A maximum of 127 characters can be used. The message must be enclosed in quotation marks.





-f



Forces any running applications to shut down.


Sunday, 7 August 2011

Winxp Tips And Tricks, Winsock 2 repair


WinXP Tips & Trix - Winsock 2 Repair

--------------------------------------------------------------------------------
Repairing Damaged Winsock2

The symptoms when Winsock2 is damaged show when you try to release and renew the IP address using IPCONFIG...

And you get the following error message:

An error occurred while renewing interface 'Internet': An operation was attempted on something that is not a socket.

Also Internet Explorer may give the following error message:
The page cannot be displayed Additionally, you may have no IP address or no Automatic Private IP Addressing (APIPA) address, and you may be receiving IP packets but not sending them.

There are two easy ways to determine if Winsock2 is damaged:

From the XP source files, go to the Support / Tools directory

Winsock Test Method 1
Run netdiag /test:winsock

The end should say Winsock test ..... passed

Winsock Test Method 2

Run Msinfo32
Click on the + by Components
Click on the by Network
Click on Protocol
There should be 10 sections if the Winsock2 key is ok
MSAFD Tcpip [TCP/IP]
MSAFD Tcpip [UDP/IP]
RSVP UDP Service Provider
RSVP TCP Service Provider
MSAFD NetBIOS [\Device\NetBT_Tcpip...
MSAFD NetBIOS [\Device\NetBT_Tcpip...
MSAFD NetBIOS [\Device\NetBT_Tcpip...
MSAFD NetBIOS [\Device\NetBT_Tcpip...
MSAFD NetBIOS [\Device\NetBT_Tcpip...
MSAFD NetBIOS [\Device\NetBT_Tcpip...

If the names are anything different from those in this list, then likely Winsock2 is corrupted and needs to be repaired.
If you have any 3rd party software installed, the name MSAFD may be changed.
There should be no fewer than 10 sections.

To repair Winsock2

Run Regedit
Delete the following two registry keys:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Winsock
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Winsock2

Restart the computer
Go to Network Connections
Right click and select Properties
Click on the Install button
Select Protocol
Click on the Add button
Click on the Have Disk button
Browse to the \Windows\inf directory
Click on the Open button
Click on the OK button
Highlight Internet Protocol (TCP/IP)
Click on the OK button
Reboot