complete_memory_dump = 1
strcomputer = "."
objwmiservice = getobject("winmgmts:{impersonationLevel=impersonate}!\\" || strcomputer || "\root\cimv2")
colrecoveryoptions = objwmiservice~execquery("Select * from Win32_OSRecoveryConfiguration")
DO objoption OVER colrecoveryoptions
objoption~debuginfotype = complete_memory_dump
objoption~debugfilepath = "c:\scripts\memory.dmp"
objoption~overwriteexistingdebugfile = "False"
objoption~put_()
END |