sharepoint - New-SPWebApplication application pool account is not found -
i trying create new web application using powershell. keep getting error application pool account not found! how solve this?
i tried adding new web application defaultapppool follows:
new-spwebapplication -name "test webapp" -applicationpool "defaultapppool" -applicationpoolaccount (get-spmanagedaccount "win2k8r2sptest\administrator")
but cmdlet get-spmanagedaccount seems return empty string. tried change applicationpool sharepoint 80.
i running sharepoint foundation 2010 on standalone installation. how can fix error?
you must create managed account first win2k8r2sptest\administrator. here sequence of steps
$cred = get-credential 'win2k8r2sptest\administrator' // enter password here $adminma = new-spmanagedaccount -credential $cred new-spwebapplication -name 'test webapp' -applicationpool "defaultapppool" -applicationpoolaccount $adminma
i've tested on vanilla sps2010 sp1. think process identical foundation well.
Comments
Post a Comment