Solved

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

Posted on 2008-06-20
13
813 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
 
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
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.

 
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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

How to sign a powershell script so you can prevent tampering, and only allow users to run authorised Powershell scripts
Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
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…
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

914 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now