Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Vista Forums > Tutorials

Vista Tutorial Categories Network & Internet Tutorials File & Folder Settings Tutorials Taskbar & Start Menu Tutorials Performance & Maintenance Tutorials General Tips Tutorials Programs & Features Tutorials Context Menu Tutorials Shortcut Tutorials Security & System Tools Tutorials Parental Controls Tutorials User Account Tutorials Hardware & Drivers Tutorials Appearance & Personalization Tutorials Backup & Restore Tutorials Music, Photo, Video and Media Tutorials Power Management Tutorials

Take Ownership of file

Update your Vista Drivers Update Your Drivers Now!!
Poll: Did this Tutorial help and work for you?
Poll Options
Did this Tutorial help and work for you?

Comment
 
Tutorial Tools Display Modes
Old 06-01-2007  
Brink's Avatar
Brink
Administrator


Join Date: Apr 2007
Vista x64 Ultimate SP1
Texas, USA
 
Rep Power: 150
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute
  Brink is online now

Take Ownership of file

How to Take Ownership of a Item in Vista
...

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


Join Date: Oct 2007
Vista Business X64
 
Rep Power: 8
Hairy Scot is on a distinguished road
  Hairy Scot is offline

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's Avatar
Brink
Administrator


Join Date: Apr 2007
Vista x64 Ultimate SP1
Texas, USA
 
Rep Power: 150
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute
  Brink is online now

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
Newbie


Join Date: Dec 2007
Vista Basic 32-Bit (Laptop) and Home Premium 32-Bit (Desktop)
 
Rep Power: 7
soma1509 is on a distinguished road
  soma1509 is offline

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's Avatar
Brink
Administrator


Join Date: Apr 2007
Vista x64 Ultimate SP1
Texas, USA
 
Rep Power: 150
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute
  Brink is online now

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
Member


Join Date: Oct 2007
Vista Ultimate X64
PA
 
Rep Power: 7
Jabes is on a distinguished road
  Jabes is offline

Re: Take Ownership of file

thanks alot it works good
My System SpecsSystem Spec
Old 01-11-2008  
Brink's Avatar
Brink
Administrator


Join Date: Apr 2007
Vista x64 Ultimate SP1
Texas, USA
 
Rep Power: 150
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute
  Brink is online now

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
Newbie


Join Date: Jan 2008
Vista Ultimate x32
 
Rep Power: 6
jlroper is on a distinguished road
  jlroper is offline

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's Avatar
Brink
Administrator


Join Date: Apr 2007
Vista x64 Ultimate SP1
Texas, USA
 
Rep Power: 150
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute
  Brink is online now

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-12-2008  
jlroper
Newbie


Join Date: Jan 2008
Vista Ultimate x32
 
Rep Power: 6
jlroper is on a distinguished road
  jlroper is offline

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-12-2008  
Brink's Avatar
Brink
Administrator


Join Date: Apr 2007
Vista x64 Ultimate SP1
Texas, USA
 
Rep Power: 150
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute
  Brink is online now

Re: Take Ownership of file

Your welcome Jlroper.
My System SpecsSystem Spec
Comment

Tags
file, ownership, security & system tools, take

Tutorial Tools
Display Modes


Update your Vista Drivers Update Your Drivers Now!!

Similar Threads
Tutorial Tutorial Starter Category Comments Last Post
Take Ownership of file Fmjc001 General Discussion 0 07-09-2008 08:49 PM
Changing File Ownership romeboy Vista General 4 05-04-2008 02:22 AM
Cannot take ownership of file Peter Vista security 3 05-03-2008 01:57 PM
Changing File Ownership sarima Vista account administration 1 01-27-2007 06:28 PM
file/folder security/ownership Piotr Wozniacki Vista performance & maintenance 3 06-25-2006 07:03 PM



Vistax64.com 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 2005-2008
Tutorial powered by GARS 2.1.8m ©2005-2006