User Tools

Site Tools



Auto startup folders in Windows 10

In the explorer, type:

  • shell:startup for the user's folder,
  • shell:common startup for the folder common to all users.

The programs put in this folders are launched when opening a Windows 10 session.

Port 80 used under Windows 10

Despite the user has no launched an HTTP server, the port 80 is in use, as can be seen with netstat. This is due to a service called W3SVC (group iissvcs).

Don't know what the purpose of this service is (don't really search…). Deactivating it seems not to be a problem…

Searching for a file

To retrieve only files with a given name, type system.filename:<file name> in the search text box from the file explorer (you might also retrieve files which name begin with the given pattern).

The 'hosts' file

The hosts file will be found under Windows at C:\Windows\System32\drivers\etc\hosts. This file can be mklinked (mklink C:\Windows\System32\drivers\etc\hosts …).

For the modification in this file to be taken into account, it could be necessary to clear the DNS cache, by launching ipconfig /flushdns.

'bash' with Windows 10 (WSL)

Reminder on how to get bash under a french Windows 10.


  • Search Développeur,
  • launch Pour les paramètres du développeur,
  • select Mode développeur,
  • confirm Activer le mode développeur ? (click on Oui),
  • search fonctionnalités Windows,
  • launch Activer ou désactiver des fonctionnalités Windows,
  • select Sous-système Windows pour Linux (bêta),
  • reboot,
  • search and launch bash,
  • follow instructions.

aptitude is installed (it seems no more to be the case with the last version of Windows, so you have to install it with apt-get), so you can use it as installation tool (launch with sudo).

The root installation directory of this (GNU/)Linux is at :


To manage this application, use the lxrun command (as Administrator). See below for an example.


Under a DOS as Administrator :

  • lxrun /uninstall /full to delete the application and the home directory,
  • lxrun /install to install the application, or click the shortcut to bash if it remains from a previous installation.

'Path' conflict

It is possible to launch under this bash native Windows commands, and, by default, the default path have some entries which point to Windows system. This can lead to some problem (for example, npm doesn't work properly).

To avoid that the path points to Windows system, set or add following key to the Window registry : HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss\AppendNtPath=dword:00000000.

You have to reopen bash console in order for this to work.

Mounting removable drives

Removable drives (or TrueCrypt drives) are not mounted by default.

To mount such a drive:

sudo mount -t drvfs <drive>: <mountpoint>

Logged in with a temporary account


If Windows is unable to connect to your usual account and instead logged you in a temporary account, even after restarting the computer, remove the .bak extension from the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\(long number).bak registry entry, after renaming (or deleting) the same entry without the .bak extension, and restart the computer.

Changing account user name

Launch netplwiz.

Assigning drive letter to folder (persistently)


In the registry, at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices, add a string value with, as name, the drive letter with the colon (:), and, as value, \??\ followed by the folder (example : \??\C:\Documents and Settings\All Users\Shared Documents). Reboot.

The assignation of a drive letter to with subst command does not survive to a boot.

computing/environments/windows.txt · Last modified: Tue Jan 1 11:06:20 2019 (01/01/19) by Claude SIMON