Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Delete Outlook POP account HELP!!!!!!

Posted on 2006-11-02
Medium Priority
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 way....it will save me much embarassment!

Question by:jkelly2003
LVL 25

Accepted Solution

mikeleebrla earned 252 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.

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


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:  http://technet2.microsoft.com/WindowsServer/f/?en/library/84b5457b-1641-4707-a1f4-887b5f9471dd1033.mspx
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 248 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


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Occasionally Windows/Microsoft Updates will fail to update. We have found a code that will delete all temporary files and re-register all dll's related to Windows/Microsoft Updates! This works 99% of the time to get the updates working again! The…
The article covers five tools all IT professionals should know about, as they up productivity by a great deal!
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
Suggested Courses

578 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