Error
Command cannot be executed due to the error: The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
At G:DeploymentSP2010AutoSPInstallerAutoSPInstallerFunctions.ps1:1012 char:
18
+ Start-Process <<<< -FilePath "$env:SYSTEMROOTSystem32cmd.e
xe" -ArgumentList "/C" -LoadUserProfile -NoNewWindow -Credential $credAccount
+ CategoryInfo : InvalidOperation: (:) [Start-Process], InvalidOp
erationException
+ FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.C
ommands.StartProcessCommand.
WARNING: - Could not create local user profile for XXXXXXXXXXXXXX
Resolution
Log on to the computer as Administrator, or log on as a user who has administrative permissions.
- Right-click the My Computer icon, and then click Manage.
- In Computer Management, expand the Services and Applications node, and then click Services.
- In the details pane, right-click the Secondary Logon service, and then click Properties.
- In the Properties dialog box, set Startup type to Automatic, and then click Start.
- After the computer starts the service, click OK to close the Properties dialog box, and then close Computer Management.