I have a script that grants permission to assemblies in a DB, but the execution fails on this saying that NT AUTHORITY\Authenticated Users doesn’t exists.
This is a non English system.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can combine little bobby and David’s answers:
On an english system, get the SID of the account you want:
In code use this sid to obtain the local name:
Between these two you can obtain the name and build a dynamic SQL to grant the permission you want.