Technical Discussion
  >> Windows Issues


Register (or login) on our website and you will not see this ad.


  Print Thread
Standard User ConorMK
(knowledge is power) Tue 21-Jan-20 14:22:58
Print Post

System restore


[link to this post]
 
I want to use GPO to enable system restore but having tried a Powershell script i cant get it to work.

Does anyone know how to create a .bat file that will do this?

Conor

There is absolutely no substitute for a genuine lack of preparation
BQM
Standard User camieabz
(sensei) Tue 21-Jan-20 14:43:24
Print Post

Re: System restore


[re: ConorMK] [link to this post]
 
Not sure if this helps, but when setting up my KB software shortcuts I had to create VB script files to call the batch files (or suffer a DOS box on the screen everytime I hit a shortcut key).

The jist of the script file and batchfile in image attached. Forum did NOT like the code, despite code or pre tags.

https://ibb.co/Z6pKTVn

In essence, I could call the file with batch, but it throws up a dos box, so then you call a script to call a batch. A split second's delay is better than dos boxes everywhere etc.

The 'Run chr (34)' (no space in the code - forum software not happy) tells the script to stay open and run the batchfile before terminating.

As for making a batchfile for running a powershell script, it should be elementary batchfile stuff. The tricky bit is where and how it gets executed. Is it on startup? For all users? Conditional?
  Print Thread

Jump to