Check System Protection via PowerShell?

Page 2 of 2 FirstFirst 12

  1. Posts : 52
    Windows 10
       #11

    Hi All

    Thanks for the replies

    Just one question which might lead to the answer that might solve this thread - Does anyone know of a command perhaps to launch systempropertiesadvanced from a remote powershell - AKA launch powershell from my pc , enter the command and the the remote computers systempropertiesadvanced information is displayed

    Sorry if im a bit unclear
      My Computer


  2. Posts : 13
    WIN 10
       #12

    for a local machine.
    PS C:\WINDOWS\system32>SystemPropertiesProtection

    I would try to run a reg query on the remote machine
      My Computer


  3. Posts : 9
    Windows 10 Enterprise 22H2
    Thread Starter
       #13

    Thanks, is there a way to launch this interactively on a remote machine?

    I tried using psexec but it seems to load the properties as a blacked-out window on the remote machine.
      My Computer


  4. Posts : 1,844
    Windows 10 Pro (+ Windows 10 Home VMs for testing)
       #14

    I use the following PowerShell code:
    Code:
    # Check if System Protection is enabled
    $protectionEnabled = Get-ComputerRestorePoint -ErrorAction SilentlyContinue
    if ($protectionEnabled -eq $null) {
        Write-Host "System Protection is not enabled."
    } else {
        Write-Host "System Protection is enabled."
    }

    On my PC this gives the following result:
    Check System Protection via PowerShell?-powershell-is_system_protection_enabled.png

    Obviously it would need to be amended for use against remote devices.

    Hope this helps...
    Last edited by RickC; 10 Apr 2024 at 10:57.
      My Computer


  5. Posts : 9
    Windows 10 Enterprise 22H2
    Thread Starter
       #15

    Thank you so much for the code.
    I have a machine that I just manually checked, I will run it against that machine (amended for remote machines of course) and let you know if the output matches what I am expecting.
      My Computer


  6. Posts : 9
    Windows 10 Enterprise 22H2
    Thread Starter
       #16

    Thank you all for your help, unfortunately I was unable to find and use a solution before the deadline so we ended up checking each machine manually.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 19:40.
Find Us




Windows 10 Forums