windows - Start a program on remote computer without any third party software -


i'm trying find way start program on remote computer (in domain environment, know credentials) without third-party software psexec.

now problem is, should run interactively! (and in best case, should run in current logged-in user context) know wmi, , know can start process wmi it's not interactive. (you can start interactive process scheduled task runs system process , has system privileges(?))

now lets want write c# application technicians supervise systems, have idea technique can used allow technicians start programs remotely without installing software?

or, in other words, there else other wmi-scheduled processes?

you can perhaps program psexec does, if solution you. if remember how psexec works, begins copying file run on remote system using admin shares (e.g., \\pcname\admin$\temp; if necessary, can connect remote computer right credentials using wnetaddconnection2() function). if file copy on remote machine can run system service (which can case, if write one), can use openscmanager(), createservice() , startservice() start it. services can run in interactive mode (see service_interactive_process flag, requires service run system account). service can impersonate logged-on user, perhaps using impersonateloggedonuser() using token obtained 1 of running processes openprocesstoken(), never tried see if works.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -