Search

Enable Default Gateway to be set using the Set-NetIPAddress command for Windows 8 and Server 2012 by ginsu1

Active

5
0
Sign in
to vote
Type: Suggestion
ID: 775178
Opened: 12/26/2012 8:41:31 PM
Access Restriction: Public
0
Workaround(s)
Currently powershell enables this capability via the New-IPAddress command only. If we are to eventually stop using netsh to manage settings, then kindly add the -DefaultGateway option to the Set-NetIPAddress command.
Details (expand)
How often does this happen?
Always Happens
Have you seen this problem before in this product?
I don't know if this issue existed previously
Reproduction Steps
1. Start PowerShell or PowerShell ISE in Windows Server 2012.
2. Type: get-help new-netipaddress -detailed to view that one can specify -DefaultGateway
3. Type: get-help set-netipaddress -detailed to view that one cannot specify -DefaultGateway
Expected Results
I expected to be able to specify the default gateway for an IPv4 address using the Set-NetIPAddress command.
File Attachments
0 attachments
Sign in to post a comment.
Sign in to post a workaround.