-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added uninstall script documentation (#343)
* Added uninstall documentation * Color coded code snippet * Update docs/uninstall.md Co-authored-by: Shalini Khare <[email protected]> * Update docs/uninstall.md Co-authored-by: Shalini Khare <[email protected]> * updated ReadMe * Applied changes from code review * Removed Note section. Comments did not reflect script's actual behavior --------- Co-authored-by: Shalini Khare <[email protected]>
- Loading branch information
1 parent
484a146
commit 781a5fe
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Uninstalling AzureAuth | ||
|
||
The uninstall script can be used to uninstall AzureAuth (currently only available for Windows). The script removes the default AzureAuth reference in the PATH and deletes the AzureAuth installation folder. | ||
|
||
The script currently doesn't support uninstalling from custom locations. This is to avoid removing any potential files that are not safe to delete. If there are any potential installations in custom locations found in the PATH (installed through the `$AZUREAUTH_INSTALL_DIRECTORY` environment variable), a warning will be printed showing its location. Installations in custom locations that are not listed in the PATH cannot be found and uninstalled. | ||
|
||
## Usage | ||
|
||
Run the following in PowerShell: | ||
|
||
```PowerShell | ||
$script = "${env:TEMP}\uninstall.ps1" | ||
$url = "https://raw.githubusercontent.com/AzureAD/microsoft-authentication-cli/main/install/uninstall.ps1" | ||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | ||
Invoke-WebRequest $url -OutFile $script; if ($?) { &$script }; if ($?) { rm $script } | ||
``` |