如何使用PowerShell为NAT配置RRaS [英] How to configure RRaS for NAT using PowerShell

查看:334
本文介绍了如何使用PowerShell为NAT配置RRaS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在寻找一种方法,使用PowerShell进行以下GUI配置:
$
服务器管理器 - >工具 - >路由和远程访问 - >右键单击计算机并选择"配置并启用路由和远程访问" - >选择"网络地址转换(NAT)"收音机盒 - >选择公共界面 - >
完成

I'm searching for a way to do the following GUI configuration with PowerShell:
Server Manager -> Tools -> Routing and Remote Access -> Right click on machine and select "Configure and Enable Routing and Remote Access"-> Select "Network address translation (NAT)" radio box -> Pick public interface -> Finish

我想在scipt中自动化这个过程,遗憾的是到目前为止还没有找到解决方案。我偶然发现了一些像New-NetNat,New-NetNatTransitionConfiguration或Install-RemoteAccess这样的CmdLets,但到目前为止还无法弄清楚如何使用它们达到目标。

I want to automate this process in a scipt and sadly haven't found a solution so far. I stumbled over a few CmdLets like New-NetNat, New-NetNatTransitionConfiguration or Install-RemoteAccess but couldn't figure out how to use them to reach ma goal so far.

我是开放的任何建议!

有人可以帮助我吗?

I'm open for any suggestion!
Can someone help me?

推荐答案

无法使用PowerShell。

Cannot be done with PowerShell.

使用netsh。 在网络和部署论坛中发布有关此问题。 这不是脚本问题。

Use netsh.  Post questions about this in networking and deployment forum.  It is not a scripting issue.

https://technet.microsoft.com/en-us/library/cc753876(v = ws.10).aspx


这篇关于如何使用PowerShell为NAT配置RRaS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆