?
Solved

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

Posted on 2008-06-20
13
Medium Priority
?
819 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
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
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 2000 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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

The following article is intended as a guide to using PowerShell as a more versatile and reliable form of application detection in SCCM.
There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
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…
Suggested Courses
Course of the Month13 days, 6 hours left to enroll

777 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