Category Archives: Howto Tutorials (EN)

Howto Tutorials English Contribution Howto’s and Tutorials technical contribution for Professionals

Fixing Windows Spotlight

How to Fix Windows Spotlight does not change new images

Windows Spotlight is a feature included in Windows 10, that download wallpapers from Bing automatically, so you alternately see a new background image on the lock screen when you sign in.

The only downside to Microsoft Windows Spotlight is that sometimes it stops working or you will notice it stuck on the same picture. Unfortunately, Windows 10 doesn’t include an option to reset this feature. However, it is possible to fix Windows Spotlight settings using this simple workaround.

Reseting Windows Spotlight

To do this, open settings, click on -> Personalization -> Lock screen, here change the background to picture.

open settings, click on - Personalization and - Lock screen, here change the background to picture.

Then right-click on Desktop -> New -> Text document and insert the following content:

IF EXIST "%LOCALAPPDATA%\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\Settings\settings.dat" (
    DEL /F /S /Q /A "%LOCALAPPDATA%\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets"
    DEL /F /S /Q /A "%LOCALAPPDATA%\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\Settings"
 ) ELSE (
    Echo The file settings.dat was not found.
PowerShell -ExecutionPolicy Unrestricted -Command "& {$manifest = (Get-AppxPackage *ContentDeliveryManager*).InstallLocation + '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register $manifest}"

Click on File -> Save As, and save as Filename spotlight.bat.

Click on File - Save As, and save as Filename spotlight.bat.

Right-click on mouse over the spotlight.bat batch file will context menu opens, select run as administrator here.

Now restart your computer. Then open settings again and switch to Windows Spotlight under Personalization -> Lock screen.

As soon as these steps are carried out, you can lock the computer be hit the Win + L keys, now lock screen presenting new Bing images.

Note: To Windows Spotlight working, setting – Privacy – Background apps must be activated.

To Windows Spotlight working, setting - Privacy - Background apps must be activated.
Setting: Allow run apps in the background
Windows 10 Blickpunkt Reparieren

Show my IP address on the Internet

Output the global Internet address in the shell, query local IPv4 and IPv6 addresses in the terminal

Determining the global IP with this one is surfing the Internet, this is also possible in the command line, for Windows, Linux and macOS.

Run the following command in the Linux terminal to query the public global IP address:


Determine the local private IP address with the following command:

$ /sbin/ifconfig eth0 | grep 'inet addr' | cut -d: -f2 | awk '{print $1}'

For Linux operating systems installed in German:

$ /sbin/ifconfig eth0 | grep 'inet Adresse' | cut -d: -f2 | awk '{print $1}'

Note: ipconfig is deprecated, for current distributions, such as Ubuntu 18.04 or CentOS 7 and Fedora, the ip command is applied, this command returns IPv4 addresses:

$ ip -4 addr

The slightly clearer and also more colorful version as follows:

$ ip -4 addr | grep -oP '(?<=inet\s)\d+(\.\d+){3}'

Only IPv6 addresses should be output:

$ ip -6 addr | grep -oP '(?<=inet6\s)[\da-f:]+'

Also, the hostname command can provide useful values:

$ hostname -i | awk '{print $3}'

Show IP address on macOS

macOS returns the IP address from the terminal with the following command.

$ /sbin/ifconfig en0 | awk '/inet /{print $2}'

And the hostname command is also available on macOS:

$ hostname -I

Find Windows IP address

Windows uses ipconfig to output the IP addresses.

C:\> ipconfig /all

Also only IPv4 addresses can be queried:

C:\> ipconfig | findstr /i "ipv4"

To reduce the amount of information that ipconfig generates, command wmic can help.

C:\> wmic NICCONFIG GET IPAddress

This query e.g. outputs the IP address of each interface.

C:\> netsh interface ipv4 show address

View IP addresses in the PowerShell with Get-NetIPAddress, useful also in scripts

PS C:\> Get-NetIPAddress | Format Table

Again, only IPv4 addresses can be queried:

PS C:\> Get-NetIPAddress -AddressFamily IPv4 | Format Table

By typing Get-NetIPAddress -? all parameters to the cmdlet are output.

View public IP address and local private IP address in powershell

$GlobalIP = Invoke-RestMethod -Uri
$PrivatIP = $(Get-NetIPAddress -InterfaceIndex 11 -AddressFamily IPv4).IPAddress
Write-Host "Meine öffentliche IPv4 Adresse ist:" $GlobalIP
Write-Host "Meine private IPv4 Adresse ist:" $PrivatIP