简体   繁体   中英

Windows Server 2008 R2 editing network settings with powershell

my goal is to edit the network settings for MS Windows Server 2008 R2 by Powershell.

eg

  • IP Configuration with DNS

Is there a way to do it with powershell?

Thanks for your help.

Best wishes, Stefan

You are a little limited with PowerShell on Windows Server 2008 R2. With the move towards Microsoft's goal of Desired State Configuration (DSC), PowerShell has been expanded beyond belief to allow pretty much anything to be configured using native cmdlets. However, these come into play with later versions of PowerShell. You can install PowerShell 5 on Win2k8R2, but the more powerful cmdlets (such as ) still won't be available. )仍然不可用。

If you're running Windows Server 2012 or 2016, progressively more and more options become available.

You may therefore still have to use from a PowerShell script to do what you want to do. 来执行所需的操作。 This is still a perfectly valid option.

Good luck.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM