Hi All,
Hope u guys doing great,I am creating a tool to reset IIS . I dono how to RESET IIS in local as well as server(using credentials ) using C#.net code. Can anyone post the code if you have done this already?
Cheers
N
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
shrikant shrikantPosted Nov 4, 2012, 1:48 AM
eagerly waiting for your source code
Thanks a lot for your help.
narasimman gPosted Nov 3, 2012, 1:49 PM
shrikant shrikantPosted Nov 3, 2012, 1:24 PM
Will you please provide me the source code to reset the iis remotely....
Thanks
Shri......
narasimman gPosted Oct 24, 2011, 1:20 PM
Thanks a lot,
I got it ;)
Vipul KelkarPosted Oct 24, 2011, 9:14 AM
Win32_Process class will help you acheive this. if you are not familier to WMI you can refer to these articles
http://www.codeproject.com/KB/cs/Remote_Process_using_WMI_.aspx
http://www.c-sharpcorner.com/UploadFile/Vipul.Kelkar/9626/
Vipul KelkarPosted Oct 24, 2011, 9:09 AM
yes this is possible. The System.Diagnostics provides a process class that lets you create new process through code. you can reset IIS as
Process p = new Process();
p.StartInfo = new ProcessStartInfo("iisreset.exe");
p.Start();
this will start resetting the IIS