配置并启用路由和远程访问
有没有办法启用并配置 路由和远程访问 在 Windows Server 2008 r2 上使用 (c#,vb).net 脚本?我需要做的是:
- 启用路由和远程访问
- 配置:
- 选择:虚拟专用网络 (VPN) 和 NAT
- 根据给定的 IP 子网选择要使用的网络接口
- 选择:分配 IP:自动 ...等等。
Is there a way to enable and than configure routing and remote access on windows server 2008 r2 using a (c#,vb).net script? What i need to do is:
- Enable Routing and Remote access
- Configuration:
- Select: Virtual Private Network (VPN) and NAT
- Choose Network Interface to use based on given IP subnet
- Select: Assign IP: Automatic
...and so on.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这不是解决您问题的高保真解决方案,但以下技术在很多情况下帮助了我。
通常这种技术足以捕获配置更改。唯一失败的情况是编写的程序不使用注册表时。
一旦您清楚地了解哪些注册表项与更改相关联,您就可以编写一些小东西(您选择的语言)来适当地设置注册表项。
不如“将这些键更改为 X”之类的答案好;但是,您会发现上述技术通常可重用于各种面向脚本的配置项(前提是它们是通过注册表实现的)。
It is not a high-fidelity solution to your problem, but the following technique has helped me out in a lot of situations.
Often this technique will be enough to capture configuration changes. The only time it fails is when a program is written to not use the registry.
Once you have a clear picture of which registry keys are associated with the changes, you can script up some small thing (language of your choice) to set the keys appropriately.
Not as good as an answer like "change these keys to X"; but, you'll find that the technique above are typically reusable for a variety of script oriented configuration items (provided that they are effected through the registry).