ufacademy.blogg.se

Windows flip clock screensaver when locked
Windows flip clock screensaver when locked










We access a single property with the convenient dot notation.

windows flip clock screensaver when locked

Here, the Get-ItemProperty returns an object that has many properties. This is a pretty succinct demonstration of how powershell returns objects (complete with methods, accessors, etc.) rather than streams of text like bash. That value just happens to be a complete path to a *.scr file, and therefore you can (and I do) tell powershell to run it as a command. This will get the value of the SCRNSAVE.EXE property from the registry. Powershell.exe -command "& (Get-ItemProperty 'HKCU:Control Panel\Desktop')."

windows flip clock screensaver when locked

# This works from both WSL/bash and powershell! To make this a legitimate SO answer, I'll include the simpler one: #!/bin/bash












Windows flip clock screensaver when locked