Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Forums > Tutorials

Vista - Take Ownership of file

Comment
 
Old 06-02-2007  
Brink


Vista x64 Ultimate SP2, Windows 7 Ultimate x64
 
 

Take Ownership of file

How to Take Ownership of a Item in Vista

...

My System SpecsSystem Spec
Old 11-28-2007  
Hairy Scot


Vista Business X64
 
 

Re: Take Ownership of file

I hit the ownership problem after I repartioned a drive.
I used "E:\>takeown /f * /R /D Y" to take ownership of all files on the new logical drive.
This was successful but I then had to amend permissions for some folders.
Does the ICACLS command have a generic option that would work for all files and folders on a logicl drive?

My System SpecsSystem Spec
Old 11-28-2007  
Brink


Vista x64 Ultimate SP2, Windows 7 Ultimate x64
 
 

Re: Take Ownership of file

Hi Hairy Scot,

You should be able to just use the drive letter for the full path. EX: takeown /f C:\ and icacls C:\ /grant (your username):F

You can also use Method Two and right click on the drive in Computer from the Start Menu. Just make sure you check the box when you get to step 8 to include all subfolders and files.

Hope this helps,
Shawn
My System SpecsSystem Spec
Old 12-07-2007  
soma1509


Vista Basic 32-Bit (Laptop) and Home Premium 32-Bit (Desktop)
 
 

Re: Take Ownership of file

Hello, I have a slightly complicated issue when trying to remove one of my folders.

I have attempted both of your methods, but they both failed. Perhaps this is because the folder I am trying to delete is from an old version of a Symantec antivirus program that I no longer use. The majority of the program is deleted, however in order to install my new one, I still have to delete the following .dll files within that folder:

IMCfg.dll
ISDataCl.dll
isRes.dll
NavShExt.dll
SetEvtHp.dll

Is there anything that can be done about these files? Taking ownership of the entire folder did no good unfortunately.

Thanks
My System SpecsSystem Spec
Old 12-07-2007  
Brink


Vista x64 Ultimate SP2, Windows 7 Ultimate x64
 
 

Re: Take Ownership of file

Hi Soma1509,

Welcome to the forum.

You might try using the Symantec Norton Removal Tool . It should remove them for you.

Shawn
My System SpecsSystem Spec
Old 01-11-2008  
Jabes


Vista Ultimate X64
 
 

Re: Take Ownership of file

thanks alot it works good
My System SpecsSystem Spec
Old 01-11-2008  
Brink


Vista x64 Ultimate SP2, Windows 7 Ultimate x64
 
 

Re: Take Ownership of file

Your welcome Jabes.

Glad it helped you. Thank you for the feedback.

Shawn
My System SpecsSystem Spec
Old 01-12-2008  
jlroper


Vista Ultimate x32
 
 

Question Re: Take Ownership of file

brink,

Here's my situation.

I work for a company who would like to upgrade all their computers to Vista Business 32-bit. This company has Engineers who coded almost all programs that the employees are using.

At a beginning of the employees shift (currently within Windows XP Prof 32-bit) they run a batch file (.bat) that copies updated files from servers on the network, then registers those files ('regsvr32 mci32.ocx /s' is one of the command line executions, for example). There is a file that is called within the batch file called 'epal.exe' that calls another batch file that lists all the commands (the 'epal.exe' application is used at the beginning of the command line execution with the second batch file name after it like a argument; example: epal.exe updateNT.bat).

I heard that you need to disable the UAC to accomplish this.

I've found out that this commandline statement execution will disable the UAC (and another statement to enable UAC afterwards):
C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f


I have three inquiries:
1) I understand that to initiate the disableing of the UAC, you need to right-click on the file and choose, 'Run As' and put in an administrator password to actually run the first batch file, which really doesn't help my situation, because the user executing the batch file has the lowest privilege level set for themselves.
From reading your detailed writings about taking ownership of files/folders, I'm wondering if this UAC approach will even work. Any thoughts?

2) Do you know of a way to set ownership of the batch file from the command line, if the cmd.exe program was executed by someone who is not set as administrator, but at a much lower level?

3) Based on the particular scenario listed above (by how employees need to be able to run a batch file that, indirectly registers DLL files), do you have any suggestions on how to do this (without giving the employees administrator access through their entire shift; just the execution of the update batch file is needed with administrator access)?

Any suggestions would be greatly appreciated as I'm running out of options and we really want to move up to Vista.

Thank you for your time.
My System SpecsSystem Spec
Old 01-12-2008  
Brink


Vista x64 Ultimate SP2, Windows 7 Ultimate x64
 
 

Re: Take Ownership of file

Hi Jlroper,

Welcome to Vista Forums.

I do not know of how you can execute it without applying permission first for the batch file. Are the computers on a network domain? You might try using something like Remote Desktop or Remote Assistance to send the batch down from an Administrator account to all the other computers instead of letting the user do it.

Shawn
My System SpecsSystem Spec
Old 01-13-2008  
jlroper


Vista Ultimate x32
 
 

Re: Take Ownership of file

The computers are on a network domain. I'll pass your suggestion on to our IT guy. Thank you for your help.
My System SpecsSystem Spec
Old 01-13-2008  
Brink


Vista x64 Ultimate SP2, Windows 7 Ultimate x64
 
 

Re: Take Ownership of file

Your welcome Jlroper.
My System SpecsSystem Spec
Comment

Tutorial Tools


Similar Threads
Tutorial Category
Changing File Ownership Vista account administration
Take Ownership of file General Discussion
Changing File Ownership Vista General
Cannot take ownership of file Vista security
Vista File Ownership Change Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
Tutorial powered by GARS 2.1.8m ©2005-2006

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46