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