2018-04-19

Rebuild Font cache


  1. open services and stop and disable the following services:
    1. Windows Font Cache Service
    2. Windows Presentation Foundation Font Cache #
  2. go to C:\Windows\ServiceProfiles\LocalService\AppData\Local
    1. delete the FontCache*.dat
    2. open Font Cache folder and delete all files and folders in it
  3. restart end enable the services

Stop Command line window to open new window when running a exe / command

Open a command line with elevated rights (run as admin) and run your command inside this window. It should not open an additional window

Synchronise computer clock with domain \ server clock

  • sync clock with the domain
    • NET TIME /DOMAIN /SET /Y
  • sync clock with a specified domain
    • NET TIME /DOMAIN:domainname /SET
  • sync clock with a specified time server from another domain
    • NET TIME /RTSDOMAIN:domainname /SET
  • sync clock with a specified server \ computer
    • NET TIME \\servername /SET /YES

2018-04-18

Show user name on computer name (on desktop) instead of My Computer or This PC


  • open registry editor
  • go to HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}
  • edit LocalizedString
    • %COMPUTERNAME% display computer name
    • %USERNAME% on %COMPUTERNAME% display user name on computer name

Get computer name from command line

Open command line and run the command below
  • Method 1:
    • hostname
  • Method 2:
    • set | findstr COMPUTERNAME

Get time and date of logon / domain server from the command line


  • Get time/date from logonserver
    • NET TIME %LOGONSERVER%
  • Get time/date from domain
    • NET TIME /DOMAIN
  • Get time/date from the specified domain
    • NET TIME /DOMAIN:domainname

2018-04-13

Make Command Prompt transparent [Windows 10+]


  • Open command prompt
  • right-click on window menu and choose Properties
  • in the Options tab select "Use legacy console"
  • close and re-open the command prompt
  • from the Colors tab choose Opacity level

Keyboard shortcuts:

  • Increase Transparency: Ctrl + Shift + Plus (+)
  • Decrease Transparency: Ctrl + Shift + Minus (-)