SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can somebody confirm that the WebProvisioned event is not fired when using restore-spsite?

I have made some tests and it looks like it's not the case but I would like to make sure.

If it's not the case, does somebody have an alternative of firing some code after restoring the spsite ?

share|improve this question

At a guess, I'd say no, as WebProvisioned is after a website is provisioned from a template, Restore-SPSite is essentially a database restore, no provisioning happens.

As it's a Powershell command, you can probably do what you need to do in PowerShell after the Restore-SPSite call.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.