Thursday, December 24, 2020

 

PowerShell Command 


New-NetIPAddress [-IPAddress] <String> [-DefaultGateway <String>] [-AddressFamily <AddressFamily>] [-Type <Type>] [-PrefixLength <Byte>] [-ValidLifetime <TimeSpan>] [-PreferredLifetime <TimeSpan>] [-SkipAsSource <Boolean>] [-PolicyStore <String>] -InterfaceIndex <UInt32> [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-AsJob] [-WhatIf] [-Confirm] [<CommonParameters>]


CMD Command: 

ipconfig/release
ipconfig/renew
ipconfig/release

PowerShell Command:

Set-DnsClientServerAddress [-InterfaceAlias] <String[]> [-ServerAddresses <String[]>] [-Validate] [-ResetServerAddresses] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-AsJob] [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]

CMD Command:

ipconfig /flushdns
ipconfig /registerdns

NETSH winsock reset catalog NETSH int ipv4 reset reset.log NETSH int ipv6 reset reset.log exit


No comments:

Post a Comment