0

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

1
  • This doesn't appear to have anything to do with programming. You might be looking for Server Fault if this is a networking problem. Commented Mar 9, 2017 at 20:43

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.