朋友圈

1354 篇订阅
杨杨得亿 杨杨得亿

Windows 更改mstsc远程桌面端口

文章介绍:快速更改Windows远程桌面端口号参考链接 一、查看当前端口号 1.1、打开CMD Windows+X选择:Windows PowerShell(管理员)(A) 1.2、查看命令 Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "PortNumber" 二、更改端口号 更改远程桌面端口为:5200 $portvalue = 5200Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "PortNumber" -Value $portvalue New-NetFirewallRule -DisplayName 'RDPPORTLatest-TCP-In' -Profile 'Public' -Direction Inbound -Action Allow -Protocol TCP -LocalPort $portvalue New-NetFirewallRule -DisplayName 'RDPPORTLatest-UDP-In' -Profile 'Public' -Direction Inbound -Action Allow -Protocol UDP -LocalPort $portvalue 三、查看端口号 Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "PortNum...

杨杨得亿 杨杨得亿

Windows 更改mstsc远程桌面端口

文章介绍:快速更改Windows远程桌面端口号参考链接 一、查看当前端口号 1.1、打开CMD Windows+X选择:Windows PowerShell(管理员)(A) 1.2、查看命令 Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "PortNumber" 二、更改端口号 更改远程桌面端口为:5200 $portvalue = 5200Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "PortNumber" -Value $portvalue New-NetFirewallRule -DisplayName 'RDPPORTLatest-TCP-In' -Profile 'Public' -Direction Inbound -Action Allow -Protocol TCP -LocalPort $portvalue New-NetFirewallRule -DisplayName 'RDPPORTLatest-UDP-In' -Profile 'Public' -Direction Inbound -Action Allow -Protocol UDP -LocalPort $portvalue 三、查看端口号 Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "PortNum...

杨杨得亿 杨杨得亿

Windows 暂停更新脚本

文章介绍:快速关闭Windows更新 一、未暂停 二、暂停更新脚本 使用说明:新建txt文本文档,然后把后缀改成.reg保存,然后双击运行即可暂停Windows更新。 Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings]"FlightSettingsMaxPauseDays"=dword:00002685"PauseFeatureUpdatesStartTime"="2023-08-11T00:56:48Z""PauseFeatureUpdatesEndTime"="2050-08-11T00:56:45Z""PauseQualityUpdatesStartTime"="2023-08-11T00:56:48Z""PauseQualityUpdatesEndTime"="2050-08-11T00:56:45Z""PauseUpdatesExpiryTime"="2050-08-11T00:56:45Z" 三、恢复更新脚本 使用说明:新建txt文本文档,然后把后缀改成.reg保存,然后双击运行即可恢复更新。 Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings]"FlightSettingsMaxPauseDays"=-"PauseFeatureUpdatesStartTime"=-"PauseFeatureUpdatesEndTime"=-"PauseQualityUpdatesStartTime"=-"PauseQualityUpdatesEndTime"=-"PauseUpd...

杨杨得亿 杨杨得亿

Windows 暂停更新脚本

文章介绍:快速关闭Windows更新 一、未暂停 二、暂停更新脚本 使用说明:新建txt文本文档,然后把后缀改成.reg保存,然后双击运行即可暂停Windows更新。 Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings]"FlightSettingsMaxPauseDays"=dword:00002685"PauseFeatureUpdatesStartTime"="2023-08-11T00:56:48Z""PauseFeatureUpdatesEndTime"="2050-08-11T00:56:45Z""PauseQualityUpdatesStartTime"="2023-08-11T00:56:48Z""PauseQualityUpdatesEndTime"="2050-08-11T00:56:45Z""PauseUpdatesExpiryTime"="2050-08-11T00:56:45Z" 三、恢复更新脚本 使用说明:新建txt文本文档,然后把后缀改成.reg保存,然后双击运行即可恢复更新。 Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings]"FlightSettingsMaxPauseDays"=-"PauseFeatureUpdatesStartTime"=-"PauseFeatureUpdatesEndTime"=-"PauseQualityUpdatesStartTime"=-"PauseQualityUpdatesEndTime"=-"PauseUpd...

龙儿之家 龙儿之家

Map类方法整理(jdk8)

前言 今天在查看力扣周赛385题解时,发现了几个我平时没注意的map方法,看了jdk相关的源码,感觉很巧妙,可以帮我节省代码,于是乎顺带着整个Map类的方法都过了一遍,下面是我看后整理的内容。 Map类中包括了以下方法: clear() compute(K,BiFunction computeIfAbsent(K,Function computeIfPresent(K,BiFunction containsKey(Object) containsValue(Object) entrySet() equals(Object) forEach(BiConsumer get(Object) getOrDefault(Object, V) hashCode() isEmpty() keySet() merge(K,V,BiFunction put(K,V) putAll(Map putIfAbsent(K,V) remove(Object) remove(Object,Object) replace(K,V,V) replace(K,V) replaceAll(BiFunction size() values() 方法详解 clear() 源码: /** * Removes all of the mappings from this map (optional operation). * The map will be empty after this call returns. * * @throws UnsupportedOperationException if the <tt>clear</tt> operation * is not supported by this map */void clear(); 功能:移除Map中所有的键值对。 compute...

© 2026 龙儿之家