I am using a powershell script to redeploy our solution and immediatelly afterwards create a site collection.
Unfortunatelly, most of the times, the deployment script either FAILS with an ERROR, or just DOES NOT UPDATE the content that should be replaced(we experience both mis-replace of the content in the 14-th hive and the code from our assemblies).
When the script passes we left "mouth-open", when our QA complains the functionallity is not bettered - and we realise that the script has not done the work, though passed!
files on other locations in the 14-th.
In our environment we use the RTM SharePoint Server 2010.
I use the following sequence of cmd-lets:
$global:ErrorActionPreference = "Stop"
#Here, I delete site collections and content databases(If needed I'll show that code also)
$webApplication = Get-SPWebApplication $WebAppUrl
$appPoolName = $webApplication.ApplicationPool.Name
.$env:SystemRoot\System32\inetsrv\appcmd.exe recycle apppo
View Complete Post