• Status: Solved
  • Priority: Low
  • Security: Public
  • Views: 58
  • Last Modified:

Is the VBS code included correct to execute 'Create Restore Point'

Hi,

We have an old VBS that executes a 'Create Restore Point' to Windows 8 Pro.  We wanted to use it for iour Windows 10 Pro computers.  Please the code below, will it execute the "Restore Point" correctly for Windows 10 Pro or what we have to modify?

Code:
Set IRP = getobject("winmgmts:\\.\root\default:Systemrestore")
MYRP = IRP.createrestorepoint ("My Restore Point", 0, 100)

Open in new window

0
rayluvs
Asked:
rayluvs
  • 4
1 Solution
 
Shaun VermaakTechnical Specialist/DeveloperCommented:
Do not know about that VBS but you can use this
cmd.exe /k "wmic.exe /Namespace:\\root\default Path SystemRestore Call CreateRestorePoint "My Shortcut Restore Point", 100, 7", and click 

Open in new window

https://www.windowscentral.com/how-create-system-restore-point-windows-10-simple-double-click
0
 
rayluvsAuthor Commented:
Thanx seems the same as the script i posted....
0
 
rayluvsAuthor Commented:
Can an EE validate the code I placed if ok to use in Windows 10 Pro?
0
 
rayluvsAuthor Commented:
Thank you.

In summary  what I am asking is "if my 2 lines VBS code is correct to run under Windows 10".

Hope this helps clear up what I am looking for.

Thank you ion advance.
1
 
rayluvsAuthor Commented:
Though this was the answer, it doesn't check if the VBS is updated  to Windows 10, I will award since it's an equivalent.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now