Archive for the ‘Windows 7’ Category

Disable Updates on Shutdown in Windows

Thursday, October 27, 2011 posted by CSch

To disable Windows from installing updates when you were about to shut down your computer and have some tea there are two options available in your Local Group Policy Editor. Access it by entering gpedit.msc into a Run… prompt. On the left side you will have a large directory listing where you have to browse Computer Configuration\Administrative Templates\Windows Components\Windows Update.

The two top options are the ones you have to enable by double-clicking, enabling and applying. Windows will then no longer pester you with updates on shutdown.

Messages, Loops and Pauses with Visual Basic Script

Thursday, October 27, 2011 posted by CSch

Visual Basic Script is a simple scripting language you can use in Windows to compile executable .vbs files. They can be created with a notepad document, save the script by choosing All files in the Save as type drop-down menu and give it a name ending with .vbs (if you leave the first drop-down menu on text-document, notepad will attach an invisible text-document suffix on the created file, no matter if you say so in the document name).

Now to the scripting VBScript can be used to either ease the use of Windows (as seen here) or to prank the hell out of your friends’ computers.
Here are a few useful script lines:

MsgBox “Text goes here!”,extracodes+go+here,”Title goes here!”
This shows a simple Windows Messagebox with a text and a title. The Extracodes determine special characteristics. They are defined in numbers and are seperated with a plus symbol: 0-5 define the available buttons. 0=Ok; 1=Ok,Cancel; 2=Abort,Retry,Ignore; 3=Yes,No,Cancel; 4=Yes,No; 5=Retry. Icons are defined by: 16=Critical Icon, 32=Warning Query Icon, 48=Warning Message Icon, 64=Info Icon. The code 4096 makes the window stay on top. Here is what following code looks like:

MsgBox “Hello hello, I’m a message box with a critical Error!”,2+16+4096,”Critical Error”

However, a simple messagebox will not impress anybody. How about a messagebox that reappears every time you close it? To do that, you need a loop. Simple put these two lines around the commands you want to loop:

do
[...]
loop

The commands will now be infinitely repeated until the script is interrupted. To put an interval into the loop, we let the script pause for a specific period of time. This is done with

wscript.sleep number

Replace number with an amount of milliseconds to wait.

Disable Visual Effects While Playing on Windows 7

Tuesday, October 25, 2011 posted by CSch

The visual effects Windows 7 uses may be very pleasing to the eye, however they use up a lot of resources. If you like to play a lot on your computer this is an obstacle you do not need to face since you can disable compositions and visual themes upon starting a program. To do so, right-click the program’s icon and select Properties. Browse the Compatibility tab and have a look at the options it provides:

The most functional options here are Disable visual themes and Disable desktop compositions. If you check their boxes, these two options will be triggered upon starting the program and deactivated again when the program is closed. This way you save a lot of resources which your games or other applications can grab.

Make Caps Lock Behave Like Shift (Windows)

Friday, October 21, 2011 posted by CSch

The minority of Windows users have really ever needed Caps Lock – most of the passages written in capital letters are still done with Shift only. Because of that, most people will find the Caps Lock key rather annoying since everybody has already experienced accidently using it and finding out too late. If you are one of those who could easily abandon the Caps Lock function there is a great registry option for you (with which you can not only change the function of Caps Lock, but of every other key as well). Open the registry by entering regedit in a Run… prompt and browse the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout key. Now create a new value inside of it by right-clicking on the right-hand registry frame, selecting New > Binary Value and naming it Scancode Map. Modify it by double-clicking and enter the following (without the spaces – these will be added automatically; don’t get confused about the four-digit string on each line’s beginning):

00 00 00 00 00 00 00 00 02 00 00 00 2a 00 3a 00 00 00 00 00

This is what it should look like in the window:

After the changes are done, close the registry and reboot your machine. The Caps Lock key should now function like a normal Shift key.

FTP, SFTP and SCP Client for Windows

Friday, October 21, 2011 posted by CSch

If you look for a powerful tool to move files to FTP or SFTP servers or want to move them via SCP on Windows, there is a valuable solution for you called WinSCP. WinSCP is a useful Client able to deal with files in all three ways and comes with an easy-to-understand graphical user interface. You can download it >here<

Just log yourself in with the receiving server’s data, choose the protocol you want to use and you will be presented with a two-framed window that lets you drag and drop files between the servers:

Add Defragment Command to Drives’ Context Menu

Friday, October 21, 2011 posted by CSch

Since it takes a relatively long time to browse the Windows Control Panel to find the items you are in need of, here is a workaround for one of the items you probably use or should use most, the defragmentation of drives. This guide describes how you use the Windows Registry to add the defragment-command right into the drives’ context menu appearing on right-click.
To do so, open the registry by entering regedit into a Run… prompt. What appears is a window parted into two frames, a large arrangement of directories (keys) on the left and their contents on the right. Browse the following key in the left frame:
HKEY_CLASSES_ROOT\Drive\shell
Now right-click the shell key, select New > Key and name it runas. Runas (run as…) defines a new entry in the context menu which lets you open a file, in our case a drive, with a certain application. Look at the contents of runas and double-click the (Default)-value. Change it to the name you want to be displayed in the menu, e.g. Defragment Drive.

Now right-click the created runas-key and create another key inside of that, call it Command. The value inside of that key determines which action should be run upon using the option.

Now you basically could enter any command you can enter in a Windows command line. For defragmentation, the command is defrag followed by the drive and a number of possible switches. To look up which switches are possible, enter defrag -? into a command line. The switch characters are then added to the command lead by a hyphen, as the question-mark before. I think defrag %1 -Uv is basically a good option, so I change the (Default)-value to defrag %1 -Uv. After that, close the registry and right-click a drive and use your newly created defragment-command:

Set a custom boot message on Windows 7

Thursday, October 20, 2011 posted by CSch

On Windows 7 there is an option that displays a text message to the user of the computer on system start-up. This message is configurable in the Local Security Policy which you can access over the start menu’s program search bar. Once in there, expand Local Policies on the left frame of the window and select Security Options. There, find the two entries named message title for users attempting to log on and message text for users attempting to log on.

As the names say, the value of the title message is later displayed as the title, same goes for the text. The text can hold an infinite amount of lines and approximately 94 characters in one line. Close the window after you have specified your desired entries.

Both of these settings are also available in the Windows Registry. To find them, open the registry by typing regedit into the Run… prompt and browse the HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Current Version\Policies\System key. There, the legalnoticecaption and the legalnoticetext values are stored. These are the registry storages for the values you entered in the Local Security Policy window.

Unpack Compressed Files with WinRar

Thursday, October 20, 2011 posted by CSch

While working with your computer you surely have come across files in the .zip or .rar format. These are so called packed or compressed files, their function is to store multiple files and/or folders into one single file and compress them so they are easier to send and waste less space. Windows has a built-in function to pack and unpack files: to compress files, just right-click them and select Send to > Compressed (zipped) folder. To uncompress, right-click the zipped file, select Extract all… and choose a directory where to put the uncompressed folder. However there is a more powerful tool called WinRar which is easy to handle, has a bunch of useful functions and also supports another compressing format, .rar which is safer than zipped compression if provided with a password. WinRar is downloadable for free as a 30-day trial version and reminds you to buy the full version after 30 days but is still usable then. You can download the appropriate version for your system here:
http://www.win-rar.com/download.html

Double-click the downloaded file and click Install on the appearing window. The next window displays WinRar’s configuration. The checkbox-filled panel on the left determines which formats your computer is supposed to open with WinRar. Usually all predefined settings should be alright, so click on OK.

On the next screen, click on Done to finish installation. Nearly all compressed files are now being associated with WinRar and have adopted its icon:

Uncompress files associated with WinRar by double-clicking them and drag-and-dropping its content anywhere on the screen or clicking on Extract To and choosing the target directory.

To compress files, just select the ones you want, right-click them and choose to either compress them to a .rar archive immediately or to add them to another archive (.zip or whatever you want) with more detailed options.

Disable “Send to” Option on Windows

Wednesday, October 19, 2011 posted by CSch

When you right-click any object on a Windows system, there is the option Send to which is able to literally send objects to other computers by automatically opening a new mail and attaching the chosen file as attachment, process them with other programs selectable from a list, or just moving the file to a different location (hold the Shift key when right-clicking to enable more options to Send to). The common user however does not use this function really often, in fact, he may also find it annoying since it might cause short freezes on slower computers if one accidently hovers the mouse over it and thus makes it load a list of applications. But as for every other problem on your computer there is also a solution for this one, disabling the Send to command with the registry.
To do that, open your registry by entering regedit in to a Run… prompt and direct it to the HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\Send To key.

Now the default value that is found in that key is

{7BA4C740-9E81-11CF-99D3-00AA004AE837}

If you ever want to revert your setting the easiest way is to just save this value somewhere safe, since the thing you need to do to disable the Send to command is to double-click the value and remove the string so that it is empty. Leave the registry afterwards and the command should no longer appear on right-clicking.

More Options on Right-click (Windows 7)

Wednesday, October 19, 2011 posted by CSch

There is a feature in Windows 7 that allows access on more options on right-click with any file, just by holding the Shift key while clicking.

The shift option alters the menus of nearly every file to open. For example, it adds the Run as different user and Copy as path options to executables, the Open in new process, Open command window here and Copy as path options to folders and many different new options such as the libraries to the Send to option.