What's the problem? I know if I try this (in the image), I need to ensure I'm running in an elevated cmd prompt. Maybe you have an UAC issue?
Arggh, image issues.
Here's the code I ran from an elevated prompt:
$ powershell
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
PS C:\Program Files\Microsoft SQL Server\MSSQL14.SQL2017\MSSQL\DATA> Get-Acl -Path "way0utwest.mdf" | Format-Table
Directory: C:\Program Files\Microsoft SQL Server\MSSQL14.SQL2017\MSSQL\DATA
Path Owner Access
---- ----- ------
way0utwest.mdf NT SERVICE\MSSQL$SQL2017 OWNER RIGHTS Allow FullControl...
i'll try the elevated. I'm admin on the server and thought it would be enough
Isn't enough on my desktop. I need specific UAC actions.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply