• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 822
  • Last Modified:

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
0
Hacking_For_Christ
Asked:
Hacking_For_Christ
  • 7
  • 5
1 Solution
 
BSonPoshCommented:
I can look at this, but how to you plan on running the script? local or remote?
0
 
Hacking_For_ChristAuthor Commented:
The script will be ran local on the computers.
0
 
BSonPoshCommented:
it is safe to assume Powershell will be installed locally then?
0
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

 
Hacking_For_ChristAuthor Commented:
Yes Powershell is installed locally & and running version 1.0
0
 
BSonPoshCommented:
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
 
Hacking_For_ChristAuthor Commented:
I will look into that and see if it will work for what I want to do.  Thank you for the help.
0
 
BSonPoshCommented:
were you able to work this out?
0
 
Hacking_For_ChristAuthor Commented:
Thank you for your help. It looks like this will work, but it will take some time; I am not a VB programer.
0
 
BSonPoshCommented:
"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
 
Hacking_For_ChristAuthor Commented:
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
 
Hacking_For_ChristAuthor Commented:
here is the exact powersehll command

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

Enjoy
0
 
Hacking_For_ChristAuthor Commented:
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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 7
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now