2019-12-02

Update Ubuntu to latest version from the Terminal

Open a terminal window and run:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

Get Ubuntu version from the terminal

Open a terminal window and enter the following command:

lsb_release -a

2019-11-04

2019-08-14

Show / delete Wi-Fi profiles from command prompt

To show the network profiles type:

netsh wlan show profiles

To delete a specified network profile type:

netsh wlan delete profile name="profile name"

To delete al network profiles type:

netsh wlan delete profile name=*

2019-08-13

Notepad header & footer settings

Go to File > Page Setup and enter the commands as you need:

  • &l       Left-align the characters that follow
  • &c      Center the characters that follow
  • &r       Right-align the characters that follow
  • &d      Print the current date
  • &t       Print the current time
  • &f       Print the name of the document
  • &p      Print the page number
  • remove IMG_ from files / rename file from command prompt or PowerShell

    Open command prompt and enter:

    ren "img_*.jpg" "////*.jpg"

    Open PowerShell and run:

    get-childitem *.jpg | foreach { rename-item $_ $_.Name.Replace("IMG_", "") }

    2019-08-12

    Fix Windows Mobile Device Center under Windows 10

    Open Services and go to:

    • Windows Mobile-2003-based device connectivity
      • go to Log On and change to Local System Account
      • restart service
    • Windows Mobile-based device connectivity
      • go to Log On and change to Local System Account
      • restart service

    Open an elevated command prompt and run:

    REG ADD HKLM\SYSTEM\CurrentControlSet\Services\RapiMgr /v SvcHostSplitDisable /t REG_DWORD /d 1 /f
    REG ADD HKLM\SYSTEM\CurrentControlSet\Services\WcesComm /v SvcHostSplitDisable /t REG_DWORD /d 1 /f
    

    2019-07-31

    Fix Error "The Group Policy Client service failed the logon. Access denied"

    When a specified user tried to login he gets the following error:
    The Group Policy Client service failed the logon. Access denied

    Fix:

    • Control Panel -> System -> Advanced system Settings
    • System Properies -> Advanced -> User Profiles -> Settings
    • Delete the specified user profile (and restart the workstation)


    2019-06-21

    FIX Adobe Reader: A 3D data parsing error has occurred


    • Go to C:\Users\UserName\AppData\Local\Adobe\Acrobat\
    • Here you will find a folder named 2015 or DC which you can rename or delete
      • (eg: 2014.bak or DC.bak)
    • re-open the document

    FIX Adobe Reader 3D content has been disabled


    • Go to Edit -> Preferences -> 3D & Multimedia
      • Check Enable playing 3D content

    2019-04-12

    Get powershell version

    Open PowerShell and run the following command:

    $PSVersionTable.PSVersion

    Find last password change of specified user

    Open powershell and run the following command:

    Get-ADUser username -properties passwordlastset

    2019-03-04

    SAP: selected text automatically deselects

    Uncheck 'Quick Cut and Paste' option in SAP ECC












    Note: app restart required

    2019-02-20

    Sort songs by band, year, album, title in WinAmp

    Go to Preferences > Titles > Use advanced  title formatting when possible and enter one of the following
    • %artist% - %year% - %album% - %tracknumber% : %title%
    • $if(%artist%, %artist% - %year% - %album% - %tracknumber% : %title%, $filepart(%filename%))
    or in the comment I put the country of the band and used one of this
    • %artist% [%comment%] %year% : %album% : %tracknumber% - %title%
    • $if(%artist%, %artist% '['%comment%']' %year% : %album% : %tracknumber% - %title%, $filepart(%filename%))
    • $if2((%artist% [%comment%] %year% : %album% : %tracknumber% - %title%), $filepart(%filename%))

    2019-02-06

    Windows: Auto logon


    • Open Registry Editor
    • go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
    • AutoAdminLogon ="1"
    • DefaultUserName="Administrator"
    • DefaultPassword="Pa$$w0rd"


    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
    "AutoAdminLogon"="1"
    "DefaultUserName"="Administrator"
    "DefaultPassword"="Pa$$w0rd"

    2019-02-01

    Ubuntu: Install Java from terminal

    Install Java 7:
    sudo add-apt-repository ppa:webupd8team/java
    sudo apt-get update
    sudo apt-get install oracle-java7-installer
    

    Download multiple files / splitted archive from one command

    If you have a splitted archived like file.part001.rar to file.part008.rar you cand download all file with this command:

    wget https://myserver.net/files/file.part00{1..8}.rar

    Install Midnight Commander from the terminal

    Open the terminal and run:
    sudo add-apt-repository ppa:eugenesan/ppa
    sudo apt-get update
    sudo apt-get install mc
    

    Ubuntu: Install Google Chrome from the terminal

    Open the terminal and run the following commands:
    wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
    sudo dpkg -i google-chrome-stable_current_amd64.deb
    

    2019-01-30

    Open PowerShell transcripts folder

    explorer split-path -path $profile

    Run Start-Transcript every time you start PowerShell


    • open PowerShell with admin rights
    • display the path to the Windows PowerShell profile
      • $profile
    • check if Windows PowerShell profile has been created on the system
      • test-path $profile
    • to create a profile
      • new-item -path $profile -itemtype file -force
    • open your profile
      • notepad $profile
    • enable the transcript
      • Start-Transcript
    • if you get this error "File c:\Users\YourUserName\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 cannot be loaded because running scripts is disabled on this system", fix it with this:
      • Set-ExecutionPolicy -ExecutionPolicy RemoteSigned