At F:\temp\script\sp2010FarmConfig.ps1:484 char:9

+ foreach <<<< ($objUser in $farmadmins.Users)

+ CategoryInfo : NotSpecified: (:) [], ExtendedTypeSystemException

+ FullyQualifiedErrorId : ExceptionInGetEnumerator

2.

3. Click site persissions ,then click and the user to site collection

4. Create root sites

Unable to add NT AUTHORITY\authenticated users into Contribute for Index operation failed; the array index evaluated to null

missing the AuthenUser="Read" at the RootSites

============= Creating Root Sites ==========

the root site  http://ent161.sharepoint.hp.com already exists in farm.

Unable to add NT AUTHORITY\authenticated users into Contribute for http://ent161.sharepoint.hp.com

Exception calling "Add" with "1" argument(s): "Attempted to perform an unauthorized operation."

When I check the $web, found there are some exceptions:

Exception getting "SystemAccount": "Unable to cast COM object of type 'Microsoft.SharePoint.Library.SPRequestInternalClass' to interface type 'Microsoft.SharePoint.Library.ISPRequest'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{BDEADF28-C265-11D0-BCED-00A0C90AB50F}' failed due to the following error: Bad variable type. (Exception from HRESULT: 0x80020008 (DISP_E_BADVARTYPE))."