my goal is to edit the network settings for MS Windows Server 2008 R2 by Powershell.
e.g.
- IP Configuration with DNS
Is there a way to do it with powershell?
Thanks for your help.
Best wishes, Stefan
my goal is to edit the network settings for MS Windows Server 2008 R2 by Powershell.
e.g.
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 Set-NetIPAddress) 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 NETSH.EXE from a PowerShell script to do what you want to do. This is still a perfectly valid option.
Good luck.