Solved

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

Posted on 2014-12-10
1
118 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 78

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Outlook vs Outlook.com vs Outlook Mail 11 81
Problem to file 3 67
Windows 2008 Group Policy - An error occurred. Please try again later 2 70
OUtlook missing email alert 9 42
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
A high-level exploration of how our ever-increasing access to information has changed the way we do our jobs.
This Micro Tutorial demonstrates  how Internet marketers work with competitive analysis data, and a common task in data preparation is creating separate column for domains. You will then extract from a list of URLs.
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, fr…

914 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now