Command line to check if system restore is turned on

Alex Fogerty 66 Reputation points
2020-11-24T02:31:22.433+00:00

Hi guys,

Is there a way to see if System Restore is turned on using the command line? Basically I want to run a batch file remotely so I can check.

Bonus points if you can also tell me how to turn System Restore on using the command line too :)

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,195 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sunny Qi 10,926 Reputation points Microsoft Vendor
    2020-11-24T07:48:47.84+00:00

    Hi @Alex Fogerty ,

    Thanks for posting in Q&A platform.

    You could achieve your goal by PowerShell with administrator privilege.

    To check all available restore points, please run the following command in PowerShell:

    Get-ComputerRestorePoint

    To display the status of a system restore, please run the following command in PowerShell:

    Get-ComputerRestorePoint -LastStatus

    To turn on system restore on the specified drive, please run the following command in PowerShell:

    Enable-ComputerRestore -Drive "C:\"

    To turn on system restore on the multiple drives, please run the following command in PowerShell:

    Enable-ComputerRestore -Drive "C:\", "D:\"

    To turn on system restore on the specified drive, please run the following command in PowerShell:

    Disable-ComputerRestore -Drive "C:\"

    To turn on system restore on the multiple drives, please run the following command in PowerShell:

    Disable-ComputerRestore "C:\", "D:\"

    For more details, please refer to the following Microsoft official documents:

    Get-ComputerRestorePoint

    Disable-ComputerRestore

    Enable-ComputerRestore

    Best Regards,
    Sunny


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful