Search This Blog

Wednesday, September 21, 2011

how to execute a program in another domain

Create shortcut of the program.

Go to properties and view the path.
For sql server it will be something like this:
"C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Ssms.exe"

Just add this at the front in the shortcut path:

C:\Windows\System32\runas.exe /user:NEWDOMAIN\USERNAME /netonly "C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Ssms.exe"

and voila..you are done.

You will be able to access the resource in another domain from a different domain.

No comments:

Post a Comment