We have an issue with creating a new site collection based on a SiteDefinition located in a solution which has just been installed.
Our powershell script look like this (pseudo code):
The New-SPSite command returns the following warning : "Warning: Template is not found and is not applied"
If we run Get-SPWebTemplate in the same powershell "session" out newly deployed SiteDefinition does not show up, however if we open a new "session" our new SiteDefinition is available.
Somehow it seems that various SharePoint objects are cached or some kind of state is preserved throughout the session.
Is there a way to reset this cache/state?
View Complete Post