Hacking_For_Christ
asked on
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
I can look at this, but how to you plan on running the script? local or remote?
ASKER
The script will be ran local on the computers.
it is safe to assume Powershell will be installed locally then?
ASKER
Yes Powershell is installed locally & and running version 1.0
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I will look into that and see if it will work for what I want to do. Thank you for the help.
were you able to work this out?
ASKER
Thank you for your help. It looks like this will work, but it will take some time; I am not a VB programer.
"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.
Good thing this is Powershell ;)
seriously... I am here all the time. Feel free to post if you have any more questions.
ASKER
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.
HKEY_CURRENT_USER\Software
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.
ASKER
here is the exact powersehll command
Remove-Item hkcu:\Software\Microsoft\Window s NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Outlook \* -force
Enjoy
Remove-Item hkcu:\Software\Microsoft\Window
Enjoy
ASKER
Sorry it removed the syntax
Remove-Item hkcu:\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Outlook\* -force