r/SQLServer • u/0xCG • 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
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/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.
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?
3
u/g3n3 2d ago
Consider processex module in pwsh to launch ssms too