• StaySquared@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    3
    ·
    edit-2
    6 months ago

    It provides correct answers.

    I will give you an example, this was for a recent project we had with a machine that requires to be connected to the internet at all times through a VPN connection.

    How to setup Windows VPN to automatically reconnect after connection loss using PowerShell?

    Using PowerShell Script
    Create a PowerShell Script to Monitor and Reconnect VPN:
    
    Open Notepad and paste the following script:
    In powershell
    
    $vpnName = "Your_VPN_Connection_Name"
    $username = "your_username"
    $password = "your_password"
    
    while ($true) {
        $vpnConnection = Get-VpnConnection -Name $vpnName
        if ($vpnConnection.ConnectionStatus -ne "Connected") {
            rasdial $vpnName $username $password
        }
        Start-Sleep -Seconds 60
    }
    Replace $vpnName, $username, and $password with your VPN connection details.
    Save this file with a .ps1 extension, e.g., vpn_reconnect.ps1.
    Set Up Task Scheduler to Run the PowerShell Script:
    
    Follow the same steps as in Method 2, but when selecting the program to start, use powershell.exe and add the script path as an argument.
    Example: powershell.exe -File "C:\path\to\your\vpn_reconnect.ps1"
    
    • ebu@awful.systems
      link
      fedilink
      English
      arrow-up
      14
      ·
      edit-2
      6 months ago

      it’s funny how you say “it provides correct answers”, dump six paragraphs of half-baked, malformatted instructions (that, if followed, spawn an endless stream of non-terminating powershell processes), then ten minutes later admit in a different comment that “sometimes the information it provides is incorrect”

      wait no funny isn’t the correct word is it

      • froztbyte@awful.systems
        link
        fedilink
        English
        arrow-up
        7
        ·
        6 months ago

        bloody amazing to see them airdrop in pitching perplexity when literally last week perplexity was caught pants down stealing

        llm systems so good they still need human reputation-washers!