You are on page 1of 2

To change IPAddress:

-----------------------------------------------------------------------------------
----------

PS C:\> New-NetIPAddress -InterfaceAlias "Ethernet" -IPAddress 192.168.90.1


-PrefixLength 24 -verbose
VERBOSE: Performing operation "New" on Target "NetIPAddress -IPv4Address
192.168.90.1
-InterfaceIndex 12 -Store Active"
VERBOSE: Performing operation "New" on Target "NetIPAddress -IPv4Address
192.168.90.1
-InterfaceIndex 12 -Store Persistent"

IPAddress : 192.168.90.1
InterfaceIndex : 12
InterfaceAlias : Ethernet
AddressFamily : IPv4
Type : Unicast
PrefixLength : 24
PrefixOrigin : Manual
SuffixOrigin : Manual
AddressState : Tentative
ValidLifetime : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource : False
PolicyStore : ActiveStore

IPAddress : 192.168.90.1
InterfaceIndex : 12
InterfaceAlias : Ethernet
AddressFamily : IPv4
Type : Unicast
PrefixLength : 24
PrefixOrigin : Manual
SuffixOrigin : Manual
AddressState : Invalid
ValidLifetime : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource : False
PolicyStore : PersistentStore

To Change DNS Server IPaddress


--------------------------------------------------
PS C:\> Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ServerAddresses
192.168.90.1 -verbose
VERBOSE: Microsoft DNS Client settings will be changed as requested.
This will affect name resolutions on the adapter "Ethernet".
VERBOSE: Microsoft DNS Client settings will be changed as requested.
This will affect name resolutions on the adapter "Ethernet".

IPV6 disabled
------------------------------
PS C:\> Get-NetAdapterBinding

Binding 'Ethernet' -DisplayName 'Internet Protocol Version 6


PS C:\> Disable-NetAdapterBinding -Name Ethernet -ComponentID ms_tcpip6 -PassThru
-verbose
VERBOSE: Disable-NetAdapterBinding 'Ethernet' -DisplayName 'Internet Protocol
Version 6
(TCP/IPv6)' -PassThru

Name DisplayName
ComponentI
---- -----------
----------
Ethernet Internet Protocol Version 6 (TCP/IPv6)
ms_tcpip6

Reverse Lookup Creation


-----------------------------------------------------------------------------------
----------

PS C:\Users\Administrator> Add-DnsServerPrimaryZone -DynamicUpdate Secure


-NetworkId '192.168.90.0/24'-ReplicationScope
Domain -Verbose

Create USer account


-----------------------------------------------------------------------------------
------

PS C:\Users\Administrator> New-ADUser -Name "Sri1" -GivenName Sridhar -Surname


Podili -SamAccountName Sridhar -UserPrinc
ipalName Sridhar@asdf.com

You might also like