IIS7 WMI Acess through Powershell to recycle Apppools

Recently while performing application installs, I had to recycle apppools on around 100 servers I was thinking this should be easy, it should be just a one liner Invoke-command -computername (get-content \\utilityserver\serverlist\servers.txt) -scriptblock {import-module webadministration;Restart-WebAppPool -name myapppool} Or for all the apppools Invoke-command -computername (get-content \\utilityserver\serverlist\servers.txt) -scriptblock {import-module webadministration;gci ‘IIS:\AppPools’ -verbose | Restart-WebAppPool} But suddenly I found out…

0

Remotely tweak powershell execution policies without powershell remoting.

Today I was trying to schedule a powershell command to execute via scheduled task on all my machines.  Copied the powershell script to execute on all the machines ran a for loop as follows to create the scheduled tasks on all the machines. for /f %i in (\\utilityserver\servers.txt) do schtasks /s %i /create /TN custom_task…

2

SharePoint 2010 sandboxed code solutions and web proxy.

Recently I was working on an escalation where my customer has a sandbox code solution deployed into his site collection, the sandbox site collection was calling an external URL to fill in some data into the webpage and it is not working. The same code was working in production and customer was having issues with…

1

Automated Eventlog export – Windows 2008 & 2008 R2

It is common to receive requests for errors and exceptions from production servers by application development teams, providing this data on demand is less efficient due to the overhead of support procedures , hence the need to automate this . For environments where you have dedicated development team and do not require filtering between different…

2

Add security for default WSMAN configuration – Remotely

Recently I was chatting with one of my friends  about Powershell remoting  and WSMAN . He was telling about how he got flagged by security for running WINRM on 5985 which is the default port on windows 2008r2 . I was like are you serious ? 5985 is not a standard port and his reply…

1

Provide access to private keys — Commandline vs Powershell

On www.microsoft.com we have a number of applications that use certs to  access other web services, the way we do is by installing the certificate with the private key into the local machine store and provide access to the application pool identity to the private key and use the serial number or the thumbprint of the…

2

Hey dude , one of your servers is broken .Part-2

When it comes to to  IIS versions, there was a major face lift starting with IIS6 and with that the resource kit got beefy too. For this post we will cover tinyget in the IIS 6 resource kit if you are looking for a download location http://www.microsoft.com/downloads/en/details.aspx?FamilyID=56fc92ee-a71a-4c73-b628-ade629c89499&displaylang=en The best features of tinyget is You can control the…

0

Hey dude , one of your servers is broken .Part-1

For engineers who manage IIS clusters one of the main challenges is how to keep content in sync across the farm . One broken server in a farm can cause a broken user experience  as when request bounce back between machines they may land on a machine that does not have the content , kicking them over…

0

Sharepoint 2010 password changes with Powershell. Relief from stsadm.

For operation engineers who are experienced with Sharepoint 2007 know  the old stsadm process to change passwords  http://support.microsoft.com/kb/934838  is cumbersome . Sharepoint 2010 is here with powershell integration making it easy to change the passwords for sharepoint managed accounts whose passwords are not set to change automatically when nearing expiration.  I  use powershell end to end to 1)…

5

My new blog

My name is Vincent Baby .I am a member of the MSCOM operations team which manages some of the important Microsoft sites like www.microsoft.com , mobile.Microsoft.com ,downloads.microsoft.com, search.microsoft.com  and its associated publishing systems to publish to these sites. In my day to day activities I deal with lot of IIS , share point , Hyper-V, different…

0