Quantcast
Viewing all articles
Browse latest Browse all 7696

Installing SQL 2008 r2 sp2 remotely unattended/silent through WMI

For some reason there is a difference between the WMI call I am making remotely (win32_process create metod with identity impersonate) and executing it as that same user while logged in. I ran the WMI command with just a whoami and it shows up as the administrator account I expect it to run as. When I copy and paste this cmd into a command prompt and execute it works fine logged in as the administrator account.

Here is the cmd:

cmd /c "C:\bvs\SQLServer2008R2_SP2_Slipstream\Setup.exe /IAcceptSQLServerLicenseTerms /SQLSYSADMINACCOUNTS="BUILTIN\Administrators" /INSTANCEID="MSSQLSERVER" /INSTANCENAME="MSSQLSERVER" /ACTION="Install" /FEATURES=SQLENGINE,REPLICATION,FULLTEXT,SSMS,ADV_SSMS /INDICATEPROGRESS="True" /QUIET="True" /X86="False" /ENU="True" /PCUSOURCE="C:\bvs\SQLServer2008R2_SP2_Slipstream\SP" /ERRORREPORTING="False" /INSTALLSHAREDDIR="C:\Program Files\Microsoft SQL Server" /INSTALLSHAREDWOWDIR="C:\Program Files (x86)\Microsoft SQL Server" /INSTANCEDIR="C:\Program Files\Microsoft SQL Server" /SQMREPORTING="False" /ISSVCSTARTUPTYPE="Automatic" /SAPWD="xxx" /AGTSVCACCOUNT="Administrator" /AGTSVCPASSWORD="xxx" /ISSVCACCOUNT="NT AUTHORITY\NetworkService" /SQLSVCACCOUNT="Administrator" /SQLSVCPASSWORD="xxx" /SECURITYMODE="SQL" /SQLSVCSTARTUPTYPE="Automatic" /FILESTREAMLEVEL="0" /TCPENABLED="1" /NPENABLED="0" /BROWSERSVCSTARTUPTYPE="Disabled" /RSSVCSTARTUPTYPE="Automatic" /RSINSTALLMODE="FilesOnlyMode" > "C:\bvs\Install.log" 2>&1"

Here is the summary:

Overall summary:
  Final result:                  Failed: see details below
  Exit code (Decimal):           -2068774911
  Exit facility code:            1201
  Exit error code:               1
  Exit message:                  There was an error generating the XML document.
  Start time:                    2013-03-18 15:53:17
  End time:                      2013-03-18 15:53:25
  Requested action:              RunRules

Machine Properties:
  Machine name:                  BS10564-6164T
  Machine processor count:       2
  OS version:                    Windows Server 2008 R2
  OS service pack:               Service Pack 1
  OS region:                     United States
  OS language:                   English (United States)
  OS architecture:               x64
  Process architecture:          64 Bit
  OS clustered:                  No

Package properties:
  Description:                   SQL Server Database Services 2008 R2
  ProductName:                   SQL Server 2008 R2
  Type:                          RTM
  Version:                       10
  Installation location:         C:\bvs\SQLServer2008R2_SP2_Slipstream\x64\setup\
  Installation edition:          ENTERPRISE

  Slipstream:                    True

User Input Settings:
  ACTION:                        RunRules
  CONFIGURATIONFILE:             
  ENU:                           True
  FARMACCOUNT:                   <empty>
  FARMADMINPORT:                 0
  FARMPASSWORD:                  *****
  FEATURES:                      SQLENGINE,REPLICATION,FULLTEXT,SSMS,ADV_SSMS
  HELP:                          False
  INDICATEPROGRESS:              True
  INSTANCENAME:                  MSSQLSERVER
  PASSPHRASE:                    *****
  QUIET:                         True
  QUIETSIMPLE:                   False
  RULES:                         GlobalRules
  UIMODE:                        Normal
  X86:                           False

  Configuration file:            C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20130318_155315\ConfigurationFile.ini

Detailed results:

Rules with failures:

Global rules:

There are no scenario-specific rules.

Rules report file:               The rule result report file is not available.

Exception summary:
The following is an exception stack listing the exceptions in outermost to innermost order
Inner exceptions are being indented

Exception type: Microsoft.SqlServer.Chainer.Infrastructure.ChainerInfrastructureException
    Message: 
        There was an error generating the XML document.
    Data: 
      DisableWatson = true
    Stack: 
        at Microsoft.SqlServer.Chainer.Infrastructure.DataStoreService.SerializeObject(String rootPath, Object objectToSerialize, Boolean saveToCache)
        at Microsoft.SqlServer.Chainer.Infrastructure.DataStoreService.SerializeObject(Object objectToSerialize)
        at Microsoft.SqlServer.Chainer.Infrastructure.InputSettingService.SaveInputSettingValueToObject(InputSettingInfo inputSettingInfo, List`1 values)
        at Microsoft.SqlServer.Chainer.Infrastructure.InputSettingService.SaveParsedArgumentsIntoInputSettingStore(InputSettingSource source, Dictionary`2 parsedArguments, Boolean chainerSetting, Boolean ignoreSettingsForNotAllowedScnearios)
        at Microsoft.SqlServer.Chainer.Infrastructure.InputSettingService.ProcessCommandLineArguments(String[] commandLineArguments, Boolean chainerSetting)
        at Microsoft.SqlServer.Configuration.BootstrapExtension.ProcessFeatureCommandLineArgumentsAction.ExecuteAction(String actionId)
        at Microsoft.SqlServer.Chainer.Infrastructure.Action.Execute(String actionId, TextWriter errorStream)
        at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionHelper(TextWriter statusStream, ISequencedAction actionToRun)
    Inner exception type: System.InvalidOperationException
        Message: 
                There was an error generating the XML document.
        Stack: 
                at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
                at System.Xml.Serialization.XmlSerializer.Serialize(TextWriter textWriter, Object o)
                at Microsoft.SqlServer.Chainer.Infrastructure.DataStoreService.SerializeObject(String rootPath, Object objectToSerialize, Boolean saveToCache)
        Inner exception type: System.Security.Cryptography.CryptographicException
            Message: 
                        Access is denied.
                        
            Stack: 
                        at System.Security.Cryptography.ProtectedData.Protect(Byte[] userData, Byte[] optionalEntropy, DataProtectionScope scope)
                        at Microsoft.SqlServer.Common.SqlSecureString.WriteXml(XmlWriter writer)
                        at System.Xml.Serialization.XmlSerializationWriter.WriteSerializable(IXmlSerializable serializable, String name, String ns, Boolean isNullable, Boolean wrapped)
                        at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSqlEngineSetupPublic.Write6_SqlEngineSetupPublic(String n, String ns, SqlEngineSetupPublic o, Boolean isNullable, Boolean needType)
                        at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSqlEngineSetupPublic.Write7_SqlEngineSetupPublic(Object o)


Viewing all articles
Browse latest Browse all 7696

Trending Articles