叁·分

不求甚解

用户工具

站点工具


tech-notes:start

技术便笺

因为我很懒,就直接把列表放上来好了….

导出Word中全部批注

便捷导出全部批注。

→ 阅读更多...

 

制作 Windows 10 Gold Image

  1. 虚拟机管理器中新建主机,按照正常流程在虚拟机中安装好Windows系统、激活,和必要软件,以及更新。无需加入域。关机。
  2. 宿主机中运行 Powershell,执行 Set-VMProcessor -VMName <VMName> -ExposeVirtualizationExtensions $true ,以便可以在客户机中使用 Windows 沙盒功能或其他虚拟化应用。
  3. 虚拟机管理器中,设置客户机网卡开启 Mac 欺骗模式,以便客户机 Windows 沙盒或其他虚拟化应用可以使用网络。
  4. 虚拟机管理器中,卸载安装盘所在光驱、建立检查点。
  5. 重新进入客户机,运行 C:\Windows\System32\sysprep\sysprep.exe 选择 Audit Mode,勾选 Generalize,Sysprep 自动安排重启后会以管理员账户进入系统。
  6. 删除本地账户,运行 C:\Windows\System32\sysprep\sysprep.exe /oobe /generalize /shutdown /mode:vm 生成 Gold Image。
 

RDP 文件设置

RDS 导出的 .rdp 文件配置可以通过 PowerShell 或者注册表进行修改。

比如,如果想要修改显示颜色位宽,可以在运行 RD Broker 的机器上执行以下操作:

# set
Set-RDVirtualDesktopCollectionConfiguration -CollectionName "<CollectionName>" -CustomRdpProperty "session bpp:i:24"
# or
Import-Module RemoteDesktop
 
Set-RDVirtualDesktopCollectionConfiguration -CollectionName "<CollectionName>" -CustomRdpProperty "gatewayhostname:s:my.gateway.server:4343"
 
Set-RDSessionCollectionConfiguration -CollectionName "<CollectionName>" -CustomRdpProperty "camerastoredirect:s:*"
 
# reset
Set-RDVirtualDesktopCollectionConfiguration -CollectionName "<CollectionName>" -CustomRdpProperty ""

如果需要设置多个参数的话,需要使用`n换行符,如

Set-RDSessionCollectionConfiguration -CollectionName "QuickSessionCollection" -CustomRdpProperty "pre-authentication server address:s:https://remotedesktoptest-aadapdemo.msappproxy.net/`nrequire pre-authentication:i:1"

相应的,也可以直接修改注册表,位置在: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\CentralPublishedResources\PublishedFarms\

参考:

 

Windows Server Remote Access 设置

本篇将继续在 WS2022 上配置 Remote Access。在此前,需要使用 win-acme 配置好证书。

→ 阅读更多...

 
tech-notes/start.txt · 最后更改: 2022/10/31 15:37 由 Librarian