I have a WebProvisioned event receiver and i do some work in this event receiver. When i create new webs from powershell, it seems the event receiver does not fire? Is this an expected situation? How can i make event receiver work, when i am creating items from powershell?
I have done it in the past so it should be working fine.
- Are you running cmd-let with full (administrator) permissions?
- Also make sure, account creating the webs have enough privileges to execute (i.e. full control of web application)?
- Would you mind posting your
webtemp xml, because there could be a problem with provisioning providers in
webtemp xml, I have seen it so many times in the past.