首页 > 其他分享 >安装Microsoft Endpoint Configuration Manager(SCCM)2207

安装Microsoft Endpoint Configuration Manager(SCCM)2207

时间:2022-10-02 10:32:31浏览次数:82  
标签:Web Endpoint 2207 -- System SCCM https 172.16 安装

ADDC--172.16.8.10/172.16.8.11--winsvr2022-core--dc01/dc02.nipit.cn

SQL Server 2019 CU18--172.16.8.31--winsvr2022-core--sql01.nipit.cn

ADK for Winodws 11 22H2--172.16.8.20--winsvr2022-GUI--sccm.nipit.cn

MECM/SCCM--2207--172.16.8.20--winsvr2022-GUI--sccm.nipit.cn

1.安装Sql server 2019 enterprise:

删除powershell历史命令记录:

Remove-Item (Get-PSReadlineOption).HistorySavePath

配置服务器IP:

Get-NetIPAddress

New-NetIPAddress -InterfaceIndex 4 -IPAddress 172.16.8.31  -PrefixLength 24 -DefaultGateway 172.16.8.1

Set-DNSClientServerAddress -InterfaceIndex 4 -ServerAddress "172.16.8.10,172.16.8.11"

改名加入域:

Add-Computer -NewName "sql01" -DomainName nipit.cn -Credential n\cnadmin -Restart -Force

在DC上新建sql域管理员账号(不是必需,为方便管理):

New-ADUser -Name 'sqladmin' -SamAccountName 'sqladmin' -DisplayName 'sqladmin' -Enabled $True  -PasswordNeverExpires $True -UserPrincipalName '[email protected]' -AccountPassword (ConvertTo-SecureString "********" -AsPlainText -Force) -PassThru

$SUG = @()

$SUG = (Get-ADUser -Identity "Administrator" -Properties * ).MemberOf

ForEach ($Group in $SUG ) { Add-ADGroupMember -Identity $Group -Members "sqladmin"}

(Get-ADUser -Identity sqladmin -Properties *).MemberOf

回到sql server服务器上,插入sql server 2019安装光盘文件,盘符为E:

1)一般情况下安装:

E:\setup.exe /action=install /features=SQLEngine,Conn /SQLCOLLATION="SQL_Latin1_General_CP1_CI_AS" /skiprules=servercoreblockunsupportedfeaturescheck   /iacceptsqlserverlicenseterms /UIMode=enableUIOnServerCore

2)静默安装:

E:\setup.exe /QS /action=install /features=SQLEngine /PID=2C9JR-K3RNG-QD4M4-JQ2HR-8468J /INSTANCEDIR="D:\Program Files\Microsoft SQL Server" /SQLCOLLATION="SQL_Latin1_General_CP1_CI_AS" /INSTALLSHAREDDIR="D:\Program Files\Microsoft SQL Server" /INSTALLSHAREDWOWDIR="D:\Program Files (x86)\Microsoft SQL Server" /INSTANCENAME=MSSQLSERVER /SQLSVCACCOUNT="n\sqladmin" /SQLSVCPASSWORD="*********" /SQLSYSADMINACCOUNTS="BUILTIN\Administrators" "n\cnadmin" "n\sqladmin" /SQLSVCPASSWORD="*********"  /AGTSVCACCOUNT="n\sqladmin" /AGTSVCPASSWORD="*********" /AGTSVCSTARTUPTYPE="Automatic" /BROWSERSVCSTARTUPTYPE="Automatic" /NPENABLED="1" /skiprules=servercoreblockunsupportedfeaturescheck   /iacceptsqlserverlicenseterms /IACCEPTROPENLICENSETERMS

3)安装最新SQL server 补丁:

​https://www.microsoft.com/en-us/download/details.aspx?id=100809​

.\SQLServer2019-KB5017593-x64.exe  /qs /IAcceptSQLServerLicenseTerms /Action=Patch /INSTANCENAME="MSSQLSERVER"

查看sql server 版本确认补丁是否安装成功:

通过Powershell 查询安装的SQL Server 版本号

Install-Module -Name SqlServer

Import-Module sqlserver

Invoke-SqlCmd -query "select @@version" -ServerInstance "localhost" |fl

安装Microsoft Endpoint Configuration Manager(SCCM)2207_MECM

4)配置Windows 防火墙:

New-NetFirewallRule -DisplayName "SQLServer default instance" -Direction Inbound -LocalPort 1433,4022,135,1434,443,80,2382,2383 -Protocol TCP -Action Allow

New-NetFirewallRule -DisplayName "SQLServer Browser service" -Direction Inbound -LocalPort 1434,500,4500 -Protocol UDP -Action Allow

5)下载Microsoft SQL Server 2019 Reporting Services:

​https://www.microsoft.com/en-us/download/details.aspx?id=100122 ​

.\SQLServerReportingServices.exe /quiet /pid=2C9JR-K3RNG-QD4M4-JQ2HR-8468J /installFolder="D:\Program Files\SSRS" /norestart /iacceptlicenseterms

安装ReportingServiceTools:​​https://github.com/Microsoft/ReportingServicesTools​

Install-Module -Name ReportingServicesTools

Get-Command -Module ReportingServicesTools

安装Microsoft Endpoint Configuration Manager(SCCM)2207_MECM_02

6)在SCCM服务器上下载并安装SQL Server Management Studio:

​https://learn.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-ver15 ​

​https://aka.ms/ssmsfullsetup ​


.\SSMS-Setup-CHS.exe  /install /quiet /norestart

https://aka.ms/ssmsfullsetup?clcid=0x409 英文版

​https://download.microsoft.com/download/8/a/8/8a8073d2-2e00-472b-9a18-88361d105915/SSMS-Setup-ENU.exe​

.\SSMS-Setup-ENU.exe  /install /quiet /norestart

多等几分钟等待安装完成:

安装Microsoft Endpoint Configuration Manager(SCCM)2207_SCCM 2207_03

打开:

安装Microsoft Endpoint Configuration Manager(SCCM)2207_MECM_04

安装Microsoft Endpoint Configuration Manager(SCCM)2207_MECM_05

输入sql01:

安装Microsoft Endpoint Configuration Manager(SCCM)2207_MECM_06


安装Microsoft Endpoint Configuration Manager(SCCM)2207_MECM_07

2.接下来就是安装最新的ADK for Windows 11 22h2:​

​https://learn.microsoft.com/en-us/windows-hardware/get-started/adk-install​

ADK:

​https://myvs.download.prss.microsoft.com/dbazure/en-us_windows_11_assessment_and_deployment_kit_adk_version_22h2_x64_x86_Arm64_dvd_48117fa1.iso?t=83dce664-642a-40c6-b302-02c8eb20b055&e=1664546145&h=73151f60c485abbab2025d62b26bb148290bd183343deec722b6d7779fe439f0&su=1​

ADK WinPE addon:

​https://myvs.download.prss.microsoft.com/dbazure/en-us_windows_11_assessment_and_deployment_kit_adk_add_ons_version_22h2_x64_x86_Arm64_dvd_293e1c73.iso?t=9850880d-3a18-4f05-adf4-3fc08a88c41e&e=1664546163&h=95699084c4e6437422226b29f6f02a093d9a7fd53abf7f7df241415493d51ec1&su=1​

安装过程简略:

3.安装MECM/SCCM所需的Windows 组件:

Add-WindowsFeature Web-Windows-Auth,Web-ISAPI-Ext,Web-Metabase,Web-WMI,BITS,RDC,NET-Framework-Features,Web-Asp-Net,Web-Asp-Net45,NET-HTTP-Activation,NET-Non-HTTP-Activ,Web-Static-Content,Web-Default-Doc,Web-Dir-Browsing,Web-Http-Errors,Web-Http-Redirect,Web-App-Dev,Web-Net-Ext,Web-Net-Ext45,Web-ISAPI-Filter,Web-Health,Web-Http-Logging,Web-Log-Libraries,Web-Request-Monitor,Web-HTTP-Tracing,Web-Security,Web-Filtering,Web-Performance,Web-Stat-Compression,Web-Mgmt-Console,Web-Scripting-Tools,Web-Mgmt-Compat,RSAT-ADDS -Restart

安装Microsoft Endpoint Configuration Manager(SCCM)2207_MECM_08

4.在AD中创建并分配System Management容器权限

这里我通过powershell来实现:

# Load the AD module

Import-Module ActiveDirectory

# Figure out our domain

$root = (Get-ADRootDSE).defaultNamingContext

#Create ”System Management“ Container

New-ADObject -Type Container -name "System Management" -Path "CN=System,$root" -Passthru

安装Microsoft Endpoint Configuration Manager(SCCM)2207_MECM_09

分配权限:

# Get the current ACL for the Container

$acl = get-acl "ad:CN=System Management,CN=System,$root"

# Get the computer's SID

$computer = get-adcomputer $env:ComputerName

$sid = [System.Security.Principal.SecurityIdentifier] $computer.SID

安装Microsoft Endpoint Configuration Manager(SCCM)2207_SCCM 2207_10

$ADRight = [System.DirectoryServices.ActiveDirectoryRights] "GenericAll"

$Type = [System.Security.AccessControl.AccessControlType] "Allow"

$InheritanceType = [System.DirectoryServices.ActiveDirectorySecurityInheritance] "All"

# Create a new access control entry to allow access to the Container


$ace = New-Object System.DirectoryServices.ActiveDirectoryAccessRule($sid, $ADRight, $Type, $InheritanceType)

安装Microsoft Endpoint Configuration Manager(SCCM)2207_SCCM 2207_11

#Add the ACE to the ACL, then set the ACL to save the changes

$acl.AddAccessRule($ace)

Set-acl -aclobject $acl "ad:CN=System Management,CN=System,$root"

安装Microsoft Endpoint Configuration Manager(SCCM)2207_MECM_12

打开dsa.msc查看一下设置权限是否成功:

安装Microsoft Endpoint Configuration Manager(SCCM)2207_MECM_13

安装Microsoft Endpoint Configuration Manager(SCCM)2207_SCCM 2207_14

安装Microsoft Endpoint Configuration Manager(SCCM)2207_SCCM 2207_15

安装Microsoft Endpoint Configuration Manager(SCCM)2207_SCCM 2207_16

以上结果说明设置成功。

5.扩展AD架构:

以具有Schema Admins安全组成员的用户运行MECM/SCCM安装介质中的

SMSSETUP\BIN\X64\extadsch.exe

安装Microsoft Endpoint Configuration Manager(SCCM)2207_MECM_17

安装Microsoft Endpoint Configuration Manager(SCCM)2207_MECM_18

运行成功:找到C:\ExtADSch.log打开如下,说明AD扩展成功:

安装Microsoft Endpoint Configuration Manager(SCCM)2207_MECM_19

安装Microsoft Endpoint Configuration Manager(SCCM)2207_SCCM 2207_20

到这里准备工作已经完成,接下来就是安装MECM/SCCM 2207:

安装Microsoft Endpoint Configuration Manager(SCCM)2207_SCCM 2207_21

安装Microsoft Endpoint Configuration Manager(SCCM)2207_SCCM 2207_22

选择安装为一个CM Primary Site,点下一步:

安装Microsoft Endpoint Configuration Manager(SCCM)2207_MECM_23

输入Product Key,点下一步:

安装Microsoft Endpoint Configuration Manager(SCCM)2207_MECM_24

勾选同意,点下一步:

安装Microsoft Endpoint Configuration Manager(SCCM)2207_MECM_25

安装Microsoft Endpoint Configuration Manager(SCCM)2207_SCCM 2207_26

耐心等待下载50个文件:

安装Microsoft Endpoint Configuration Manager(SCCM)2207_MECM_27

下载完成后,勾选Chinese(Simplified)简体中文:服务器端,

安装Microsoft Endpoint Configuration Manager(SCCM)2207_MECM_28

客户端:勾选Chinese(Simplified)简体中文

安装Microsoft Endpoint Configuration Manager(SCCM)2207_SCCM 2207_29

安装Microsoft Endpoint Configuration Manager(SCCM)2207_SCCM 2207_30

安装Microsoft Endpoint Configuration Manager(SCCM)2207_MECM_31

安装Microsoft Endpoint Configuration Manager(SCCM)2207_SCCM 2207_32

安装Microsoft Endpoint Configuration Manager(SCCM)2207_SCCM 2207_33

安装Microsoft Endpoint Configuration Manager(SCCM)2207_SCCM 2207_34

安装Microsoft Endpoint Configuration Manager(SCCM)2207_SCCM 2207_35

安装Microsoft Endpoint Configuration Manager(SCCM)2207_SCCM 2207_36

安装Microsoft Endpoint Configuration Manager(SCCM)2207_SCCM 2207_37

安装Microsoft Endpoint Configuration Manager(SCCM)2207_MECM_38

安装Microsoft Endpoint Configuration Manager(SCCM)2207_MECM_39

安装Microsoft Endpoint Configuration Manager(SCCM)2207_MECM_40

安装Microsoft Endpoint Configuration Manager(SCCM)2207_SCCM 2207_41

这个错误一般发生的sql server 服务器与sccm服务器不是同一台电脑上。解决这个问题,就是将SCCM电脑账号加入到sql01的本地管理员组中,在sql01那服务器运行:

Add-LocalGroupMember -Group Administrators -Member "n\sccm$" -Verbose

或将sccm计算机账号加入多台服务器本地管理员组:

Invoke-Command -ComputerName ex01, sql01,sccm -ScriptBlock{   Add-LocalGroupMember -Group Administrators -Member n\sccm$ }

查看确认一下:

Invoke-Command -ComputerName ex01, sql01,sccm -ScriptBlock{ Get-LocalGroupMember -Group Administrators }

安装Microsoft Endpoint Configuration Manager(SCCM)2207_SCCM 2207_42

也可以通过GUI方式添加:

安装Microsoft Endpoint Configuration Manager(SCCM)2207_MECM_43

安装Microsoft Endpoint Configuration Manager(SCCM)2207_SCCM 2207_44

返回安装程序,点”Run Check“后,Failed 报警消失,其他Warming报告暂时忽略,不影响安装,点击”Begin Install“ 开始安装:

安装Microsoft Endpoint Configuration Manager(SCCM)2207_MECM_45

安装Microsoft Endpoint Configuration Manager(SCCM)2207_SCCM 2207_46

等待45分钟左右,安装完成。

安装Microsoft Endpoint Configuration Manager(SCCM)2207_MECM_47




标签:Web,Endpoint,2207,--,System,SCCM,https,172.16,安装
From: https://blog.51cto.com/ganzy/5729234

相关文章

  • docker出现Error response from daemon: driver failed programming external connect
    1.出现了如下问题点击查看代码docker:Errorresponsefromdaemon:driverfailedprogrammingexternalconnectivityonendpointtomcat01(00028237b8dd7b21dbce7......
  • endpoint is blank
    报错图 问题:简单来说使用nacos作为注册中心的时候并没有对注册中心进行配置而出现的报错   nacos注册中心采用bootstrap.yml或者bootstrap.properties文件进行......
  • 【ARXIV2207】HorNet: Efficient High-Order Spatial Interactions with Recursive Ga
    【ARXIV2207】HorNet:EfficientHigh-OrderSpatialInteractionswithRecursiveGatedConvolutions论文地址:https://hornet.ivg-research.xyz代码地址:https://githu......
  • C20220725T2 运动
    给定序列\(s\),求满足\(max\{s_{i,j}\}-min\{s_{i,j}\}\leqk\)的最大长度\(j-i\)。\(n\leq3\times10^6\)。(时限3s)没想到\(O(n\,log\,n)\)没有被卡掉。首先判......
  • C20220725T3 回文
    给定字符串\(s\),求\(s_{l,r}\)中回文串个数。多组询问,\(|s|\leq5000\),\(T\leq10^5\)。首先介绍\(O(n\timesT)\)的离谱做法(竟然没卡掉),先跑\(Manachar\),然......
  • C20220725T4 基因进化
    给出序列\(s\),可以进行翻转操作,使\(s_{1,i}\)翻转,但\(i\)只能递增,且有\(m\)个位置不能翻转。\(m\leqn\leq3\times10^5\),多组数据,\(T\leq100\)。对于前\(......
  • docker: Error response from daemon: driver failed programming external connectiv
    docker容器做端口映射报错docker:Errorresponsefromdaemon:driverfailedprogrammingexternalconnectivityonendpointnginx01(7c843d5ed27818f58179a567ebab7......
  • C20220712T3 牛半仙的妹子Tree
    给定一棵树,要求执行3种操作:给树上某一结点涂色,从下一次操作起每一次向周围传染一个单位。树上所有点变为正常询问某个点是否被感染。\(n,m\leq10^5\)。首先想到暴......
  • C20220711T4 移动
    牛牛从0出发走到\(n+1\),每秒可以选择向前走一步,向后走一步或者不走,有一些时刻不让呆在某一格,求最短到达时间,\(n\leq10^5\)。这是一道很神奇的压轴题(其实并没有什么......
  • C20220712T1 牛半仙的妹子数
    给定\(A,B,C\),操作\(K\)次,每次操作若\(A+B\leqC\)则\(A=2A,B=2B,C=C-A-B\),否则记\(A,B\)中较小的为\(W\),\(P=min(\frac{C}{2},W-1)\),则\(A=A-P,B=B+P-C,C=......