Change Owner
takeown /f <file>$file = Get-Item <Path\FileName>$acl = Get-Acl $file.FullName$user = "DOMAIN\User"$acl.SetOwner([System.Security.Principal.NTAccount]$user)Set-Acl -Path $file.FullName -AclObject $acl Last updated
takeown /f <file>$file = Get-Item <Path\FileName>$acl = Get-Acl $file.FullName$user = "DOMAIN\User"$acl.SetOwner([System.Security.Principal.NTAccount]$user)Set-Acl -Path $file.FullName -AclObject $acl Last updated