Advertisement
Guest User

Remove all Outlook profiles for all users on a computer

a guest
Apr 9th, 2021
1,261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.29 KB | None | 0 0
  1.  
  2. ::Remove all Outlook Profiles for all users on a workstation
  3. ::Note that this does NOT remove any OST or PST files; that is by design.
  4.  
  5. for /f %%u in ('reg query HKU') do (
  6.     for /f %%p in ('reg query %%u\Software\Microsoft\Office\16.0\Outlook\Profiles') do (
  7.         reg delete %%p /f
  8.     )
  9. )
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement