Windows Server 2025 开箱配置:修订间差异
删除的内容 添加的内容
小 修改错误 |
小 添加内容 |
||
| (未显示同一用户的4个中间版本) | |||
第17行:
PowerShell:
<pre>
Get-NetAdapter
New-NetIPAddress -InterfaceAlias "Ethernet" -IPAddress 192.168.137.137 -PrefixLength 24 -DefaultGateway 192.168.137.1▼
ipconfig
Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ServerAddresses 223.5.5.5,223.6.6.6▼
Remove-NetIPAddress -InterfaceAlias "NIC1" -Confirm:$false
▲New-NetIPAddress -InterfaceAlias "
Get-DnsClientServerAddress -InterfaceAlias "NIC1"
▲Set-DnsClientServerAddress -InterfaceAlias "
Test-NetConnection 192.168.137.1
</pre>
第29行 ⟶ 第38行:
将网络设为 Private(避免 Public 防火墙策略过严):
<pre>
Set-NetConnectionProfile -InterfaceAlias "
</pre>
第82行 ⟶ 第91行:
添加:ServerAdmin(移除不必要成员)。
(两者合并后: Administrator
-----
第106行 ⟶ 第115行:
slmgr -ato
slmgr /xpr
</pre>
=== 修改计算机名 ===
<pre>
Rename-Computer -NewName "PowerEdge-R730"
Restart-Computer
</pre>
第112行 ⟶ 第129行:
== 第二阶段:远程管理(按需开启,限制来源) ==
=== 1. 启用 RDP(先做防火墙)
<pre>
Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Terminal Server" -Name fDenyTSConnections -Value 0
第150行 ⟶ 第167行:
-----
=== 3. WinRM / PS Remoting / SSH
<pre>
Enable-PSRemoting -Force
| |||