I am using powershell to install SQL server 2012. Within the same powershell script that installs SQL, I have a function to run my post install configs; however, the script fails saying it cannot find the sqlps module to import. If I close
that PS window and open a new one, the post install script will work. Has anyone encountered this? I tried reloading the profile from within the script but it errors out as well. I would like to install and configure it in one script for
automation.
↧