Category Archives: Howto Tutorials (EN)

Knowledge Network for Tutorials, Howto’s, Workaround, DevOps Code 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 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.

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

@ECHO OFF
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.

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 Spotlight working, setting – Privacy – Background apps must be activated.

Setting: Allow run apps in the background
Windows 10 Blickpunkt Reparieren

IP address command to show global and local IPs

Commands to show the global Internet IP address and the local IPv4 or IPv6 addresses in the CLI and in the terminal

Display the global IP with which I surf in the Internet, this does simply in the command line for Windows, Linux and macOS

Show my IP address with which I surf in the internet. Run the following command in the Linux terminal to output the public IP address.

$ curl echo.ipline.ch

To show the local private IP address with the following command:

$ /sbin/ifconfig ens192 | grep 'inet' | cut -d: -f2 | awk '{print $2}'

Note. output from Debian 11 in System Locale LANG=en_US.UTF-8.

For Linux operating systems installed in German:

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

Note: ipconfig is deprecated, for current distributions, such as Debian, Ubuntu or Rocky and Fedora, the ip command is used.

This command show IPv4 addresses using -4:

$ ip -4 addr

The clear and concise output 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:]+'

The “hostname” command will also show the IP address:

$ hostname -i

Show IP addresses on macOS


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

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

The hostname command is also available on macOS.

$ hostname -I

Show IP addresses on Windows

Windows use ipconfig to show IP address

Show the local network configuration in Windows command prompt.

C:\> ipconfig /all

If only the IPv4 addresses should be output.

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

Individual values can be queried using Windows management interface commands.

C:\> wmic NICCONFIG GET IPAddress

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

C:\> netsh interface ipv4 show address

Get IP addresses in the PowerShell with Get-NetIPAddress

PS C:\> Get-NetIPAddress | ft

With the AddressFamily option, only IPV4 addresses will be displayed.

PS C:\> Get-NetIPAddress -AddressFamily IPv4 | ft

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

Example: show IP address in the PowerShell

Show public IP address and local private IP address in the PowerShell.

$GlobalIP = Invoke-RestMethod -Uri http://echo.ipline.ch
$PrivatIP = $(Get-NetIPAddress -InterfaceIndex 11 -AddressFamily IPv4).IPAddress
Write-Host "My public IPv4 address is:" $GlobalIP
Write-Host "My privat IPv4 address is:" $PrivatIP