Received this error "new-spwebapplication cannot bind argument be parameter applicationpool because it is null" after creating the my sites. Digged deeper, found out that the variable $mysiteAppPool on line 3298 is not initialized and is used in some scenario. I installed the web sites to non standard ports, not sure whether that caused the issue or not.
Anyway, I manually initialized the variable $mysiteAppPool to the applicationpool in order for the script to continue.
Received this error "new-spwebapplication cannot bind argument be parameter applicationpool because it is null" after creating the my sites. Digged deeper, found out that the variable $mysiteAppPool on line 3298 is not initialized and is used in some scenario. I installed the web sites to non standard ports, not sure whether that caused the issue or not.
Anyway, I manually initialized the variable $mysiteAppPool to the applicationpool in order for the script to continue.