Solved

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

Posted on 2008-06-20
13
818 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This article will help you understand what HashTables are and how to use them in PowerShell.
The following article is intended as a guide to using PowerShell as a more versatile and reliable form of application detection in SCCM.
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

707 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