I'm sure that a few of you use this command to open up an SSMS instance for accessing databases in domain [domain] using Windows authentication:[code="other"]runas /user:[domain]\[username] /netonly "C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio\Ssms.exe"[/code]Where [domain] is different from the domain you are currently logged in to.It works well, except for one thing: when you run it, you are prompted for a password. If you enter that password incorrectly, SSMS launches anyway and you have to close it and try again.Has anyone found a way of avoiding this, such that SSMS is launched only if password is correctly entered?
↧