Ways of shutting down computer and blocking them to prevent windows from shutting down normally

0

Written on 4:10 PM by Rupesh Dhaka

Here we will perform some tweaks through Group Policy Editor (gpedit.msc), to prevent the windows from shutting down normally. So you can use this tweak for fun by performing this tweak to your friend's pc. Or you can do it on your own pc to surprise other users of your computer. They will be surprised because they will not be able to shutdown the pc normally.
A computer can be shut down in many ways. Here we will discuss all those different ways of shutting down and how they can be blocked.
So here we go.....

1st Method to shutdown computer (Turn_Off Button) :-

So first way and very common way of shutdown is :
Goto Start --> and click the icon Turn Off Computer.
Or simply press windows key + u + u from keyboard


 So now to stop shutting down we need to remove the Turn_Off_Computer button from Start Menu. But how can we do so?
Well just follow these steps to remove this button from start menu :

1. Open the group policy editor (gpedit.msc). Go to
     start --> Run --> type "gpedit.msc" and click OK.
 2. Now a window with title "Group Policy" will be
     opened.
3. Now Click User Configuration
4. And then Click Administrative Templates.
5. And finally Click on Start Menu and Taskbar.
 6. Now you will see some item on the right side of the
    window. In that window look for the item "Remove
    and prevent access to the Shut Down command".
7. Now double click this item and then another
    window will be opened. In this Window select
    'Enabled' option and click Apply and then click
    OK. 

You can see the above step in the following picture which will make the things more clear to you.....

Now you will see that there is no turn off button when you will click the start menu. And now you even can't turn off computer by pressing the power button on CPU. But you can turn off computer forcefully by keep pressing the power button CPU. But that would not be a normal shutdown.

2nd Method to shutdown computer (Log_Off Button) :-

 
But still there are some other ways open for a user to shutdown the computer normally. And one of them is discussed below : -
Now when you click the Start button there is no turn off button. But still there is one more button which is ' Log Off ' button. And this button will allow the user to turn off the computer normally. How ??
 Just click the log off button and there will be two options as shown in the picture.

Now either click Switch User or Log Off button you will get the following kind of screen where you can see the Turn Off button. And by clicking that you can normally shut down your computer.





So now we need to remove the Log Off button from the Start Menu. And to do so the steps are similar.
Goto start --> Run --> type "gpedit.msc". Then click User Configuration --> Administrative Templates --> Start Menu and Taskbar. 
Now look for the item "Remove Logoff on the Start Menu" and double click this item and then another
window will be opened. In this Window select 'Enabled' option and click Apply and then click Ok. And that's it the Log Off button will also be gone from the start menu.



3rd Method to shutdown computer (Command Prompt) :-

Now another way is there to turn off the computer properly. And what is it?
Its command prompt. We can issue the shutdown command from the DOS Prompt.
Click Start --> Run --> type "cmd" --> OK.
And Command prompt window will be opened. Now issue the following command to shutdown the computer : 
shutdown -s -t 00 and press enter and the computer will be shutdown.
So what to do now??
Now we will prevent the access to the command prompt. And then user will not be able to run commands and this way of shutting down the computer will be blocked for him.

So to prevent the access to DOS, follow these steps :-

Open gpedit.msc and then goto User Configuration --> Administrative Templates --> System.
And look for the item "Prevent access to the command prompt". Then double click it and then another
window will be opened. In this Window select 'Enabled' option and click Apply and then click Ok.
And now when you will try to open command prompt (whether via Run or direct going to Start --> All Programs --> Accessories --> Command Prompt.) There will be a message " The command prompt has been disabled by your administrator". So this way is also blocked now....

 
4th Method to shutdown computer (Run Box) :-

Now command prompt is blocked. But still we can issue the command "shutdown -s -t 00". How is this possible without command prompt? Well you can issue that command in Run Box. 
Open Run by clicking Start --> Run...  or pressing the window_key + R.
Now type in the command "shutdown -s -t 00" and your computer will be shutdown. So now our task will be to disable the Run Box from Start Menu.
To do so follow these steps :-
Open gpedit.msc and then goto User Configuration --> Administrative Templates --> Start Menu and Taskbar. Now look for the item "Remove Run menu from Start Menu" and double click this item and then another window will be opened. In this Window select 'Enabled' option and click Apply and then click Ok. And that's it, now if you will click the Start you will not see Run there.Or if you will try to press R key while pressing the window_key there will be a message box with an error message.
So another way is blocked for the user to shutdown the computer normally.

5th Method to shutdown computer (Batch files) :-

Here in this method we will create a batch file to shutdown the computer.  There are two ways of creating a batch file. The first way is through command prompt. But we have already disabled that. So how we gonna create these batch files. We will use the second method through notepad.

 Here are the Steps for creating a batch file with notepad  :-
1. Open the Notepad
2. Type the command : shutdown -s -t 00
3. Save file as "turnoff.bat".  (you can use any other name also instead of turnoff).

4. Then simply double click this batch file and your computer will be turned off.

Then how to prevent the batch file from creating.
Well we have already disabled the command prompt. So the only way to create the batch file is, creating them in notepad and saving them with the extension .bat. So to prevent the creation of batch file we have to disable the notepad. And to do so follow these steps :-

1. Open gpedit.msc and then goto User Configuration --> Administrative Templates --> System
2.  Look for the item "Prevent access to the command prompt"and double click it.
3. A new Window will be opened. In this window select 'Enabled' option.
4. After selecting this the 'Show' button will get activated. Now click that button

5. Another window will get opened. Click the Add button on this window.

6. Now one more window will be opened. In this type in "Notepad.exe" (without double quotes) and click
    Ok.

7. Now Notepad.exe will be shown in the list of disallowed applications. Click Ok. Then Apply and Ok.

And that's it. Your notepad has been disabled and now you will not be able to use it.
To use it again Remove the notepad.exe from the disallowed applications or simply select the 'Disabled' option.

6th Method to shutdown computer (Shortcut) :-

Now we have blocked five ways a user can shutdown computer normally. Now We will discuss on last method. It is creating a shortcut. How can a shortcut be used to shutdown computer??
See the steps below :-
1. Right click on desktop... Goto New --> Shortcut
2. A window will be opened in which type the command "shutdown -s -t 00" (without double quotes) and 
    click Next button.
3. Now you will move to the next window. In this window give any suitable name to your shortcut. e.g. her i
     have given the name Shutdown. And then click Finish button.

4. You will get an Icon with name Shutdown will get on your desktop.
5. Just Simply double click this icon and your computer will get shutdown.
 
Now to prevent shutting down of computer we need to block the creation of shortcut. To do so we have to perform a registry tweak. So follow these steps : -
1. Start --> Run --> type "regedit".
2. Registry editor will get opened. Click HKEY_CLASSES_ROOT. And scroll down to ".lnk"

3. Now we will get a backup for .lnk key. To do so right click on .lnk and click Export. Now 'Save as'   
    dialog  box will open. Save the file at a safe place with any desired name. e.g. Here i have save it with a 
    name lnk_reg_backup. This will be saved as a registry file (with .reg extension).

    In case, If you want to revert this action. i.e. you want again to create shortcuts just double click this saved
    file and this will be back to normal.

4. Now expand .lnk and click ShellNew. Now in right side pane you will see a string value 'Command'. 
    Double click this and empty the value data in it. And click OK.
5. That's it now when you will try to create shortcut there will be an error message. And an empty file will be
     created. you can delete that file.

So now we have discussed six different ways of shutting down your computer. And how can you block those 
ways to prevent the normal shutting down process of the computer.

Removing Recycle bin from Desktop without editing Registry

0

Written on 3:57 PM by Rupesh Dhaka

Removing Recycle bin from Desktop involves Registry editing. Recycle bin is a special folder on the Desktop and you can't just simply delete it. Even when you right clicks Recycle Bin Icon, you will not see Delete option in the context menu as you can see in the following picture.....

So now, as you can see that there is no option for deleting Recycle bin in context menu. Now the question is how can it be removed from Desktop.
Well you can Remove Recycle Bin by tweaking into the Registry.
But it is a bit difficult to do so through Registry and also it can be harmful because playing(editing) with Registry is always vulnerable. You have traverse through lots of Registry keys and then you have remember the CLSID key of Recycle Bin.
Every special folder on Desktop has a unique CLSID key. For Example the CLSID key for Recycle Bin is : {645FF040-5081-101B-9F08-00AA002F954E}. So you have to delete the following key. HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\Namespace\{645FF040-5081-101B-9F08-00AA002F954E}

But Don't Worry!!
There is an easy way to do so. And here I am gonna tell about this method. So follow these steps to remove recycle bin from desktop :-

1 : Goto Start, Click Run and enter "gpedit.msc"
2 : Then Double_Click on the "User Configuration" as shown in the following figure.

3 : Then Double_Click the "Administrative Templates"
4 : Now Double_Click the "Desktop"
5 : Now Double_Click the "Remove Recycle Bin icon from desktop"
6 : Now Click on "Enabled" option_button and then click Apply and Ok.
And that's it. The Recycle Bin Icon from the desktop is gone. Wasn't that easy?
Subscribe to blog to get more easy tweaks/tricks/hacks. Or Follow by email.





Changing the background of a Folder (Windows XP)

0

Written on 3:23 PM by Rupesh Dhaka

When you open any folder in your computer, what do you see in the background of that folder?? Just a boring white background? Do you want to change this white background?
Yes you can change the background of a folder without any software. You really don't need any software for changing the folder background. Here i am writing the steps for changing the background of a folder :-

1: Open notepad

2: Write the following code in notepad. Or you can simply copy and paste it in notepad
 [ExtShellFolderViews]
{BE098140-A513-11D0-A3A4-00C04FD706EC}={BE098140-A513-11D0-A3A4-00C04FD706EC}
 [{BE098140-A513-11D0-A3A4-00C04FD706EC}]
 Attributes=1
 IconArea_Image= "path of image (with extension)"
                               
 for example : i have an image file in my C drive. The name of the image file is "girls.jpg"
                     So in the above code i just have to change the
                     IconArea_Image field. And it will be
                     IconArea_Image = "C:\girls.jpg"

3: Save file in the targeted folder with the name "Desktop.ini"
                     Here i save the file in a folder in my F: drive. "F:\SWS"
                     As you can see in the following image that i have a Desktop.ini
                     file in the above mentioned folder .

4: But still the background is white. So to see the change that we have
    made we have to issue the following command :
                        i)  Open Run box (go to start and then click on run) or (press
                             Window key and then press R)
                        ii)  Now type cmd in the Run Box to open command prompt.
                       iii)  Now we have to reach out for the directory conataining
                             our targeted folder in the command prompt.
                             e.g : here, our targeted folder (containing the Desktop.ini
                                     file) is in F: drive.
                       iv)  And then  issue the following command : attrib +s
                             name_of_folder
                              e.g : here the command will be F:\>attrib +s SWS
       
             Note : if the folder name is too long or include spaces then use 
                        the following command to shorten the name of the folder :
                        dir /x. This command will show all the files and folders of 
                        the current directory with their short names. Then you can 
                        use that short name for your folder.

click image to enlarge it


5: Now Open your folder and you will see the image ( whose path has been given by you in the
     Desktop.ini file) as the background of your folder. That's it!!

6: If you also want to change the text color of the folder data. then simply open your desktop.ini 
    file and add the following line in the end
     IconArea_Text = "0xColor_Code"

     e.g. :   IconArea_Text = "0xff2562"
     this is a six digit hexadecimal code. you can try different codes. you can download color codes
     from the following link