Solved

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

Posted on 2008-06-20
13
815 Views
Last Modified: 2013-11-29
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
0
Comment
Question by:Hacking_For_Christ
  • 7
  • 5
13 Comments
 
LVL 18

Expert Comment

by:BSonPosh
ID: 21837884
I can look at this, but how to you plan on running the script? local or remote?
0
 
LVL 1

Author Comment

by:Hacking_For_Christ
ID: 21839593
The script will be ran local on the computers.
0
 
LVL 18

Expert Comment

by:BSonPosh
ID: 21841138
it is safe to assume Powershell will be installed locally then?
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
LVL 1

Author Comment

by:Hacking_For_Christ
ID: 21849563
Yes Powershell is installed locally & and running version 1.0
0
 
LVL 18

Accepted Solution

by:
BSonPosh earned 500 total points
ID: 21849662
I believe you could use the outlook COM to do this.

Here is example
$outlook = new-object -com outlook.application

More Info Here
http://msdn.microsoft.com/en-us/library/aa210897(office.11).aspx
0
 
LVL 1

Author Comment

by:Hacking_For_Christ
ID: 21878874
I will look into that and see if it will work for what I want to do.  Thank you for the help.
0
 
LVL 18

Expert Comment

by:BSonPosh
ID: 21909969
were you able to work this out?
0
 
LVL 1

Author Comment

by:Hacking_For_Christ
ID: 21916844
Thank you for your help. It looks like this will work, but it will take some time; I am not a VB programer.
0
 
LVL 18

Expert Comment

by:BSonPosh
ID: 21916974
"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.
0
 
LVL 1

Author Comment

by:Hacking_For_Christ
ID: 22025921
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.
0
 
LVL 1

Author Comment

by:Hacking_For_Christ
ID: 22026206
here is the exact powersehll command

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

Enjoy
0
 
LVL 1

Author Comment

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

Open in new window

0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
Pop culture is prime bait for hackers seeking to infect user’s computers and mobile devices with malicious malware. Hackers know exactly what the latest trends are online and know how to use them to their advantage.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question