Delete Outlook POP account HELP!!!!!!

Posted on 2006-11-02
Last Modified: 2006-12-04
I recently sent an image to Dell to have it deployed onto 200 new PC's on my network.  I neglected to check everything prior to approving the image, and I mistakenly left a POP account setup in Outlook, containing a load of emails from my Business account.  I need to setup a script to delete this from the computers, but I have no idea how!  It cannot only delete .pst files because we have some users that use Outlook and this would delete theirs......Please help!  Tell me there is a will save me much embarassment!

Question by:jkelly2003
LVL 25

Accepted Solution

mikeleebrla earned 63 total points
ID: 17861919
just run a script that has the basic 'del' dos command on all the PCs

del C:\folder\filename.pst

since it is an image, the file will be in the same place on all the PCs so the same command will work on all of them. No big deal.


Expert Comment

ID: 17862499
if you are using multiple accounts on these computers then you can do it this way

del c:\documents and settings\Administrator\local settings\application data\microsoft\outlook\*.pst

You should have each user logging on with their own account onto these computers and not logging into the Administrator account anyways.  If this is on a domain then you'll need to do Administrator.local for the profile.  But any changes to the Administrator.local profile will not affect any user's settings providing that you didn't have all the users logged in as Administrator or as the same account that the POP account was created and used under on your Master Image machine.
LVL 25

Expert Comment

ID: 17862618
>>if you are using multiple accounts on these computers then you can do it this way
it is on one particluar profile on an image sent out to 200 PCs so it will be in the exact same location on ever PC.  just run the del command with the path to the file and it will remove it.  run it as a startup script so the login account never even comes into play since noone will even be logged in.

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.


Author Comment

ID: 17863789
The problem is that the network is setup w/ Novell, so the image has one "shared" default profile every user will have this profile for their username in Docs and Settings.  So, that means that it will be tied to the same Outlook.pst file, throughout the network.  If I run that script, it will delete the existing users outlook accounts.  I thinking of looking at the size of an empty outlook.pst file, and then using size of the file as a criteria for deleting it.....I don't know.....this really sux!!  Thanks for the suggestions, Keep em coming!


Expert Comment

ID: 17863801
From your description some if not all users have already begun using the image you sent out and the pst you had for your business email has already mixed with the users email.  PST's are databases that can only be manipulated inside of Outlook.  You can delete it entirely by a script, but you can't delete parts of it with a script.  If I'm mistaken and users havent already begun using your PST then you can write out the command to delete the pst (at the command line) into notepad.  (del C:\folder\filename.pst as mikeleebrla  suggested) and then change the .txt extension to .bat.  Then use the following directions to assign a login script to the users:
LVL 10

Expert Comment

ID: 17864379
just delete your profile from that computer
your profile resides on "c:\documents and settings" folder

Assisted Solution

MarkWYnne earned 62 total points
ID: 17867573
If all users are on exchange then their mail is on the server and not on the PC.
If mail is stored on the PC, as in synchronised, then you may have an ost file in there.

Please check the size of the pst file in user's profile

If they are all exactly the same file size, a small size, a few KB, then you can bet that the users are not using the file.

The next step is as above, write a simple script and be done with the offending files.

Let me know how you get on


Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction How to create multiboot configuration with XP\Vista and Windows 7 on it? And most important question - how to do this correctly so not to have any kind of nightmares we get when system gets screwed? First of all one should realize t…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension ( This reminded me of questions tha…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

707 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

17 Experts available now in Live!

Get 1:1 Help Now