Be my own boss again


Although I am the administratort of my win2k system something is preventing me from being the boss.
This virus is in some dir c:\temp and I want to delete that .exe.
Also in that dir there is this txt file log.bak.txt that is hidden and i cant access it. when i try to open it it says access is denied.

Now why in gods name cant I set the security on this log.bak.txt? I am Admin!!
And I need to be able to eradicate any file with any extetion on my system without getting the message "file in use, unable to delete"

I am Admin and I want to be boss in my own system again..

please someone help me

Who is Participating?
sirbountyConnect With a Mentor Commented:
Try using pskill from
Great tool (you may need pslist to get the exact process name as well, unless you have the resource kit, which I think contains a tlist or tslist...)
jthowConnect With a Mentor Commented:

A similar situation was discussed at:-

Is that any help?

DaFouAuthor Commented:
I am sorry,

How do I take ownership of a file / folder or gd anything on the system I am admin off.

I do have win xp examples but I am running win2k
Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

MikaelErikssonConnect With a Mentor Commented:
Something like: Right click the file -> Properties -> Security -> Advanced.... take ownership.

I have not access to a Win2K box right now but I'm sure that you choose to be the owner of a file/directory somwhere around where you set the permissions.
I think It's on a "advanced" page. Let me know if you don't find it, I'll have a look at a Win2K box then.
sirbountyConnect With a Mentor Commented:
Try this:
Open a Command Prompt window and leave it open. Close all open programs. Click Start, Run and enter TASKMGR.EXE Go to the Processes tab and End Process on Explorer.exe. Leave Task Manager open. Go back to the Command Prompt window and change to the directory the undeletable file is located in. At the command prompt type DEL where is the file you wish to delete. Go back to Task Manager, click File, New Task and enter EXPLORER.EXE to restart the GUI shell. Close Task Manager.

Can't delete file or folder: 
DaFouAuthor Commented:

I am going to try this..

be back on this later
DaFouAuthor Commented:

Thx, you helped me solve the log.bak.txt problem. You will be rewarded points. But I need some additional time to test the other suggestions for my other problem
DaFouAuthor Commented:
I meant to say that MikaelEriksson will receive a fair share of points.
not all points
DaFouAuthor Commented:

How do I close all open programs? I tried to do so and followed your method. But still i get a msg:

C:\temp>del msbb.exx
Access is denied.

Please tell me a bit more.

demingj1Connect With a Mentor Commented:
pskill = great tool !
you can use task manager to get PIDs
DaFouAuthor Commented:
sorry i was away for so long. ill be sharing points this week
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.