Advertisement
Cogger

Adobe-SignOut-Enterprise.ps1

Nov 10th, 2022
1,381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Get-Process * | Where-Object {$_.CompanyName -match "Adobe" -or $_.Path -match "Adobe"} | Stop-Process
  2.  
  3.  
  4. cmdkey /list | ForEach-Object {
  5.   if ($_ -like "*Adobe*") {
  6.     cmdkey /del:($_ -replace '^[^=]+',"" -replace "=","")
  7.   }
  8. }
  9.  
  10. sleep 3
  11.  
  12. Start-Process microsoft-edge:
  13. sleep 3
  14. $wshell = New-Object -ComObject wscript.shell;
  15. $wshell.AppActivate('New tab - Work - Microsoft​ Edge')
  16.     Start-Sleep -s 1
  17. #  Hit the up arrow key
  18. $wshell.SendKeys('{F10}')
  19.     Start-Sleep -s 1
  20. $wshell.SendKeys('{LEFT}')
  21.     Start-Sleep -s 1
  22. $wshell.SendKeys('~')
  23.     Start-Sleep -s 1
  24. $wshell.SendKeys('~')
  25.     Start-Sleep -s 3
  26. $wshell.SendKeys('{TAB}')
  27.     Start-Sleep -s 1
  28. $wshell.SendKeys('{TAB}')
  29.     Start-Sleep -s 1
  30. $wshell.SendKeys('~')
  31.     Start-Sleep -s 1
  32. $wshell.SendKeys('~')
  33.     Start-Sleep -s 1
  34.  
  35.     sleep 3
  36.  Get-Process -Name MsEdge | Stop-Process
  37.  
  38.  
  39. exit
  40.  
  41.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement