Create Windows 8 restore point programmatically
Moderator: DosItHelp
-
- Posts: 33
- Joined: 01 Jan 2013 12:09
Create Windows 8 restore point programmatically
Does anyone have any DOS code for creating a system restore point in Windows 8? I have done a Google-search for this but no luck.
Re: Create Windows 8 restore point programmatically
Must be run as admin:
Code: Select all
wmic /namespace:\\root\default path SystemRestore call createrestorepoint "wmic auto backup", 100, 12
Re: Create Windows 8 restore point programmatically
jwoegerbauer wrote:Does anyone have any DOS code for creating a system restore point in Windows 8? I have done a Google-search for this but no luck.
Well if you were Google searching for "DOS code" it will never find it.
-
- Posts: 33
- Joined: 01 Jan 2013 12:09
Re: Create Windows 8 restore point programmatically
Squashman wrote:Well if you were Google searching for "DOS code" it will never find it.
For how stupid do you hold me? BTW: I've tested it. Searching Google for "DOS code" delivers 318,000,000 results.
-
- Posts: 33
- Joined: 01 Jan 2013 12:09
Re: Create Windows 8 restore point programmatically
foxidrive wrote:Must be run as admin:Code: Select all
wmic /namespace:\\root\default path SystemRestore call createrestorepoint "wmic auto backup", 100, 12
Thanks a lot. Worked like a charm.
Re: Create Windows 8 restore point programmatically
jwoegerbauer wrote:Searching Google for "DOS code"
Squashman was saying, quite accurately, that it is a poor search term when searching for a command line solution.
Re: Create Windows 8 restore point programmatically
foxidrive wrote:Must be run as admin:Code: Select all
wmic /namespace:\\root\default path SystemRestore call createrestorepoint "wmic auto backup", 100, 12
Hello!
What does the 100,12 mean? Thanks!
UPDATE:
I finally got it. This link describes the numbers 100 (EventType) and 12(RestorePointType):
https://msdn.microsoft.com/en-us/library/windows/desktop/aa378847(v=vs.85).aspx
Meerkat
Last edited by Meerkat on 13 Dec 2015 08:32, edited 1 time in total.
Re: Create Windows 8 restore point programmatically
Mr Google doesn't want to tell me either.