This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import requests | |
| import argparse | |
| import json | |
| from datetime import datetime, timedelta | |
| from plexapi.server import PlexServer | |
| import urllib3 | |
| from urllib3.exceptions import InsecureRequestWarning | |
| # Suppress the InsecureRequestWarning |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Run this script as Administrator | |
| # 1. Setup variables | |
| $userName = $env:USERNAME | |
| $sshPath = "$env:USERPROFILE\.ssh" | |
| $configFile = "$sshPath\config" | |
| Write-Host "Starting SSH environment repair for $userName..." -ForegroundColor Cyan | |
| # 2. Fix ssh-agent service status |