How to change the drive letter in Windows

For different versions of Windows, the procedure for changing the drive letter is almost the same.

To change the drive letter in Windows 8, click “Start“, type “Control Panel” on the screen, select “Control Panel” – “Administration” – “Computer Management” – “Disk Management“.
On the right disk, right-click the bears and select “Change Drive Letter and Path …“, click “Change…” in the window that opens, select “Assign the folowing drive latter” if it is not selected and select the desired letter, click “OK” to finish. Click “Yes” to confirm.

You can also open the Computer Management window by typing “compmgmt.msc” on the command line or in the search bar.

Windows Hot Keys List

Here is the list of Windows hot keys:
Win + E (Explorer)
Win + Pause (Properties of the system)
Win + F1 (Windows Help)
Win + F (Search for files)
Win + Сtrl + F (Computer search)
Ctrl + Esc или Win (Menu Start)
Ctrl + Shift + Esc (Task Manager)
Win + D (Collapse all windows)
Win + R (The Run window)
Win + L (Block)
Printscreen (Screenshot)
Alt + Printscreen (Screenshot of the active window)
Win + Tab или Win + Shift + Tab (Switch between windows)
Alt +Tab (Easy switching between windows)
Ctrl + N (Creating a new object, document, opening a new window)
Ctrl + P (Printing)
Ctrl + Z (Undo the last action)
Alt + Enter (In some applications, switching to full screen mode and back)
F5 (updating the window)

Work with text:
Ctrl + A (select all)
Ctrl + C или Ctrl + Insert (copy to clipboard)
Ctrl + X или Shift + Delete (cut to clipboard)
Ctrl + V или Shift + Insert (paste from clipboard)
Ctrl + S (saving a document or project)
Ctrl + O (opening an object or document)
Ctrl + Home (move to the beginning of the document)
Ctrl + End (move to the end of the document)
Ctrl + Shift + left/right arrow (text selection by words)
Ctrl + left/right arrow (move the cursor by words)

Working with files:
Alt + Enter (When a selected object in the directory opens its properties)
F2 (object renaming)
Shift + F10 (context menu, like right-click)
Shift + Delete (the irrevocable removal of the object, bypassing the basket)
Enter (similar to double-clicking a mouse)
Delete (object deletion)
Ctrl + click (arbitrary selection)
Shift + click (highlight adjacent objects)
Ctrl + Shift + dragging with the mouse (create a shortcut)
Ctrl + dragging with the mouse (copying an object)
Shift + dragging with the mouse (object movement)

Working with dialog boxes:
Tab (move forward by options)
Shift + Tab (move to options backward)
Ctrl + Tab (moving tabs forward)
Ctrl + Shift + Tab (moving tabs backward)

When inserting a disk into the CD-ROM, the Shift key cancels the autorun of the contents of the disk.

How to remove hiberfil.sys file

The file hiberfil.sys is created and used by the operating system for the correct operation of the sleep mode. When the computer goes into sleep mode, all data from the RAM is stored in this file. The size of this file is usually not less than the amount of computer RAM (RAM).

If you need to delete the hiberfil.sys file, you will have to disable sleep and hibernation on your computer. To do this, open “Control Panel” -> “Power Supply” -> “Power Scheme Setup” and in the window that opens, click “Never” and click “OK” in the opposite window.
Next, you need to type the following command in the command line or “execute” (Windows + R):

powercfg -h off

or

powercfg –hibernate –off

and click “OK”. The hiberfil.sys file will be deleted automatically.
If you suddenly changed your mind and decided to return to hibernation, then you can run the command:

powercfg -h on

These manipulations must be performed on behalf of the administrator.

Setting up a network in Windows via the command line

To begin, open the command line by clicking on the shortcut in the Start menu or typing the command “cmd” in the “Run” line.

Here is an example of viewing the current configuration:

netsh interface ip show config

View a list of network interfaces:

netsh interface ipv4 show interfaces

An example of configuring static parameters for an interface named Ethernet 2:

netsh interface ip set address name="Ethernet 2" static 192.168.0.101 255.255.255.0 192.168.0.1 1

Or so:

netsh interface ipv4 set address name="Ethernet 2" source=static address=192.168.1.2 mask=255.255.255.0 gateway=192.168.1.1
netsh interface ipv4 add dnsserver name="Local" address=8.8.8.8 index=1

Example of obtaining parameters for the Ethernet 2 interface by DHCP:

netsh interface ip set address name="Ethernet 2" dhcp

Example of obtaining the DNS parameters for the Ethernet 2 interface by DHCP:

netsh interface ip set dns "Ethernet 2" dhcp

Export the current configuration to a file:

netsh -c interface dump > d:cfg1.txt

Importing a configuration from a file:

netsh -f d:cfg1.txt

How to schedule shutdown Windows

There are several ways to schedule a Windows shutdown.

1) You can execute the command shown below in the “Run” window (it can also be opened with the WIN+R keys), also on the command line or the PowerShell, for all variants the command is the same:

shutdown –s –t 3600

Where 3600 is the number of seconds after which Windows will shut down and the computer will shut down.
3600 seconds = 1 hour.

Similarly, you can put the computer into hibernation mode if it is available:

shutdown –h –t 3600

To cancel a command, you must:

shutdown /a

2) The second way is to create a simple task in the task scheduler.
Open the Control Panel\System and Security\Administration\Task Scheduler.
Click “Create a simple task …”.
Enter any name for the new task, for example, “Shutdown.”
In the next window, select “Once.”
In the next window, we indicate the time when we need to complete the task.
In the next window, select “Run the program.”
In the line “Program or script:” we indicate the program:

C:\Windows\System32\shutdown.exe

and in the line “Add arguments (optional):” -s
Create a task.

Similarly, you can create a task such as sleep mode by entering “Program or script:” in the line:

C:\Windows\System32\rundll32.exe powrprof.dll,SetSuspendState Sleep

If you want to delete it, in the Task Scheduler window on the left click “Job Scheduler Library” and clicking the right button on the desired task, click “Delete”.

See also my article – Enable or disable Hibernate mode in Windows

Where is auto startup folder in Windows 10?

It took today on Windows 10 to add a shortcut to the program in startup, started looking in the menu, but there is no it.

Therefore, I will describe a couple of options where to find this folder “Startup”.

Option 1) The folder for each user is located separately, for example, in my case (user admin), the path to it is:

C:\Users\admin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

admin can be replaced with the correct user name and paste this path into the address bar of the explorer. The AppData folder is hidden, so if you open folders one by one, you will have to type it manually in the address bar of the explorer.

Option 2) Open the line “Run” in the menu or by pressing Win+R and type:

shell:startup

In this case, the “Startup” folder of the current user will be displayed.
To open the shared folder “Startup” which is valid for all users, type:

shell:common startup

To remove something from the startup, you do not have to delete the shortcut from the Startup folder, you can open the Task Manager with the shortcut Ctrl+Shift+Esc and the “Startup” right-click the desired object and select “Disable“. In this tab, you can also disable objects that are added to the startup registry.

Done.

Turning test mode on and off in Windows 7

Sometimes I had to put unsigned drivers to flash different junk, so I included a test mode in which the installation of unsigned drivers is allowed. If the test mode is disabled, the drivers will stop working again.

You can enable the test mode in Windows 7 from the command line (cmd) or from the “Run” line which is opened by the Win+R key combination.
In any of the lines, you need to run the following command to enable the test mode:

bcdedit.exe -set TESTSIGNING ON

To turn off:

bcdedit.exe -set TESTSIGNING OFF

After each command, you must restart the computer.
When the test mode is enabled, the “Test mode” and the version of the Windows assembly are displayed on the desktop in the lower right corner.

Troubleshooting and Error 0x00000005 after Windows Update from 14.08.13

After installing the Windows updates from August 14, 2013 many users stopped running many applications with the output of the error 0x00000005 or even the operating system stopped loading. In particular, Windows 7 x64. The cause was the installation of the update KB2859537. To fix the error, you can remove it by typing the command:

wusa.exe /uninstall /kb:2859537

09/11/2013 one more update has been issued that causes the same symptoms, we also treat with the removal:

wusa.exe /uninstall /kb:2872339

How to enable Ping in Windows Server

For Windows Server to respond to PING requests, you must enable them in the firewall.

To do this, open the rule in the firewall “File and Printer Sharing (Echo Request — ICMPv4-In)” and tick the “Enabled(Enabled)“, similarly for the sixth version “File and Printer Sharing (Echo Request — ICMPv6-In)“.

In order for the system to respond to PING requests only for specific IP, there is also a rule in the tab in the settings “Scope“, where “Remote IP Address” pushing “Add” specify the desired IP-addresses.

From the command line, you can configure this rule like this:

netsh advfirewall firewall set rule name= "File and Printer Sharing (Echo Request — ICMPv4-In)" new enable=yes action=allow profile=any remoteip=192.168.5.0/24

Either (on / off):

netsh firewall set icmpsetting 8
netsh firewall set icmpsetting 8 disable

From PowerShell like this:

Set-NetFirewallRule -Name FPS-ICMP-ERQ-In -Enabled True -Profile Any -Action Allow