How to delete a specified system restore point using WMI?

Y

yxq

I got the sysmte restore point using SystemRestore class, but how delete a
systemrestore point?

Private objWMI As Object
Private colItems As Object
Private objItem As Object


objWMI = GetObject("WinMgmts:/root/default")
colItems = objWMI.ExecQuery("SELECT * From SystemRestore")
For Each objItem In colItems

Next
 
H

Herfried K. Wagner [MVP]

yxq said:
I got the sysmte restore point using SystemRestore class, but how delete a
systemrestore point?

Private objWMI As Object
Private colItems As Object
Private objItem As Object


objWMI = GetObject("WinMgmts:/root/default")
colItems = objWMI.ExecQuery("SELECT * From SystemRestore")

The 'SystemRestore' WMI class doesn't support deleting a restore point.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top