update
This commit is contained in:
18
Windows Server/Remove-AadProxyAgent.ps1
Normal file
18
Windows Server/Remove-AadProxyAgent.ps1
Normal file
@ -0,0 +1,18 @@
|
||||
#Forcer la deconnexion de l'agent
|
||||
azcmagent disconnect --force-local-only
|
||||
|
||||
#Désintaller les applications Agent et Proxy AAD
|
||||
Get-ChildItem -Path HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall | `
|
||||
Get-ItemProperty | `
|
||||
Where-Object { $_.DisplayName -eq "Azure Connected Machine Agent" } | `
|
||||
ForEach-Object { MsiExec.exe /x "$($_.PsChildName)" /qn }
|
||||
|
||||
Get-ChildItem -Path HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall | `
|
||||
Get-ItemProperty | `
|
||||
Where-Object { $_.DisplayName -eq "Microsoft Azure Active Directory Application Proxy Connector" } | `
|
||||
ForEach-Object { MsiExec.exe /x "$($_.PsChildName)" /qn }
|
||||
|
||||
Get-ChildItem -Path HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall | `
|
||||
Get-ItemProperty | `
|
||||
Where-Object { $_.DisplayName -eq "Microsoft Azure AD Application Proxy Connector Updater" } | `
|
||||
ForEach-Object { MsiExec.exe /x "$($_.PsChildName)" /qn }
|
Reference in New Issue
Block a user