This seems to work just fine for me...

 Code:
;Begin SharePoint News Page Settings
;If InGroup("LPNT\RMHO_SHP_HOMEPAGE")
If InGroup("RMHOInetAccess")
   $IEMain = "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main"
   $SHPPage = "http://sharepoint.lpnt.corpad.net"
   $CurrentStartPage = ReadValue($IEMain,"Start Page")
   If $CurrentStartPage <> $SHPPage
      $SecondaryStartPages = $CurrentStartPage+"|"+ReadValue($IEMain, "Secondary Start Pages")
      If WriteValue($IEMain,"Start Page",$SHPPage,"REG_SZ") = 0 AND WriteValue($IEMain,"Secondary Start Pages",$SecondaryStartPages,"REG_MULTI_SZ") = 0
         $nul = WriteValue($IEMain,"SharePoint Deployed","Deployed","REG_SZ")
      EndIf
   EndIf
Endif
;Endif
;End SharePoint News Page Settings

Maybe those extra ()'s on all your IF statements were causing problems. Not sure I changed anything else really. Oh I removed the extra $SecondaryHP= line...No point in setting it to Google.com if you are going to immediately set it to the registry read on the next line. Also changed variable names to make it easier to follow...mostly for my own accord.


Edited by ShaneEP (2012-08-08 08:34 PM)