Setting Owner of an object.



I'm trying to create a script that will change the owner of an object (such
as a file/folder). Unfortunately all I can come across is "takeownership"
which sets it to the user currently running a script.

I want to be able to explicitly specify which user to change the ownership
to. Any ideas?

Using NT/Batch Scripting if possible (i.e. using cacls or similar?), but
happy to shove some VBS/WSH if its the only way to do such a thing.
.



Relevant Pages

  • Re: Win32_ComputerSystem
    ... for me when I connected to the remote server as an administrator. ... the owner of the other processes that are owned by different users. ... I think that the below script may give you better ... >> Scott McNairy ...
    (microsoft.public.scripting.vbscript)
  • Problem scheduling job
    ... I have a script that I wrote to ... INNER JOIN task_users_assigned_to TU ON ... ORDER BY TU.user_id ASC ... SELECT Owner, COUNTAS NumberNotStarted, CONVERT, GETDATE, ...
    (microsoft.public.sqlserver.programming)
  • [PATCH] kill spurious MAKDEV scripts
    ... This driver automatically probes for most IDE interfaces (including all PCI ... -Use the MAKEDEV.snd script located in the directory named scripts ... echo " done" ... chown $OWNER $1$tmp1 ...
    (Linux-Kernel)
  • Re: script all MSDB jobs in TSQL
    ... Server is Source Server where you want to script jobs from ... owner is the new owner of the jobs. ...
    (microsoft.public.sqlserver.server)
  • Re: Changing file permissions through a PHP script
    ... > Use sudo to allow apache to run a script that makes the changes. ... I can't figure out how to automatically run the shell script as ... and the owner and group owner for the folder is apache. ...
    (comp.os.linux.misc)

Loading