Solved

Need a script to set user pst files ownership to themselves %username% (drk owns drk.pst

Posted on 2014-12-10
1
120 Views
Last Modified: 2015-01-20
Need a script to set user pst files ownership to themselves %username% (drk owns drk.pst). I need to change the ownership for 5000 users so doing this one by one is killing me. No luck so far with anything to grant a user ownership of his/her own pst. Tried: Set-Owner -Path V:\thnguyen.pst -ACCOUNT 'ADMI\thnguyen for example but powershell didn't recognize "Set-Owner".
0
Comment
Question by:admitech
1 Comment
 
LVL 80

Accepted Solution

by:
David Johnson, CD, MVP earned 500 total points
ID: 40495469
generic powershell ACL code for you to chew on.
$ACL = Get-ACL .\smithb
$Group = New-Object System.Security.Principal.NTAccount("Builtin", "Administrators")
$ACL.SetOwner($Group)
Set-Acl -Path .\smithb\profile.v2 -AclObject $ACL

Open in new window

0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Poor Man's .NET Framework Certification 2 60
OS X Mail will not connect to Microsoft Hosted Exchange 7 62
reverse email lookup 8 66
Graph API & MS Apps 1 23
Are you using email marketing software? If not, you're missing out on effortless marketing and the reaching of desired conversion rates through email marketing software.
The advancement in technology has been a great source of betterment and empowerment for the human race, Nevertheless, this is not to say that technology doesn’t have any problems. We are bombarded with constant distractions, whether as an overload o…
The purpose of this video is to demonstrate how to set up a Mailchimp campaign. This will include styling and adding elements to a newsletter/email. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchim…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question