我可以通过右键单击网络连接,打开共享选项卡并单击“允许其他网络用户通过此计算机的 Internet 连接进行连接”复选框来手动执行此操作。
现在我需要自动化这个任务。是否有命令行工具或 Powershell cmdlet 来完成此操作?
windows-7 powershell internet-connection
internet-connection ×1
powershell ×1
windows-7 ×1