Link to home
Start Free TrialLog in
Avatar of Hacking_For_Christ
Hacking_For_Christ

asked on

Use Powershell to erase a Outlook 2003 POP3 email account & create a new account.

I am working on use Powershell to erase an Outlook 2003 POP3 email account & create a new account.  The old PST is being moved to an X-employees location but we are keeping the Windows profile. The laptops are not on the domain. Any help is welcome
Avatar of BSonPosh
BSonPosh
Flag of United States of America image

I can look at this, but how to you plan on running the script? local or remote?
Avatar of Hacking_For_Christ
Hacking_For_Christ

ASKER

The script will be ran local on the computers.
it is safe to assume Powershell will be installed locally then?
Yes Powershell is installed locally & and running version 1.0
ASKER CERTIFIED SOLUTION
Avatar of BSonPosh
BSonPosh
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I will look into that and see if it will work for what I want to do.  Thank you for the help.
were you able to work this out?
Thank you for your help. It looks like this will work, but it will take some time; I am not a VB programer.
"I am not a VB programer."

Good thing this is Powershell ;)

seriously... I am here all the time. Feel free to post if you have any more questions.
I have found a way to do the task without using VB. Go into the registry and remove the key & sub keys for
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Outlook
This will remove the outlook profile for the user. The site I used for a refference is; http://www.techspot.com/vb/all/windows/t-8927-Outlook-2003-Accounts-File.html
The site does not tell how to do this but it gives the path for the HKEY_Users.  

Thanks for all the help, I would not have know what to search for without it.
here is the exact powersehll command

Remove-Item hkcu:\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Outlook\* -force

Enjoy
Sorry it removed the syntax
Remove-Item hkcu:\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Outlook\* -force

Open in new window