操做系統:windows server 2016 , windows server 2019 web
軟件環境: redis
類型sql |
名稱數據庫 |
版本windows |
|
系統功能瀏覽器 |
TelnetClien安全 |
||
IIS服務器 |
啓用Asp.net 4.7網絡 |
||
Hyper-Vapp |
啓用管理 |
||
經常使用軟件 |
Winrar |
5.0 |
|
FireFox |
67 CHS |
||
SqlServer |
2016 |
啓用TCP 1436 |
|
Microsoft SQL Server Management Studio |
14.0.17277.0 |
||
Redis |
3.2.1 |
||
火絨安全 |
我的版 4.0 |
||
運行環境 |
DotnetFramework |
4.7.2 |
|
DotnetCoreSDK |
2.2.104 |
||
DotnetCore-IIS-hosting |
2.1.7 |
||
VC++ Runtime |
2017 |
||
防火牆 |
關閉全部防火牆 |
PS腳本
$installSql = 1
$installSSMS = 1
$installIIS =1
$installHyperV =1
$installDotnet462 =1
$installDotcore220 = 1
$installVCRuntime = 1
$installSysdiag = 1
$installRedis =1
$mainDir ="d:\"
$mainUrl = "http://192.168.10.36/soft"
$tmpPath =$mainDir + "temp\system"
$normalPath = @()
$normalPath += $tmpPath
$normalPath += $mainDir + "data\sql"
$normalPath += $mainDir + "data\web"
$normalPath += $mainDir + "app\redis"
$normalPath += $mainDir + "app\dotnet"
$normalPath += $mainDir + "Hyper-V\Virtual Hard Disks"
$normalPath += $mainDir + "Hyper-V\vm"
$firefoxFile = "FireFox.exe"
$vcruntimeFile = "vc_redist.exe"
$winrarFile = "winrar.exe"
$winrarKeyFile = "rarreg.key"
$sqlFile = "sql2016_deve_sp2.iso"
$sqlServiceName = "SQL2016"
$ssmsFile ="ssms2017.exe"
$dotnetFile = "NDP472.exe"
$dotnetCHSFile = "NDP472CHS.exe"
$dotnetcoreFile ="dotnetcoresdk-2.2.104.exe"
$dotnetcoreHostFile ="dotnet-hosting-2.1.7-win.exe"
$sysdiagFile = "sysdiag.exe"
$redisFile = "Redis.msi"
# add path
Function CreateDir($arg)
{
if (![System.IO.Directory]::Exists($arg))
{
# [System.IO.Directory]::CreateDirectory($dir);
mkdir $arg | Out - Null
}
}
Function Down($url , $file, $force)
{
$needDown = 1;
if ($force - eq 1){
$needDown = 1;
}else{
if ([System.IO.File]::Exists($file))
{
Write - Host "已存在$file,比對中..."
$1 = $url + ".md5.txt"
$2 = $file + ".md5.txt"
#Write-Host $1,$2
if (![System.IO.File]::Exists($2))
{
Invoke - WebRequest - uri $1 - OutFile $2
Unblock - File $2
}
$md5_2 = [System.IO.File]::ReadAllText($2);
$md5 = (Get - FileHash $file - Algorithm MD5).Hash
if ( $md5 - eq $md5_2){
$needDown = 0;
Write - Host "$file 文件hash相同,無需下載"
}else{
Write - Host "$file hash 爲$md5,要求爲$md5_2"
}
}
}
if ($needDown - eq 1){
Write - Host "開始下載$url 到 $file ..."
Invoke - WebRequest - uri $url - OutFile $file
Unblock - File $file
}
}
function DownloadAndInstall( $url, $file,$name,$para)
{
Down $url $file 0
Write - Host "請等待 $name 安裝界面出現並完成交互" - Foreground "Yellow"
Start - Process $file $para - Wait
Write - Host "$name 安裝完成"
}
Function ChangeSqlServerTcpPort( $name , $port )
{
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SqlWmiManagement") | Out-Null
$server_name = (Get-WmiObject -Class Win32_ComputerSystem -Property Name).Name
$Machine = new-object 'Microsoft.SqlServer.Management.Smo.Wmi.ManagedComputer' $server_name
$instance = $Machine.ServerInstances[ $name];
$ipAll = $instance.ServerProtocols['Tcp'].IPAddresses['IPAll'];
$ipAll.IPAddressProperties['TcpPort'].Value = "${port}"
$instance.ServerProtocols['Tcp'].Alter();
}
Function OpenFirewall( $name , $port , $tcp )
{
Remove - NetFirewallRule - DisplayName "$name" - ErrorAction SilentlyContinue
New - NetFirewallRule - DisplayName "$name" - Direction Inbound - LocalPort ${ port}
-Protocol ${ tcp}
-Action Allow | Out - Null
Write - Host "開放服務${name}端口${port},${tcp}"
}
Function DisableAllFirewallRule( $port )
{
Set - NetFirewallProfile - Profile Public - Enabled false
Set - NetFirewallProfile - Profile Private - Enabled false
Get - NetFirewallRule | foreach{
$flag = $_.Enabled
if ( $flag - eq 1 ){
$name =$_.DisplayName
Set - NetfirewallRule - DisplayName $name - Enabled false - ErrorAction SilentlyContinue
Write - Host "禁用防火牆 $name "
}
}
OpenFirewall "運維專用" $port tcp
Set - NetFirewallProfile - Profile Public - Enabled true
Set - NetFirewallProfile - Profile Private - Enabled true
}
Function GetRegKey($key,$name)
{
$result = (Get - ItemProperty - Path "$key" - ErrorAction SilentlyContinue).$name
return $result
#Write-Host $result
}
Function HasDotnetVersion($iscore,$version)
{
if ($iscore - eq 0){
$dotVersion = GetRegKey "HKLM:SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" "Release"
if ( $dotVersion - ge $version)
{
return GetRegKey "HKLM:SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" "Version"
}
}
else{
$x = Get - Command dotnet - ErrorAction SilentlyContinue
if ($?){
return (dir(Get - Command dotnet).Path.Replace('dotnet.exe', 'sdk') - ErrorAction Ignore | Where - Object {$_.Name - eq "$version"} | Select Name ).Name
}
}
return "";
}
Write-Host "文件夾處理"
$normalPath | foreach {
CreateDir $_
}
$winrarVersion = GetRegKey "HKLM:\SOFTWARE\WinRAR" "exe64"
if ($winrarVersion.Length -gt 0){
Write-Host "Winrar已安裝 $winrarFile"
}
else{
DownloadAndInstall "$mainUrl/system/$winrarFile" "$tmpPath\$winrarFile" "Winrar" " /install /passive /norestart"
$winrarVersion = GetRegKey "HKLM:\SOFTWARE\WinRAR" "exe64"
Down "$mainUrl/system/$winrarKeyFile" "$tmpPath\$winrarKeyFile" 0
[System.IO.File]::Copy("$tmpPath\$winrarKeyFile", [System.IO.Path]::Combine([System.IO.Path]::GetDirectoryName("$winrarVersion") , $winrarKeyFile) , 1)
}
Write-Host "安裝火狐瀏覽器"
$installFireFox = 1
$1 =Get-Item -Path "HKCU:\Software\Mozilla\Firefox\Launcher" -ErrorAction SilentlyContinue
if ($?)
{
$firefoxVersion=$1.GetValueNames()[0]
#= GetRegKey "HKCU:\Software\Mozilla\Mozilla Firefox" "CurrentVersion"
if ($firefoxVersion.Length -gt 0){
Write-Host "Winrar已安裝在 $firefoxVersion"
$installFireFox = 0
}
}
if ($installFireFox -eq 1) {
DownloadAndInstall "$mainUrl/system/$firefoxFile" "$tmpPath\$firefoxFile" "FireFox" " /install /passive /norestart"
}
Write-Host "redis處理"
if ($installRedis -eq 1){
$redisService = Get-Service Redis -ErrorAction SilentlyContinue
if($?){
Write-Host "Redis 已安裝"
$installRedis = 0
}else{
DownloadAndInstall "$mainUrl/system/$redisFile" "$tmpPath\$redisFile" "Redis" " "
}
}
Write-Host "防火牆處理"
DisableAllFirewallRule 3389
OpenFirewall sqlServer 1436 tcp
OpenFirewall BandService 3410-3415 tcp
OpenFirewall logServerWeb 5881 tcp
OpenFirewall logServer 5880 udp
OpenFirewall Redis 6379 tcp
Write-Host ""TelnetClient處理
$telnet = Get-WindowsFeature "telnet-client" | select InstallState
if($telnet.InstallState -eq "Installed"){
Write-Host "TelnetClient 已安裝"
}
else{
Install-WindowsFeature "telnet-client" | Out-Null
}
if ($installDotnet462 -eq 1){
Write-Host "dotnet處理"
$dotVersion =HasDotnetVersion 0 461814 #394802
if( $dotVersion.Length -gt 0 )
{
Write-Host "已安裝DotNet $dotVersion"
}else{
DownloadAndInstall "$mainUrl/system/$dotnetFile" "$tmpPath\$dotnetFile" "Dotnet" " /install /passive /norestart"
DownloadAndInstall "$mainUrl/system/$dotnetCHSFile" "$tmpPath\$dotnetCHSFile" "DotnetCHS" " /install /passive /norestart"
}
}
if( $installIIS -eq 1){
Write-Host "IIS處理"
Install-WindowsFeature Web-Server -ErrorAction Continue
Add-WindowsFeature Web-Server,Web-WebServer,Web-Security,Web-Filtering,Web-Common-Http,Web-Http-Errors,Web-Static-Content,Web-Default-Doc,Web-Dir-Browsing
Add-WindowsFeature Web-Performance,Web-Stat-Compression,Web-Health,Web-Http-Logging,Web-App-Dev,Web-Net-Ext45,Web-Asp-Net45,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Mgmt-Tools,Web-Mgmt-Console
Write-Host "Web 服務器(IIS) 安裝完成"
}
if ($installDotcore220 -eq 1){
Write-Host "dotnetcore處理"
$dotVersion =HasDotnetVersion 1 "2.2.104"
if( $dotVersion.Length -gt 0 )
{
Write-Host "已安裝DotNetCore $dotVersion"
}else{
DownloadAndInstall "$mainUrl/system/$dotnetcoreFile" "$tmpPath\$dotnetcoreFile" "DotnetCoreSDK" " /install /passive /norestart"
DownloadAndInstall "$mainUrl/system/$dotnetcoreHostFile" "$tmpPath\$dotnetcoreHostFile" "DotnetCore IIS Hosting" " /install /passive /norestart"
}
}
Write-Host "處理C++2017運行時"
if ($installVCRuntime -eq 1){
$vcruntimeVersion = GetRegKey "HKLM:\SOFTWARE\Microsoft\DevDiv\VC\Servicing\14.0\RuntimeMinimum" "Version"
if ($vcruntimeVersion.Length -gt 0){
if([System.Version]::Parse($vcruntimeVersion).Minor -ge 16){
$installVCRuntime = 0
Write-Host "Visual C++ Redistributable $vcruntimeVersion 已安裝" #14.12.25810 14.16.27024
}
}
if($installVCRuntime -eq 1){
DownloadAndInstall "$mainUrl/system/$vcruntimeFile" "$tmpPath\$vcruntimeFile" "Visual C++ Redistributable" " /install /passive /norestart"
}
}
Write-Host "計算機即將重啓,請在重啓後繼續執行腳本" -ForegroundColor Red
Restart-Computer
if ($installHyperV -eq 1){
Write-Host "HyperV處理"
$1 = (Get-WindowsFeature Hyper-V).InstallState
if ($1 -eq "Installed"){
Write-Host "HyperV已安裝"
Set-VMHost -ComputerName $env:COMPUTERNAME -VirtualHardDiskPath "d:\Hyper-V\Virtual Hard Disks" -VirtualMachinePath "d:\Hyper-V\VM"
}
else{
Install-WindowsFeature Hyper-V -IncludeManagementTools -Restart
}
}
if ($installSql -eq 1){
Write-Host "$sqlServiceName 處理"
$sqlService = Get-Service MSSQL`$${sqlServiceName} -ErrorAction SilentlyContinue
if($?){
Write-Host "$sqlServiceName 已安裝"
$installSql = 0
#ChangeSqlServerTcpPort $sqlServiceName 1436
#Restart-Service MSSQL`$${sqlServiceName} -Force
}
if ($installSql -eq 1){
Down "$mainUrl/system/$sqlFile" "$tmpPath\$sqlFile" 0
$sqlIni = "${tmpPath}\${sqlFile}.ini"
Down $mainUrl/system/${sqlFile}.ini $sqlIni 0
$sqlFile="$tmpPath\$sqlFile"
Write-Host "從配置文件 $sqlIni 安裝SQLServer,使用了靜默安裝開發版本,後續須要更換正式的受權序列號"
$1 = (Get-DiskImage -ImagePath $sqlFile).Attached
if (!$1){
Write-Host "加載 $sqlFile "
Mount-DiskImage -ImagePath $sqlFile | Out-Null
}
$1 = (Get-DiskImage -ImagePath $sqlFile | Get-Volume ).DriveLetter
$exe = $1 + ":\setup.exe "
$para ="/ConfigurationFile=${sqlIni}"
# & $exe $para
Write-Host "請等待SQLServer 安裝界面出現並完成交互"
Start-Process $exe $para -Wait
ChangeSqlServerTcpPort $sqlServiceName 1436
Restart-Service MSSQL`$${sqlServiceName} -Force
}
}
if ($installSSMS -eq 1){
Write-Host "SSMS處理"
$ssmsKey = GetRegKey 'HKCU:\Software\Microsoft\SQL Server Management Studio\14.0_Config' 'InstallDir'
if( $ssmsKey ){
Write-Host "SSMS已安裝在 $ssmsKey "
$installSSMS = 0
}else{
$ssmsKey = GetRegKey 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\AppEnv\14.0\Apps\ssms_14.0' 'StubExePath'
if ( $ssmsKey ){
Write-Host "SSMS已安裝在 $ssmsKey "
$installSSMS = 0
}
}
if ($installSSMS -eq 1)
{
DownloadAndInstall "$mainUrl/system/$ssmsFile" "$tmpPath\$ssmsFile" "Microsoft SQL Server Management Studio" " /install /passive "
}
}
if ($installSysdiag -eq 1){
Write-Host "火絨安全處理"
$Key = GetRegKey 'HKLM:\Software\Huorong\Sysdiag' 'InstallPath'
if( $Key.Length -gt 0 ){
Write-Host "火絨安全已安裝在 $Key "
$installSysdiag = 0
}
if ($installSysdiag -eq 1)
{
Write-Host "火絨安全安裝完成後請先退出一次" -ForegroundColor Red
DownloadAndInstall "$mainUrl/system/$sysdiagFile" "$tmpPath\$sysdiagFile" "火絨安全" " /install /passive "
}
}
@@#
數據庫配置文件
;SQL Server 2016 Configuration File
[OPTIONS]
; 指定安裝程序的工做流,如 INSTALL、UNINSTALL 或 UPGRADE。這是必需的參數。
ACTION="Install"
; 指定從命令行運行時,SQL Server 安裝程序不該顯示隱私聲明。
SUPPRESSPRIVACYSTATEMENTNOTICE="True"
;將在安裝程序用戶界面中顯示許可條款,供您審覈審閱和接受,指定從命令行運行時,設置爲True自動接受許可
IACCEPTSQLSERVERLICENSETERMS="True"
; 指定此參數並接受 Microsoft R Open 和 Microsoft R Server 條款即代表你確認已閱讀並瞭解使用條款。
IACCEPTROPENLICENSETERMS="True"
; 使用 /ENU 參數可在本地化的 Windows 操做系統上安裝英語版本的 SQL Server。
ENU="False"
; 安裝程序將不會顯示任何用戶界面。
QUIET="False"
; 安裝程序將只顯示進度,而不須要任何用戶交互。
QUIETSIMPLE="True"
; 用於控制用戶界面行爲的參數。有效值對於完整 UI 爲 Normal,對於簡化的 UI 爲 AutoAdvance,爲 EnableUIOnServerCore 則跳過 Server Core 安裝程序 GUI 塊。
;使用了QUIETSIMPLE或QUIET以後不能使用UIMODE
;UIMODE="Normal"
; 指定 SQL Server 安裝程序是否應發現和包括產品更新。有效值是 True 和 False 或者 1 和 0。默認狀況下,SQL Server 安裝程序將包括找到的更新。
UpdateEnabled="0"
; 若是提供了此參數,則此計算機將使用 Microsoft 更新檢查更新。
USEMICROSOFTUPDATE="False"
; 指定要安裝、卸載或升級的功能。頂級功能列表包括 SQL、AS、RS、IS、MDS 和工具。SQL 功能將安裝數據庫引擎、複製、全文和 Data Quality Services (DQS)服務器。工具功能將安裝共享組件。
FEATURES=SQLENGINE,REPLICATION
; 指定 SQL Server 安裝程序將獲取產品更新的位置。有效值爲 "MU" (以便搜索產品更新)、有效文件夾路徑以及 .\MyUpdates 或 UNC 共享目錄之類的相對路徑。默認狀況下,SQL Server 安裝程序將經過 Window Server Update Services 搜索 Microsoft Update 或 Windows Update 服務。
UpdateSource="MU"
; 顯示命令行參數用法
HELP="False"
; 指定應將詳細的安裝程序日誌傳送到控制檯。
INDICATEPROGRESS="False"
; 指定安裝程序應該安裝到 WOW64 中。IA64 或 32 位系統不支持此命令行參數。
X86="False"
; 指定默認實例或命名實例。MSSQLSERVER 是非 Express 版本的默認實例,SQLExpress 則是 Express 版本的默認實例。在安裝 SQL Server 數據庫引擎(SQL)、Analysis Services (AS)或 Reporting Services (RS)時,此參數是必需的。
INSTANCENAME="SQL2016"
; 指定共享組件的安裝根目錄。在已安裝共享組件後,此目錄保持不變。
INSTALLSHAREDDIR="C:\Program Files\Microsoft SQL Server"
; 指定 WOW64 共享組件的安裝根目錄。在已安裝 WOW64 共享組件後,此目錄保持不變。
INSTALLSHAREDWOWDIR="C:\Program Files (x86)\Microsoft SQL Server"
; 爲您已指定的 SQL Server 功能指定實例 ID。SQL Server 目錄結構、註冊表結構和服務名稱將包含 SQL Server 實例的實例 ID。
INSTANCEID="SQL2016"
; TelemetryUserNameConfigDescription
SQLTELSVCACCT="NT Service\SQLTELEMETRY$SQL2016"
; TelemetryStartupConfigDescription
SQLTELSVCSTARTUPTYPE="Automatic"
; 指定安裝目錄。
INSTANCEDIR="C:\Program Files\Microsoft SQL Server"
; 代理賬戶名
AGTSVCACCOUNT="NT Service\SQLAgent$SQL2016"
; 安裝後自動啓動服務。
AGTSVCSTARTUPTYPE="Automatic"
; CM 程序塊 TCP 通訊端口
COMMFABRICPORT="0"
; 矩陣如何使用專用網絡
COMMFABRICNETWORKLEVEL="0"
; 如何保護程序塊間的通訊
COMMFABRICENCRYPTION="0"
; CM 程序塊使用的 TCP 端口
MATRIXCMBRICKCOMMPORT="0"
; SQL Server 服務的啓動類型。
SQLSVCSTARTUPTYPE="Automatic"
; 啓用 FILESTREAM 功能的級別(0、一、2 或 3)。
FILESTREAMLEVEL="2"
; 要爲 FILESTREAM 文件 I/O 建立的 Windows 共享的名稱。
FILESTREAMSHARENAME="SQL2016"
; 設置爲 "1" 可爲 SQL Server Express 啓用 RANU。
ENABLERANU="False"
; 指定要用於數據庫引擎的 Windows 排序規則或 SQL 排序規則。
SQLCOLLATION="Chinese_PRC_CI_AS"
; SQL Server 服務的賬戶: 域\用戶或系統賬戶。
SQLSVCACCOUNT="NT Service\MSSQL$SQL2016"
; 設置爲 "True" 以啓用 SQL Server 服務的即時文件初始化。若是已啓用,安裝程序將授予數據庫引擎服務 SID"執行卷維護任務"特權。這可能會致使信息泄漏,由於這會容許未經受權的主體訪問已刪除的內容。
SQLSVCINSTANTFILEINIT="False"
; 要設置爲 SQL Server 系統管理員的 Windows 賬戶。
SQLSYSADMINACCOUNTS=".\Administrator"
; 默認值爲 Windows 身份驗證。使用 "SQL" 表示採用混合模式身份驗證。
SECURITYMODE="SQL"
SAPWD="Pa4432^22"
; 數據庫引擎 TempDB 文件數。
SQLTEMPDBFILECOUNT="8"
; 指定數據庫引擎 TempDB 數據文件的初始大小(MB)。
SQLTEMPDBFILESIZE="8"
; 指定每一個數據庫引擎 TempDB 數據文件的自動增加增量(MB)。
SQLTEMPDBFILEGROWTH="64"
; 指定數據庫引擎 TempDB 日誌文件的初始大小(MB)。
SQLTEMPDBLOGFILESIZE="8"
; 指定數據庫引擎 TempDB 日誌文件的自動增加增量(MB)。
SQLTEMPDBLOGFILEGROWTH="64"
; 數據庫引擎根數據目錄。
INSTALLSQLDATADIR="D:\data\sql"
; 將當前用戶設置爲 %SQL_PRODUCT_SHORT_NAME% Express 的數據庫引擎系統管理員。
ADDCURRENTUSERASSQLADMIN="False"
; 指定 0 禁用 TCP/IP 協議,指定 1 則啓用該協議。
TCPENABLED="1"
; 指定 0 禁用 Named Pipes 協議,指定 1 則啓用該協議。
NPENABLED="0"
; Browser 服務的啓動類型。
BROWSERSVCSTARTUPTYPE="Disabled"
@@#
輸出
文件夾處理
開始下載http://192.168.10.36/system/winrar.exe 到 d:\temp\system\winrar.exe ...
請等待 Winrar 安裝界面出現並完成交互
Winrar 安裝完成
開始下載http://192.168.10.36/system/rarreg.key 到 d:\temp\system\rarreg.key ...
安裝火狐瀏覽器
開始下載http://192.168.10.36/system/FireFox.exe 到 d:\temp\system\FireFox.exe ...
請等待 FireFox 安裝界面出現並完成交互
FireFox 安裝完成
redis處理
開始下載http://192.168.10.36/system/Redis.msi 到 d:\temp\system\Redis.msi ...
請等待 Redis 安裝界面出現並完成交互
Redis 安裝完成
防火牆處理
禁用防火牆 Connected User Experiences and Telemetry
禁用防火牆 Delivery Optimization (TCP-In)
禁用防火牆 Delivery Optimization (UDP-In)
…..
禁用防火牆 網絡發現(UPnP-In)
禁用防火牆 Firefox (C:\Program Files (x86)\Mozilla Firefox)
禁用防火牆 Firefox (C:\Program Files (x86)\Mozilla Firefox)
禁用防火牆 Redis
開放服務運維專用端口3389,tcp
開放服務sqlServer端口1436,tcp
開放服務BandService端口3410-3415,tcp
開放服務logServerWeb端口5881,tcp
開放服務logServer端口5880,udp
開放服務Redis端口6379,tcp
TelnetClient處理
dotnet處理
開始下載http://192.168.10.36/system/NDP472.exe 到 d:\temp\system\NDP472.exe ...
請等待 Dotnet 安裝界面出現並完成交互
Dotnet 安裝完成
開始下載http://192.168.10.36/system/NDP472CHS.exe 到 d:\temp\system\NDP472CHS.exe ...
請等待 DotnetCHS 安裝界面出現並完成交互
DotnetCHS 安裝完成
IIS處理
Success Restart Needed Exit Code Feature Result
------- -------------- --------- --------------
True Yes SuccessRest... {常見 HTTP 功能, 默認文檔, 目錄瀏覽, 請求篩選...}
警告: 必須從新啓動此服務器才能完成安裝過程。
True Yes NoChangeNeeded {}
True Yes SuccessRest... {ASP.NET 4.6, 應用程序開發, ASP.NET 4.6, ISAPI 擴...
警告: 必須從新啓動此服務器才能完成安裝過程。
Web 服務器(IIS) 安裝完成
dotnetcore處理
開始下載http://192.168.10.36/system/dotnetcoresdk-2.2.104.exe 到 d:\temp\system\dotnetcoresdk-2.2.104.exe ...
請等待 DotnetCoreSDK 安裝界面出現並完成交互
已安裝DotNetCore 2.2.104
處理C++2017運行時
Visual C++ Redistributable 14.16.27024 已安裝
SQL2016 處理
已存在d:\temp\system\sql2016_deve_sp2.iso,比對中...
d:\temp\system\sql2016_deve_sp2.iso hash 爲E352C8A057BF78FA0348757716F46AA0,要求爲CF399685C44B7988F911195401C01B12
開始下載http://192.168.10.36/system/sql2016_deve_sp2.iso 到 d:\temp\system\sql2016_deve_sp2.iso ...
從配置文件 d:\temp\system\sql2016_deve_sp2.iso.ini 安裝SQLServer,使用了靜默安裝開發版本,後續須要更換正式的受權序列號
加載 d:\temp\system\sql2016_deve_sp2.iso
請等待SQLServer 安裝界面出現並完成交互
火絨安全處理
已存在d:\temp\system\sysdiag.exe,比對中...
d:\temp\system\sysdiag.exe 文件hash相同,無需下載
請等待 火絨安全 安裝界面出現並完成交互
火絨安全 安裝完成
PS C:\Windows\system32>
@@#