Lists the current desktop settings on a computer.

This script was tested using Python 2.2.2-224 for Microsoft Windows, available from ActiveState.

Python
Edit|Remove
import win32com.client
strComputer = "."
objWMIService = win32com.client.Dispatch("WbemScripting.SWbemLocator")
objSWbemServices = objWMIService.ConnectServer(strComputer,"root\cimv2")
colItems = objSWbemServices.ExecQuery("Select * from Win32_Desktop")
for objItem in colItems:
    print "Border Width: ", objItem.BorderWidth
    print "Caption: ", objItem.Caption
    print "Cool Switch: ", objItem.CoolSwitch
    print "Cursor Blink Rate: ", objItem.CursorBlinkRate
    print "Description: ", objItem.Description
    print "Drag Full Windows: ", objItem.DragFullWindows
    print "Grid Granularity: ", objItem.GridGranularity
    print "Icon Spacing: ", objItem.IconSpacing
    print "Icon Title Face Name: ", objItem.IconTitleFaceName
    print "Icon Title Size: ", objItem.IconTitleSize
    print "Icon Title Wrap: ", objItem.IconTitleWrap
    print "Name: ", objItem.Name
    print "Pattern: ", objItem.Pattern
    print "ScreenSaver Active: ", objItem.ScreenSaverActive
    print "ScreenSaver Executable: ", objItem.ScreenSaverExecutable
    print "ScreenSaver Secure: ", objItem.ScreenSaverSecure
    print "ScreenSaver Timeout: ", objItem.ScreenSaverTimeout
    print "Setting ID: ", objItem.SettingID
    print "Wallpaper: ", objItem.Wallpaper
    print "Wallpaper Stretched: ", objItem.WallpaperStretched
    print "Wallpaper Tiled: ", objItem.WallpaperTiled