Kromsian

//Kromsian
Kromsian

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Kromsian
    Participant
    Post count: 4

    Hello,

    im using similar way with IE Reset, where i didnt figure out how to check Delete Personal data,
    so i’m calling reset function, and then send 3 keys to the window , it will tick what i want and click ok for reset, hope it helps.

    Keys combination are here :
    https://msdn.microsoft.com/en-us/library/aa266279(v=vs.60).aspx

    Scipt part looks like this :

    #call IE reset
    Execute-Process -Path “C:\Windows\System32\RunDll32.exe” -Parameters “InetCpl.cpl,ResetIEtoDefaults” -NoWait
    Start-Sleep -s 5
    Send-Keys -WindowTitle ‘Reset Internet Explorer Settings’ -Key “%P”
    Send-Keys -WindowTitle ‘Reset Internet Explorer Settings’ -Key “%r” -WaitSeconds 5
    Send-Keys -WindowTitle ‘Reset Internet Explorer Settings’ -Key “%c”

  • Kromsian
    Participant
    Post count: 4

    Hello,
    sure , here it is 🙂

    $a=(Show-InstallationPrompt -Message “Restart will be required after the installation, do you want to continue?”-ButtonRightText “No” -ButtonLeftText “Yes”)
    if ($a -eq “No”) {Exit-Script -ExitCode 1603}

  • Kromsian
    Participant
    Post count: 4

    Thank you very much, that was easy 🙂

Viewing 3 posts - 1 through 3 (of 3 total)