User Tools

Site Tools


computing:environments:windows

Windows

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

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

Activation

  • 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 :

C:\Users\<user>\AppData\Local\lxss

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

Reinstallation

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.

Logged in with a temporary account

(From https://appuals.com/best-fix-how-to-fix-temporary-profile-issues-in-windows-10/.)

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)

(From http://superuser.com/questions/29072/how-to-make-subst-mapping-persistent-across-reboots.)

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: Mon Aug 28 17:04:43 2017 (28/08/17) by Claude SIMON