Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > Re: Changing File System Permissions and Ownership in Powershell

Reply
Thread Tools Display Modes

Re: Changing File System Permissions and Ownership in Powershell

 
 
Joe Acosta
Guest
Posts: n/a

 
      10-21-2008
David,

From a regular shell (not power shell), type xcacls /? and see if the
options available work for you.

For remotely executing commands on systems, take a look at psexec.exe which
is included in pstools.zip. Note that there are several "unix-y"
(unix-ish?) utilities within the zip file. Download for free at
http://technet.microsoft.com/en-us/s.../bb896649.aspx

Joe A


"David Eisner" <> wrote in message
news:909c9122-8d40-4b4c-947d-...
> I'd like to change NTFS file system permissions using Powershell, both
> at the command line and from a Powershell script.
>
> I come from the Unix world, where it's pretty straightforward: To
> change ownership, you use the 'chown' command, and to change
> permissions, you use either 'chmod' or 'setfacl'.
>
> How would I do the same thing in Powershell? I'd like to be able to
> do this locally (on a Windows Server 2003 box), and hopefully remotely
> (from a Windows XP client, say).
>
> Googling around, I see many different discussions threads, with
> conflicting information about how you might do it (try this script I
> wrote, download this utility, etc.), or whether it's even possible to
> change the owner to a non-Administrative user account using anything
> other than the security tab in the GUI. I'm surprised such a basic
> operation is such a fertile topic for discussion and debate.
>
> Powershell is pretty cool, and I'm hoping I can use it to accomplish
> my task.
>
> Thanks in advance!
>
> -David



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: NTFS permissions: users changing permissions by unchecking "inherit permissions from parent" Herb Martin Windows Server 2 05-23-2007 01:58 AM
Re: NTFS permissions: users changing permissions by unchecking "inherit permissions from parent" Anthony Windows Server 0 05-22-2007 10:15 AM
Windows PowerShell and the "PowerShell Worm" Jeffrey Snover [MSFT] Scripting 0 08-03-2006 10:46 PM
Re: ntfs permissions, ownership, adding permissions Roger Abell [MVP] Server Security 0 01-14-2006 06:01 AM
lost ownership and file permissions on Windows 2003 server Tony Fields Windows Server 1 02-08-2005 07:47 PM