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-08-21

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-07-25

    Open ftp in explorer from command prompt specifying user and password

    Open a command prompt and enter:To delete a specified network profile type:

    explorer ftp://UserName:Password@ftp.yoursite.com

    2019-07-08

    BitLocker: Unlock partition from command prompt

    Step1: Get Recovery Key

    manage-bde -protectors C: -get

    Step2: Unlock partition

    manage-bde -unlock C: -recoverypassword #####-######-######-######-######

    2019-06-21

    Delete all mapped drives without prompt to confirm

    Use the following command to delete all mapped drives and suppress the prompt message

    net use * /delete /y

    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-06-13

    FIX Screen sharing and file transfer not working in Skype [Windows]

    Open a command prompt and run the commands:

    net stop winnat
    netsh int ipv4 add excludedportrange tcp 50000 60
    netsh int ipv6 add excludedportrange tcp 50000 60
    netsh int ipv4 add excludedportrange udp 50000 60
    netsh int ipv6 add excludedportrange udp 50000 60
    

    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-04-03

    Get license from command prompt

    Open command prompt (as Administrator) and run the follwing command:

    wmic path SoftwareLicensingService get OA3xOriginalProductKey

    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

    2019-01-21

    Microsoft Office: AdxTaskPane (small window) is popping out

    If AdxTaskPane (small window) is popping out, then follow the instructions below:
    • go to File > Options > General > User Interface options
    • check Select Optimize for compatibility
    • restart Office application (Outlook/Excel/Word)