Windows 10: Checkpoint-Computer hangs sometimes

Discus and support Checkpoint-Computer hangs sometimes in Windows 10 Installation and Upgrade to solve the problem; Checkpoint-Computer is a command to make a restore point in PowerShell script. Sometimes it repeats "99% Completed" for hours. Does anyone know the... Discussion in 'Windows 10 Installation and Upgrade' started by noellapin, Sep 1, 2020.

  1. noellapin Win User

    Checkpoint-Computer hangs sometimes


    Checkpoint-Computer is a command to make a restore point in PowerShell script.
    Sometimes it repeats "99% Completed" for hours.
    Does anyone know the cause?

    Quick remedy: Making it manually with the Control Panel.
    Not using a script, it always succeeds.
    But I hope to make restore points automatically.


    ---
    I did chkdsk, dism, sfc, stopped anti-virus, erased restore points and shadow copies,
    tried PowerShell ISE and Visual Studio Code, but couldn't get any hint.
    So I made the files below, but it does not solve the problem.
    Also, I think there should be shorter methods to produce the same result.

    [_RestorePoint.bat]
    @set "this=%0%"
    @PowerShell "[Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent.IsInRole[Security.Principal.WindowsBuiltInRole]::Administrator" find /i "True" > nul
    @if ErrorLevel 1
    echo not admin, %this% will exit
    exit


    set /a "loop_count=0"
    :label_loop
    set /a "loop_count=%loop_count% + 1"
    @if %loop_count% gtr 3
    echo time up, when it fails, it fails
    goto label_end


    PowerShell C:\tmp\_RestoreDate.ps1 find /i "new"
    if %ErrorLevel% equ 0 goto label_end
    Reg import C:\tmp\_PermitRestoreTime.reg
    taskkill /f /fi "ImageName eq PowerShell.exe" /fi "WindowTitle eq Administrator: CreatingRestorePoint"
    start "CreatingRestorePoint" /RealTime PowerShell -ExecutionPolicy Unrestricted -OutputFormat XML -WindowStyle Minimized -Command " Checkpoint-Computer -Description 'daily' -RestorePointType 'MODIFY_SETTINGS' "
    timeout 1800 > nul
    taskkill /f /fi "ImageName eq PowerShell.exe" /fi "WindowTitle eq Administrator: CreatingRestorePoint"
    goto label_loop

    :label_end
    PowerShell Get-ComputerRestorePoint
    exit
    [eof]

    [_RestoreDate.ps1]
    $currentUser = New-Object Security.Principal.WindowsPrincipal $ [Security.Principal.WindowsIdentity]::GetCurrent
    $testResult = $currentUser.IsInRole [Security.Principal.WindowsBuiltinRole]::Administrator
    If $testResult -eq $False {
    echo "not admin"
    Exit
    }
    $targetTime = Get-Date.AddMinutes -30
    $ts = $targetTime.ToString "MM/dd/yyyy HH:mm"
    $a = Get-ComputerRestorePoint Select-Object CreationTime
    ForEach $b in $a {
    $c = $b.CreationTime
    $d = $c.ToString
    $e = $d.SubString 0, 14
    $f = $e + '-00:00' #using local time not utc
    $g = [DateTime]:Checkpoint-Computer hangs sometimes :parseExact $f, 'yyyyMMddHHmmsszzz', $null
    $gs = $g.ToString "MM/dd/yyyy HH:mm"
    if $g -gt $targetTime {
    Write-Output $ 'new restore point:' + $gs + ' > now - 30min:' + $ts
    } else {
    Write-Output $ 'old restore point:' + $gs + ' <= now - 30min:' + $ts
    }
    }
    [eof]

    [_PermitRestoreTime.reg]
    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore]
    "SystemRestorePointCreationFrequency"=dword:00000001
    [eof]

    :)
     
    noellapin, Sep 1, 2020
    #1
  2. johngalt Win User

    Help with VM n Checkpoints pls!!


    Can you detail the steps you took in creating a checkpoint?
     
    johngalt, Sep 1, 2020
    #2
  3. Smiley1 Win User
    Checkpoint VPN on Windows firewall app list???


    But I don't have Checkpoint VPN installed on my computer. I can't find any sign of it.

    Is this something that comes bundled with Windows 10? Should I remove the check marks from the boxes in the Windows Firewall settings? I have Checkpoint VPN and Checkpoint.VPN on the list.

    Sorry if this is a silly question, I'm fairly new to Windows 10 and I haven't used the Windows firewall in years. I just recently uninstalled ESET Smart Security and it used to show a list of apps connecting to the internet. I don't recall ever seeing Checkpoint anywhere in ESET's settings either.
     
    Smiley1, Sep 1, 2020
    #3
  4. Checkpoint-Computer hangs sometimes

    Windows 10 Search hangs

    Hi,

    To isolate your issue, please provide us the following information:

    • Were there any changes made on your computer before this issue came up?
    • What are the troubleshooting steps you have done so far?
    Furthermore, we suggest that you follow the steps provided by Parth P Patel.

    Let us know how it goes.
     
    Melowin Mar, Sep 1, 2020
    #4
Thema:

Checkpoint-Computer hangs sometimes

Loading...
  1. Checkpoint-Computer hangs sometimes - Similar Threads - Checkpoint Computer hangs

  2. sometime why computer hang?

    in Windows 10 Gaming
    sometime why computer hang?: update bios and window update help?any expert can solve? https://answers.microsoft.com/en-us/windows/forum/all/sometime-why-computer-hang/4c61e969-d9cb-4295-8595-7695bbc2460a
  3. sometime why computer hang?

    in Windows 10 Software and Apps
    sometime why computer hang?: update bios and window update help?any expert can solve? https://answers.microsoft.com/en-us/windows/forum/all/sometime-why-computer-hang/4c61e969-d9cb-4295-8595-7695bbc2460a
  4. sometime why computer hang?

    in Windows 10 BSOD Crashes and Debugging
    sometime why computer hang?: update bios and window update help?any expert can solve? https://answers.microsoft.com/en-us/windows/forum/all/sometime-why-computer-hang/4c61e969-d9cb-4295-8595-7695bbc2460a
  5. Server hangs when deleting checkpoints

    in Windows 10 Gaming
    Server hangs when deleting checkpoints: We have Windows failover cluster setup with 3 Windows 2019 hosts running Hyper-V. They all connect to shared storage on HP MSA 2062 iSCSI SAN using 10GB ports. When deleting checkpoints on one VM causes other VMs on any of the hosts to be non responsive extremely slow . It...
  6. Server hangs when deleting checkpoints

    in Windows 10 Software and Apps
    Server hangs when deleting checkpoints: We have Windows failover cluster setup with 3 Windows 2019 hosts running Hyper-V. They all connect to shared storage on HP MSA 2062 iSCSI SAN using 10GB ports. When deleting checkpoints on one VM causes other VMs on any of the hosts to be non responsive extremely slow . It...
  7. Server hangs when deleting checkpoints

    in Windows 10 BSOD Crashes and Debugging
    Server hangs when deleting checkpoints: We have Windows failover cluster setup with 3 Windows 2019 hosts running Hyper-V. They all connect to shared storage on HP MSA 2062 iSCSI SAN using 10GB ports. When deleting checkpoints on one VM causes other VMs on any of the hosts to be non responsive extremely slow . It...
  8. My Computer Sometimes Hang and Automatic Restart

    in Windows 10 BSOD Crashes and Debugging
    My Computer Sometimes Hang and Automatic Restart: Recently, my computer has been randomly freezing and restarting while playing games and normal time like hangout with discord. There is no blue screen and no error codes or anything. I have run hard drive tests and ram tests which all come back saying no errors. I have...
  9. My Computer Sometimes Hang and Automatic Restart

    in Windows 10 Gaming
    My Computer Sometimes Hang and Automatic Restart: Recently, my computer has been randomly freezing and restarting while playing games and normal time like hangout with discord. There is no blue screen and no error codes or anything. I have run hard drive tests and ram tests which all come back saying no errors. I have...
  10. My Computer Sometimes Hang and Automatic Restart

    in Windows 10 Software and Apps
    My Computer Sometimes Hang and Automatic Restart: Recently, my computer has been randomly freezing and restarting while playing games and normal time like hangout with discord. There is no blue screen and no error codes or anything. I have run hard drive tests and ram tests which all come back saying no errors. I have...