Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- strComputer = "."
- Set objWMIService = GetObject("winmgmts:" _
- & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
- Set colItems = objWMIService.ExecQuery("Select * from Win32_Desktop")
- For Each objItem in colItems
- Wscript.Echo "Wallpaper: " & objItem.Wallpaper
- Next
Add Comment
Please, Sign In to add comment