Geeks With Blogs
Developers Friendly January 2014 Entries
Starting and stopping Application Pool using Powershell
Hi,Providing sample powershell script to start and stop Application Pool of an application hosted in IIS.* Save the below script in a file called as IISCmds.ps1#Start To Start Application Pool Function fnStartApplicationPool([str... { import-module WebAdministration if((Get-WebAppPoolState $appPoolName).Value -ne 'Started') { Start-WebAppPool -Name $appPoolName } } #End To Start Application Pool#Start To Stop Application Pool Function fnStopApplicationPool([stri... { import-module ......

Posted On Thursday, January 16, 2014 4:29 AM

Creating website in remote server using PowerShell from .NET application
Hi,Through this post i am trying to demonstrate how to access remote server and create web applications on any given server using PowerShell script from .NET application. Which involves passing values as parameters and executing ps1 script and accessing result set returned from ps1 script.The same can be achieved using .Net class "ServerManager" class, however which requires lot of settings that need to be done and we might get into lot of permission issues.Below is the sample code to call ps1 script ......

Posted On Friday, January 3, 2014 1:53 AM

Copyright © Manjunath K | Powered by: GeeksWithBlogs.net