none
Get-Computerrestorepoint Properties RRS feed

  • Question

  • Hey Scripting Guys !

    Question about properties and passing variables to / from Get-ComputerRestorePoint to Restore-computer CMDLT

    basically I need this function to work...  

    $restorepoint = Get-ComputerRestorePoint(.sequencenumber) | Where-Object {$_.Description -eq "IE11INSTALL"}

    echo $restorepoint

    Restore-Computer -RestorePoint $restorepoint

    I was hoping that the $restorepoint variable would return the sequence #, but it returns all the contents of the get-computerRestorepoint  

    Is there a way I can get it to return ONLY the Sequence that Is associated with the particular restore point called "IE11INSTALL" 

    This way I can use the variable it returns on the -Restorepoint pass thru

    thanks !

    jawman1972

    • Moved by Bill_Stewart Tuesday, November 7, 2017 10:53 PM This is not "teach me PowerShell basics" forum
    Wednesday, October 4, 2017 1:53 PM

All replies