Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.