{"id":18811783,"url":"https://github.com/jetkai/exchangeonlineoauth","last_synced_at":"2026-01-11T14:30:20.521Z","repository":{"id":109393666,"uuid":"230685248","full_name":"jetkai/ExchangeOnlineOAuth","owner":"jetkai","description":"PowerShell Script - Used for connecting to Exchange Online, using Modern Authentication","archived":false,"fork":false,"pushed_at":"2019-12-29T00:59:08.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-30T00:13:31.781Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jetkai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-12-29T00:49:10.000Z","updated_at":"2023-08-08T01:45:48.000Z","dependencies_parsed_at":"2023-04-25T20:40:25.231Z","dependency_job_id":null,"html_url":"https://github.com/jetkai/ExchangeOnlineOAuth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jetkai%2FExchangeOnlineOAuth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jetkai%2FExchangeOnlineOAuth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jetkai%2FExchangeOnlineOAuth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jetkai%2FExchangeOnlineOAuth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jetkai","download_url":"https://codeload.github.com/jetkai/ExchangeOnlineOAuth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239748248,"owners_count":19690232,"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":[],"created_at":"2024-11-07T23:27:40.532Z","updated_at":"2026-01-11T14:30:20.488Z","avatar_url":"https://github.com/jetkai.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ExchangeOnlineOAuth\nPowerShell Script - Used for connecting to Exchange Online, using Modern Authentication\n\n[Administrator PC rights should not be required to run this script - Exchange Online admin rights is required]\n\nDescription:\n\nThis script allows any Exchange Online Admin to use the Exchange Online PowerShell cmdlet, with Multi-Factor Authentication enabled. I wrote this script as an alternative to Microsoft's module that you have to install from the Exchange Admin Centre on an Internet Explorer/Edge browser. You can use this script to integreate with your own scripts, so that you can use accounts with Multi-Factor Authentication. ~ I will also be including Microsoft's own Exchange Online Module - But with an easier way of Downloading \u0026 Installing without using the IE browser.\n\n\nTODO List for the Future:\n\n1. Do not prompt for Sign-in again [Remember me] | Save AccessToken as JSON (User Option) - Read from PC \u0026 insert into script\n2. If AccessToken expires, use RefreshToken to aquire a new AccessToken\n3. Optimize a little more\n\n\nWhat this script does?\n1.\tInstalls the Microsoft ADAL PowerShell Module\n2.\tPrompts the user to sign-in with their Office 365 User Credentials \u0026 will prompt for Mobile/App Authetnication (if user has this)\n3.\tGathers the AccessToken from the sign-in prompt and attempts to connect to Exchange Online using BasicAuth to OAuth Conversion\n4.\tImports the PowerShell session for the user to use the Exchange Online cmdlet\n\nHow to run this script?\n1.\tYou can right-click the .ps1 file and click \"Run with PowerShell\" - This will open a new PowerShell window in NoExit mode to allow you to connect\n2.\tYou can Import the PowerShell script within an existing PowerShell window by running the example command Import-Module -Name \"C:\\Users\\YourName\\Downloads\\ExchangeOAuth.ps1\n3.\tYou can also CD to the directory by running the example command cd \"C:\\Users\\YourName\\Downloads\" \u0026 Run the script with the command .\\ExchangeOAuth.ps1\n\nI am getting errors!?! How do I fix them?\n1.\tIf you are receiving the message \"....ExchangeOAuth.ps1 cannot be loaded because running scripts is disabled on this system...\" - You'll need to run this command and you'll then be able to run the script Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned\n2.\tIf you are still not able to run the script - You'll need to also run the command Install-Module -Name Microsoft.ADAL.PowerShell\n\n\n[ALTERNATIVE METHOD] Microsoft's Exchange Online Module (With a TWIST):\n\nDescription: This allows you to install /or launch Microsoft's Exchange Online Module without having to navigate to https://outlook.office.com/ecp in an Internet Explorer/Edge browser \u0026 manually download it. Inspected element to gather the link and stuck this into a quick PowerShell command to download the module immediately, useful for multiple machines.\n\nPowerShell Script:\n\n(New-Object -ComObject \"InternetExplorer.Application\").navigate2(\"https://cmdletpswmodule.blob.core.windows.net/exopsmodule/Microsoft.Online.CSE.PSModule.Client.application\")\n#------Connect to Exchange Online after Module is Installed by user-------#\nConnect-EXOPSSession\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjetkai%2Fexchangeonlineoauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjetkai%2Fexchangeonlineoauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjetkai%2Fexchangeonlineoauth/lists"}