Guest User

Untitled

a guest
Nov 23rd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. strComputer = "."
  2. Set objWMIService = GetObject("winmgmts:" _
  3. & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
  4.  
  5. Set colItems = objWMIService.ExecQuery("Select * from Win32_Desktop")
  6.  
  7. For Each objItem in colItems
  8.  
  9. Wscript.Echo "Wallpaper: " & objItem.Wallpaper
  10. Next
Add Comment
Please, Sign In to add comment