Let me describe the scenario
It is suppose to be intranet site
I have created in mvc web application which i have hosted on some server. The site gives a login page when you enter your credentials they are used to get data from an xml file on server. If you do not have access to the server it you are not able to login
After login there is page which displays details from that file and run cmd When i searched i found that user has to give some permissions iis does not run cmd on user machine. My main motive is for user to run a command in cmd. I don't want user to open cmd and run it. Due to which i have given the link in site to run cmd
I have tried some of the solutions on following links When i try this it works on local machine but not when i publish on some server and This gives permission issue when run on IE browser and on other browsers it does not work
Is there any alternate way to run the cmd because may be 1 user can give the permission but not hundreds.
I have tried running JavaScript to run a simple command for test purpose. I face the following error.
This is when i ran in Google browser. It is happening because ActiveXControl only works for IE browser but i want it to run on all browsers any suggestions
This is when i ran in IE browser.
I tried with simple html page as well it run normally but when i host it on local IIS it does not work and no error is shown, nothing happens.
What am i trying to do ?
I want to create a site which will have a link to upgrade windows. To upgrade windows i am using MDT tool to deploy the task sequence, there is a VB script called LiteTouch.vb which is on the server on which MDT is installed. I need to run this file on client computer. To run the file i was running cmd on client computer and command i was running was cmd /c cscript \10.2.0.180\MyShare1\Scripts\LiteTouch.vbs /TaskSequenceID:TS001
Edited I tried to let user download a batch file which world run the commands but i need it to be run automatically without user running it. Is there some way to run it through my site.
I also tried to store my bat file on network drive H:/command.bat and then run it using the solution given in Here but it says cannot find the file file:///H/Command.bat