{"id":23878328,"url":"https://github.com/adnervl/duowin2login","last_synced_at":"2026-06-17T02:30:19.821Z","repository":{"id":266496407,"uuid":"891116024","full_name":"AdnerVL/DuoWin2Login","owner":"AdnerVL","description":"Automated PowerShell script for remotely uninstalling and reinstalling Duo Authentication for Windows Logon, designed to simplify authentication management across Windows hosts with robust error handling and secure credential management.","archived":false,"fork":false,"pushed_at":"2024-12-12T13:33:10.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-03T21:19:32.699Z","etag":null,"topics":["active-directory","automation-scripts","duo-security","powershell","powershell-script","remote-access-tool"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AdnerVL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-19T18:53:09.000Z","updated_at":"2024-12-12T13:28:59.000Z","dependencies_parsed_at":"2024-12-04T22:15:38.426Z","dependency_job_id":null,"html_url":"https://github.com/AdnerVL/DuoWin2Login","commit_stats":null,"previous_names":["adnervl/duowin2login"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdnerVL%2FDuoWin2Login","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdnerVL%2FDuoWin2Login/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdnerVL%2FDuoWin2Login/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdnerVL%2FDuoWin2Login/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AdnerVL","download_url":"https://codeload.github.com/AdnerVL/DuoWin2Login/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240245909,"owners_count":19771028,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["active-directory","automation-scripts","duo-security","powershell","powershell-script","remote-access-tool"],"created_at":"2025-01-03T21:19:36.845Z","updated_at":"2026-06-17T02:30:19.771Z","avatar_url":"https://github.com/AdnerVL.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🔐 Duo Authentication Reinstallation Script\n\n## 🚀 Overview\nThis PowerShell script automates the uninstallation and reinstallation of the Duo Authentication for Windows Logon application on a remote Windows host.\n\n## 🤖 Disclaimer\n**AI-Assisted Development**\nThis script was created with significant assistance from AI technologies. As the creator is not a professional PowerShell or software developer, the code reflects a collaborative approach between human intent and AI-generated solution.\n\n## ✨ Features\n* 🔄 Remotely uninstall existing Duo Authentication\n* 📥 Download latest Duo Authentication installer\n* 🛠️ Install Duo Authentication with configurable parameters\n* 🛡️ Robust error handling and logging\n* 🧹 Automatic cleanup of temporary files\n\n## 📋 Prerequisites\n* 💻 PowerShell 5.0 or higher\n* 🔑 Administrative access to target Windows machine\n* 🌐 Network connectivity to the remote host\n* 🔐 Valid Duo Security credentials (IKEY and SKEY)\n\n## 🚦 Usage\n\n### 🛠️ 1. Environment Configuration\n* Create a `.env` file in the script directory with your credentials:\n\n```plaintext\nIKEY=your_integration_key\nSKEY=your_secret_key\nDHOST=your-duo-host.com\n```\n\n### 🚀 2. Run the Script\n\n```powershell\n.\\DuoLoginReinstall.ps1 [COMPUTER_NAME]\n```\n\n## 🛠️ Configuration\nThe script now uses environment variables for sensitive information:\n\n* 📦 $duoVersion: Duo Authentication version\n* 🔑 $ikey: Loaded from .env file\n* 🔐 $skey: Loaded from .env file\n* 🌐 $dhost: Loaded from .env file\n\n## 📜 Logging\nInstallation logs are saved to C:\\Tools\\DuoInstall.log\n\n## ⚠️ Caution\n* 🛡️ Ensure you have proper authorization before running on any system\n* 🧪 Test in a controlled environment first\n* 🔒 Requires administrative permissions\n\n## 🔒 Security Best Practices\n* 📝 Add .env to .gitignore\n* 🚫 Never commit sensitive credentials to version control\n* 🔄 Rotate credentials periodically\n\n## 📄 License\nThis program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.\n\n## 🤝 Contributing\nContributions, improvements, and bug reports are welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadnervl%2Fduowin2login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadnervl%2Fduowin2login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadnervl%2Fduowin2login/lists"}