无人值守装配SQL Server 2008 R2

安装命令:

"F:\setup.exe" /ACTION=install/ConfigurationFile="D:\SQL Server安装\ConfigurationFile.ini" /IACCEPTSQLSERVERLICENSETERMS/ASSYSADMINACCOUNTS=".\Administrator" /SQLSYSADMINACCOUNTS=".\Administrator"

注:
1、"F:\setup.exe"表示光盘中setup的路径
2、"D:\SQL Server安装\ConfigurationFile.ini" 表示安装配置文件的路径
3、/ASSYSADMINACCOUNTS=".\Administrator",/SQLSYSADMINACCOUNTS=".\Administrator"是要添加本地的管理员账户,改为本机的即可。


配置文件:ConfigurationFile.ini

;SQLSERVER2008 Configuration File
[SQLSERVER2008]

; 为您已指定的 SQL Server 功能指定实例 ID。SQL Server 目录结构、注册表结构和服务名称将反映 SQL Server 实例的实例 ID。
INSTANCEID="MSSQLSERVER"

; 指定安装程序的工作流,如 INSTALL、UNINSTALL 或 UPGRADE。这是必需的参数。
ACTION="Install"

; 指定要安装、卸载或升级的功能。顶级功能列表包括 SQL、AS、RS、IS 和工具。SQL 功能将安装数据库引擎、复制和全文。工具功能将安装管理工具、联机丛书、BusinessIntelligence

Development Studio 和其他共享组件。
FEATURES=SQL,AS,RS,IS,Tools

; 显示命令行参数用法
HELP="False"

; 指定应将详细的安装程序日志传送到控制台。
INDICATEPROGRESS="False"

; 安装程序将不会显示任何用户界面。
QUIET="False"

; 安装程序将只显示进度,不需要任何用户交互。
QUIETSIMPLE="True"

; 指定安装程序应该安装到 WOW64 中。IA64 或 32 位系统不支持此命令行参数。
X86="False"

; 指定是否可将错误报告给 Microsoft 以便改进以后的 SQL Server 版本。指定 1 或 True 将启用此功能,指定 0 或 False 将禁用此功能。
ERRORREPORTING="False"

; 指定本机共享组件的安装根目录。
INSTALLSHAREDDIR="C:\ProgramFiles\Microsoft SQL Server"

; 指定 WOW64 共享组件的安装根目录。
INSTALLSHAREDWOWDIR="C:\Program Files(x86)\Microsoft SQL Server"

; 指定安装目录。
INSTANCEDIR="C:\ProgramFiles\Microsoft SQL Server"

; 指定可以收集 SQL Server 功能使用情况数据,并将数据发送到 Microsoft。指定 1 或 True 将启用此功能,指定 0 或 False 将禁用此功能。
SQMREPORTING="False"

; 指定默认实例或命名实例。MSSQLSERVER 是非 Express 版本的默认实例,SQLExpress 则是 Express 版本的默认实例。在安装 SQL Server 数据库引擎(SQL)、AnalysisServices (AS)或

ReportingServices (RS)时,此参数是必需的。
INSTANCENAME="MSSQLSERVER"

; 代理帐户名
AGTSVCACCOUNT="NTAUTHORITY\SYSTEM"
; 安装后自动启动服务。 
AGTSVCSTARTUPTYPE="Automatic"

; Integration Services 的启动类型。
ISSVCSTARTUPTYPE="Automatic"

; Integration Services 的帐户: 域\用户或系统帐户。
ISSVCACCOUNT="NTAUTHORITY\SYSTEM"

; 运行 Analysis Services 服务所使用的帐户的名称。
ASSVCACCOUNT="NTAUTHORITY\SYSTEM"

; 在创建服务后控制服务启动类型设置。
; ASSYSADMINACCOUNTS="WIN-77V7G8TEBRT\Administrator"
ASSVCSTARTUPTYPE="Automatic"

; Analysis Services 要使用的排序规则。
ASCOLLATION="Chinese_PRC_CI_AS"

; Analysis Services 数据文件的位置。
ASDATADIR="C:\Program Files\MicrosoftSQL Server\MSAS10_50.MSSQLSERVER\OLAP\Data"

; Analysis Services 日志文件的位置。
ASLOGDIR="C:\Program Files\MicrosoftSQL Server\MSAS10_50.MSSQLSERVER\OLAP\Log"

; Analysis Services 备份文件的位置。
ASBACKUPDIR="C:\ProgramFiles\Microsoft SQL Server\MSAS10_50.MSSQLSERVER\OLAP\Backup"

; Analysis Services 临时文件的位置。
ASTEMPDIR="C:\Program Files\MicrosoftSQL Server\MSAS10_50.MSSQLSERVER\OLAP\Temp"

; Analysis Services 配置文件的位置。
ASCONFIGDIR="C:\ProgramFiles\Microsoft SQL Server\MSAS10_50.MSSQLSERVER\OLAP\Config"

; 指定是否允许 MSOLAP 访问接口在进程中运行。
ASPROVIDERMSOLAP="1"

; SQL Server 服务的启动类型。
SQLSVCSTARTUPTYPE="Automatic"

; 启用 FILESTREAM 功能的级别(0、1、2 或 3)。
FILESTREAMLEVEL="0"

; 设置为 "1" 可为 SQL Server Express 启用 RANU。
ENABLERANU="False"

; 指定要用于数据库引擎的 Windows 排序规则或 SQL 排序规则。
SQLCOLLATION="Chinese_PRC_CI_AS"

; SQL Server 服务的帐户: 域\用户或系统帐户。
SQLSVCACCOUNT="NTAUTHORITY\SYSTEM"

; 要设置为 SQL Server 系统管理员的 Windows 帐户。
;SQLSYSADMINACCOUNTS="WIN-77V7G8TEBRT\Administrator"

; 默认值为 Windows 身份验证。使用 "SQL" 表示采用混合模式身份验证。
SECURITYMODE="SQL"

;sa 密码
SAPWD=Sa*_!

; 将当前用户设置为 SQL Server 2008 R2 Express 的数据库引擎系统管理员。
ADDCURRENTUSERASSQLADMIN="False"

; 指定 0 禁用 TCP/IP 协议,指定 1 则启用该协议。
TCPENABLED="1"

; 指定 0 禁用 Named Pipes协议,指定 1 则启用该协议。
NPENABLED="0"

; Browser 服务的启动类型。
BROWSERSVCSTARTUPTYPE="Disabled"

; 指定报表服务器 NT 服务在执行时应当使用的帐户。如果省略此值或者值为空字符串,则将使用当前操作系统的默认内置帐户。
; RSSVCACCOUNT 的用户名部分最大长度为 20 个字符,
; RSSVCACCOUNT 的域部分最大长度为 254 个字符。
RSSVCACCOUNT="NTAUTHORITY\SYSTEM"

; 指定报表服务器 NT 服务的启动模式。
; 手动 - 在手动模式(默认值)下启动服务。
; 自动 - 在自动模式下启动服务。
; 已禁用 - 服务处于禁用状态
RSSVCSTARTUPTYPE="Automatic"

; 指定报表服务器的安装模式。
; 默认值: “FilesOnly”
RSINSTALLMODE="DefaultNativeMode"

; 添加输入参数 FTSVCACCOUNT 的描述
FTSVCACCOUNT="NT AUTHORITY\LOCALSERVICE"

 


参数说明:

Microsoft (R) SQL Server 2008 R2

用法:

setup.exe /[选项]={value} /[选项]={value} ...
选项:

【ACTION】指定安装程序的工作流,如 INSTALL、UNINSTALL 或 UPGRADE。这是必需的参数。

【 ADDCURRENTUSERASSQLADMIN】Provision current user as a DatabaseEngine systemadministrator for SQL Server 2008 R2 Express.

【AGTDOMAINGROUP】Either domain user name orsystem account

【AGTSVCACCOUNT】Either domain user name orsystem account

【AGTSVCPASSWORD】Password for domain user name.Not required for system account

【AGTSVCSTARTUPTYPE】Either 1 or 0

【ALLINSTANCES】指定所有实例都将包括在安装操作中。只有在应用修补程序时才支持此参数。

【ASBACKUPDIR】The location for the AnalysisServices backup files.

【ASCOLLATION】The collation used byAnalysis Services.

【ASCONFIGDIR】The location for the AnalysisServices configurationfiles.

【ASDATADIR】The location for theAnalysis Services data files.

【ASDOMAINGROUP】Specifies the Analysis Servicesdomain group name.

【ASLOGDIR】The location for theAnalysis Services log files.

【ASPROVIDERMSOLAP】Specifies if the MSOLAP providercan run in process.

【ASSVCACCOUNT】The account used by theAnalysis Services service.

【ASSVCPASSWORD】The password for the AnalysisServices service account.

【ASSVCSTARTUPTYPE】Controls the service startup typesetting for the service.

【ASSYSADMINACCOUNTS】Specifies the list of administratoraccounts to provision.

【ASTEMPDIR】The location for theAnalysis Services temporary files.

【BROWSERSVCSTARTUPTYPE】Startup type for Browser Service.

【CLUSTERPASSIVE】指定 SQL Server 安装程序不应管理 SQL Server 服务。此选项应该仅在非Microsoft 群集环境中使用。

【CONFIGURATIONFILE】指定将用于安装程序的配置文件。

【CUSOURCE】用于更新安装程序介质的提取的累计更新文件目录。

【ENABLERANU】Set to "1" toenable RANU for SQL Server Express.

【ENU】尚未定义命令行参数 ENU 的详细帮助。

【ERRORREPORTING】指定是否可将错误报告给 Microsoft 以便改进以后的 SQL Server 版本。指定 1或 True 将启用此功能,指定 0 或 False 将禁用此功能。

【FAILOVERCLUSTERDISKS】Specifies a cluster shared disk toassociate with the SQL Serverfailover cluster instance.

【FAILOVERCLUSTERGROUP】Specifies the name of the clustergroup for the SQL Serverfailover cluster instance.

【FAILOVERCLUSTERIPADDRESSES】Specifies an encoded IP address. Theencodings aresemicolon-delimited (;), and follow the format   <IPType>;<address>;<networkname>;<subnetmask>.Supported IP types include DHCP, IPV4, and IPV6.

【FAILOVERCLUSTERNETWORKNAME】Specifies the name of the SQ LServerfailover clusterinstance.  This name is the network name that is used toconnect to SQL Server  services.

【FAILOVERCLUSTERROLLOWNERSHIP】Specifies whetherthe upgraded nodes should take ownership of thefailover instance group or not.Use 0 to retainownership in the legacy nodes, 1 to make theupgraded nodes take ownership, or 2 to let SQL ServerSetup decide when to move ownership.

【FARMACCOUNT】User account for running theSharePoint Central Administrationservice and connecting to the SharePointconfiguration database.

【FARMADMINPORT】A port number used to connectto the SharePoint CentralAdministration web application.

【 FARMPASSWORD】The password for the farmaccount.

【FEATURES】指定要安装、卸载或升级的功能。顶级功能列表包括 SQL、AS、RS、IS 和工具。SQL功能将安装数据库引擎、复制和全文。工具功能将安装管理工具、联机丛书、Business IntelligenceDevelopment Studio 和其他共享组件。

【FILESTREAMLEVEL】Level to enable FILESTREAMfeature at (0, 1, 2 or 3).

【FILESTREAMSHARENAME】Name of Windows share to be createdfor FILESTREAM FileI/O.

【FTSVCACCOUNT】User account for Full-textFilter Daemon Host.

【FTSVCPASSWORD】User password for Full-textFilter Daemon Host account.

【FTUPGRADEOPTION】Full-text catalog upgrade option.

【HELP】显示命令行参数用法

【IACCEPTSQLSERVERLICENSETERMS】通过指定此参数并接受 SQL Server 许可条款,您确认已阅读并理解使用条款的内容。

【INDICATEPROGRESS】指定应将详细的安装程序日志传送到控制台。

【INSTALLSHAREDDIR】指定本机共享组件的安装根目录。

【INSTALLSHAREDWOWDIR】 指定 WOW64 共享组件的安装根目录。

【INSTALLSQLDATADIR】The Database Engine root data directory.

【INSTANCEDIR】指定实例根目录。

【INSTANCEID】为您已指定的 SQL Server 功能指定实例 ID。SQL Server 目录结构、注册表结构和服务名称将反映 SQL Server 实例的实例 ID。

【INSTANCENAME】指定默认实例或命名实例。MSSQLSERVER 是非 Express 版本的默认实例,SQLExpress 则是 Express 版本的默认实例。在安装SQL Server 数据库引擎(SQL)、Analysis Services (AS)或ReportingServices (RS)时,此参数是必需的。

【ISSVCACCOUNT】Either domain user name orsystem account.

【ISSVCPASSWORD】Password for domain user.

【ISSVCSTARTUPTYPE】Automatic, Manual or Disabled.

【NPENABLED】Specify 0 to disable or 1to enable the Named Pipes protocol.

【PASSPHRASE】 A pass phrase farmadministrators will use to add applicationservers or Web front end servers to an existing farm.The pass phrase must be at least 8characters and contain a combination of uppercase,lowercase, numeric, and non-alphabetic characters (suchas !, $, #, %).

【PCUSOURCE】用于更新安装程序介质的提取的 Service Pack 文件目录。

【PID】指定 SQL Server 产品密钥以配置您要使用哪个版本。

【QUIET】安装程序将不会显示任何用户界面。

【QUIETSIMPLE】安装程序将只显示进度,不需要任何用户交互。

【ROLE】尚未定义命令行参数 ROLE 的详细帮助。

【RSCATALOGSERVERINSTANCENAME】The SQL Server server for the report server catalog database.

【RSINSTALLMODE】Specifies the installation modefor the report server. Validvalues include Default,DefaultSharePoint, and FilesOnly. The default value  forInstallMode is FilesOnly.

【RSSVCACCOUNT】Specify the service account ofthe report server.This value is required. If youomit this value,Setup will usethe default built-in account for the currentoperating system (either NetworkService orLocalSystem). If you specify a domain useraccount, the domain must be under 254 characters andthe user name must be under 20 characters. Theaccount name cannot contain the followingcharacters:" / \ [ ] :; | = , + * ? < >

【RSSVCPASSWORD】Specify a strong password forthe account. A strong passwordis at least 8 characters and includes acombination of upper and lower case alphanumericcharacters and at least one symbol character. Avoidspelling an actual word or name that mightbe listed in a dictionary.

【RSSVCSTARTUPTYPE】Specifies the startup mode for theReport Server service. Validvalues include Manual, Automatic,and Disabled. Thedefault value for StartupType is Manual, wherethe server is started when a request isreceived.

【RSUPGRADEDATABASEACCOUNT】Specify the account used to access theexisting report servercatalog database. This value is required. If youomit this value, Setup will use the defaultbuilt-in account for the current operating system(either NetworkService or LocalSystem). Ifyou specify a domain user account, thedomain must be under 254 characters and the user namemust be under 20 characters.The account namecannot contain the following characters:" / \ [ ] :; | = , + * ? < >

【RSUPGRADEPASSWORD】Specify a strong password for theaccount. A strong passwordis at least 8 characters and includes acombination of upper and lower case  alphanumericcharacters and at least one symbol character. Avoid spelling an actualword or name that might belisted in a dictionary.

【RULES】指定要运行的规则 ID 或规则组 ID 的列表。

【SAPWD】Password for SQL Serversa account.

【SECURITYMODE】The default is WindowsAuthentication. Use "SQL" for Mixed ModeAuthentication.

【SQLBACKUPDIR】Default directory for theDatabase Engine backup files.

【SQLCOLLATION】Specifies a Windows collationor an SQL collation to use for theDatabase Engine.

【SQLDOMAINGROUP】Domain group name for WindowsServer 2003 failoverinstance.

【SQLSVCACCOUNT】Account for SQL Server service:Domain\User or system account.

【SQLSVCPASSWORD】A SQL Server service password isrequired only for a domainaccount.

【SQLSVCSTARTUPTYPE】Startup type for the SQL Serverservice.

【SQLSYSADMINACCOUNTS】Windows account(s) to provision asSQL Server systemadministrators.

【SQLTEMPDBDIR】Directory for Database EngineTempDB files.

【SQLTEMPDBLOGDIR】Directory for the Database EngineTempDB log files.

【SQLUSERDBDIR】Default directory for theDatabase Engine user databases.

【SQLUSERDBLOGDIR】 Default directory for theDatabase Engine user database logs.

【SQMREPORTING】指定可以收集 SQL Server 功能使用情况数据,并将数据发送到 Microsoft。指定 1或 True 将启用此功能,指定 0 或 False 将禁用此功能。

【TCPENABLED】Specify 0 to disable or 1 toenable the TCP/IP protocol.

【UIMODE】UIMode 设置的有效值是 Normal、AutoAdvance。

【X86】指定安装程序应该安装到 WOW64 中。IA64 或 32 位系统不支持此命令行参数。

 

原文地址:http://www.myexception.cn/sql/1065029.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值