Jump to content


  • 0
kefr@itcsyd.dk

OSQL doesn't know domain groups initially

Question

Hi. I'm trying to change some security settings on an sql express 2008 installation in order for it to work properly in a piece of software. However, when I run the command to change the permissions, I get an error. If I run the command again hours later it'll work however. And I don't know why.

I made a test before leaving work yesterday. The SQL was installed 14:58 without complaints. Then I ran the command in a loop every 20 seconds or so, and it started working 16:47 and kept working until I stopped it this morning.

 

Any input as to why this happends?

 

Command:

"%programfiles(x86)%\microsoft sql server\100\tools\binn\osql.exe" -S .\ECSQLEXPRESS -E -Q "use [master] exec sp_addsrvrolemember @loginame = 'ITCSYD\domain users', @rolename = 'sysadmin'"

 

Error message:

Msg 15007, Level 16, State 1, Server KEFRTESTPC03\ECSQLEXPRESS, Procedure sp_addsrvrolemember, Line 68
'ITCSYD\domain users' is not a valid login or you do not have permission.
ps. the whole thing's run under builtin\system's user context as we're deplying the sql with sccm 2012 and I was running the test script with psexec -s

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.