Solved

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

Posted on 2008-06-20
13
812 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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

How to sign a powershell script so you can prevent tampering, and only allow users to run authorised Powershell scripts
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
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…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

746 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

10 Experts available now in Live!

Get 1:1 Help Now