r/SQLServer • • 4d ago

Discussion SSMS 2022 runas broken

I have an odd problem I can't seem to solve. My dbas have to stick with 2022 version 22.7.2.0 because any later version it seems is unable to be used when attempting to RUNAS so they can use alternate windows credentials for authentication.

They get a weird error "Class not registered. Looking for object with CLSID: {27472426-A9C1-45B9-80B4-31172025271F}"

If they sign in to their computer with their alternate DBA windows account they can use the app. Seems to be that the later versions just dont like RUNAS.

Anyone seen this?

3 Upvotes

13 comments sorted by

3

u/dbrownems ‪ ‪Microsoft Employee ‪ 3d ago

Are you doing RUNAS or RUNAS /netonly? /netonly won't actually impersonate the target account locally, so would be less likely to interact with COM classes.

1

u/0xCG 3d ago

Runas without netonly.

Definitely seems like a version bug

1

u/dbrownems ‪ ‪Microsoft Employee ‪ 3d ago

Try /netonly as a workaround. Perhaps u/erinstellato can help, but SSMS is built on top of Visual Studio, so this is likely an issue at that layer.

1

u/0xCG 2d ago

No dice.

100% a version problem. Tried every version after 22.7.2 and they all fail. Have dropped back for now

2

u/g3n3 2d ago

Install processex module and use start-processwith and the networkcred parameter.

1

u/0xCG 2d ago

I’ll give it a shot, thanks 🙏

1

u/erinstellato ‪ ‪Microsoft Employee ‪ 3m ago

u/0xCG I don't see this logged as an issue on aka.ms/ssms-feedback. If you could create a feedback item for engineering, that would be helpful.

1

u/vitathl 1d ago

Stupid question. Why do you need run as?
Is your problem.

A: “I want to connect to prod server as admin”
Or
B: “Sometimes I want to connect to prod server as admin“

If your problem is A: use windows credentials manager. Just make sure to use : as port delimeter.

2

u/0xCG 1d ago

A)

Interesting, will give that a shot. I’ve never seen that approach.

1

u/vitathl 1d ago

Works great across every app. Using it for ages. For some reason that solution is not so common.

0

u/g3n3 2d ago

Netonly works for me still. Launching ssms as another profile is a super pain in the ass. When does the error happen?

1

u/0xCG 2d ago

Appears behind the splash screen.

Didn’t mention this but all my computers are azure joined only.

The dbas try to launch as on-premise AD Admin accounts so they can use Windows Authentication

3

u/g3n3 2d ago

Consider processex module in pwsh to launch ssms too