Running C# application from COmmand prompt

I have developed C# application which uses Win 32 Classes for performing task. It fetches system level details for remote machine on domain

Now for executing this I use schedule task which points to exe of application & uses admin id & password for execution,

Since application fetches system level details, therefore this uses should have admin right on machine whose details are getting fetched.

Now there are few machine which are not in domainm. I need to fetch the details of these mahcine. Since these machines are not on network, hence my id will not work.,

I have created local admin user for this.

How to excute application now?
rain_dewAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

TomDromiCommented:
0
Mike_MozhaevCommented:
Or you can create a shortcut to your app. Then right-click it and you'll probably see "Run as..." item in context menu.
0
grayeCommented:
This might be a complex problem...
For example, if  you application uses Windows Management Instrumentation (WMI), then there a few security rules that apply differentely to domain vs non-domain computers.  One of the "rules" is that if a remote PC is in a workgroup, then impersonation will fail if User Account Control (UAC) is enabled (for WinV,Win7,Win2008, etc)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rain_dewAuthor Commented:
ok
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.