Difference between revisions of "小代码大作用:电脑开荒代码"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
<syntaxhighlight lang="powershell" line> |
<syntaxhighlight lang="powershell" line> |
||
# 文件 set-network-private.ps1 内容 |
# 文件 set-network-private.ps1 内容 |
||
+ | # 用于把私有网络改为公用网络,实现全屋共享 |
||
# Requires -RunAsAdministrator |
# Requires -RunAsAdministrator |
||
Set-NetConnectionProfile -InterfaceAlias "以太网" -NetworkCategory Private |
Set-NetConnectionProfile -InterfaceAlias "以太网" -NetworkCategory Private |
Revision as of 11:02, 19 September 2023
Windows 可用
1# 文件 set-network-private.ps1 内容
2# 用于把私有网络改为公用网络,实现全屋共享
3# Requires -RunAsAdministrator
4Set-NetConnectionProfile -InterfaceAlias "以太网" -NetworkCategory Private