IP Address etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
IP Address etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster

22 Nisan 2016 Cuma

POWERSHELL İLE TEMEL NETWORK KONFİGÜRASYONLARI

POWERSHELL İLE TEMEL NETWORK KONFİGÜRASYONLARI

IP konfigürasyonunu görmek
Get-NetIPConfiguration
Tüm Network Adaptörlerini görmek
Get-NetAdapter
Network Adaptörünü isimlendirmek

Get-NetAdapter -Name *Ethernet*
Detaylı Network Konfigürasyonlarını görmek
Get-NetAdapter | ft Name, Status, Linkspeed, VlanID
Driver bilgilerini görmek
Get-NetAdapter | ft Name, DriverName, DriverVersion, DriverInformation, DriverFileName
Network Adaptörünün donanım bilgilerini görmek

Get-NetAdapterHardwareInfo

Network Adaptörünü etkinleştirmek  ve devre dışı bırakmak
Disable-NetAdapter -Name "Wireless Network Connection"
Enable-NetAdapter -Name "Wireless Network Connection"

Network Adaptörünün adını yenilemek
Rename-NetAdapter -Name "Wireless Network Connection" -NewName "Wireless"
POWERSHELL İLE IP KONFİGÜRASYONU YAPMAK
IP ve DNS bilgilerini görüntülemek
Get-NetAdapter -Name "Local Area Connection" | Get-NetIPAddress
Sadece IP adresini görüntülemek
(Get-NetAdapter -Name "Local Area Connection" | Get-NetIPAddress).IPv4Address
DNS bilgilerini görüntülemek
Get-NetAdapter -Name "Local Area Connection" | Get-DnsClientServerAddress
IP ADRES ataması yapmak
New-NetIPAddress -InterfaceAlias "Wireless" -IPv4Address 192.168.1.95 -PrefixLength "24" -DefaultGateway 192.168.1.1
Varolan IP adresini değiştirmek
Set-NetIPAddress -InterfaceAlias "Wireless" -IPv4Address 192.168.12.25 -PrefixLength "24"
IP Adresini kaldırmak
Get-NetAdapter -Name "Wireless" | Remove-NetIPAddress
DNS Server girmek
Set-DnsClientServerAddress -InterfaceAlias "Wireless" -ServerAddresses "10.10.20.1","10.10.20.2"
Bir interface (arayüz)’de DHCP’yi etkinleştirmek
Set-NetIPInterface -InterfaceAlias "Wireless" -Dhcp Enabled

POWERSHELL İLE PİNG KOMUTLARI
Ping atmak
Test-NetConnection -ComputerName www.ahmetmutlu.blogspot.com
Birden fazla ip’ye ping atmak
1..99 | % { Test-NetConnection -ComputerName x.x.x.$_ } | FT -AutoSize

Trace atmak
Test-NetConnection www.ahmetmutlu.blogspot.com  TraceRoute

Açık portları görmek
Test-NetConnection -ComputerName www.ahmetmutlu.blogspot.com -Port 80
Test-NetConnection -ComputerName www.ahmetmutlu.blogspot.com -CommonTCPPort http

NSLOOKUP
Resolve-DnsName www.ahmetmutlu.blogspot.com
Resolve-DnsName www.ahmetmutlu.blogspot.com -Type MX -Server 8.8.8.8

ROUTE
Get-NetRoute -Protocol Local -DestinationPrefix 192.168*
Get-NetRoute -InterfaceAlias Wi-Fi
New-NetRoute –DestinationPrefix "10.0.0.0/24" –InterfaceAlias "Ethernet" –NextHop 192.168.1.1

NETSTAT
Get-NetTCPConnection
Get-NetTCPConnection –State Established

NIC TEAMING
New-NetLbfoTeam -Name NICTEAM01 -TeamMembers Ethernet, Ethernet2 -TeamingMode SwitchIndependent -TeamNicName NICTEAM01 -LoadBalancingAlgorithm Dynamic


SMB KOMUTLARI
SMB Client bilgileri
Get-SmbClientConfiguration

SMB CONNECTION
Get-SmbConnection

SMB Mutlichannel Connection
Get-SmbMutlichannelConnection

SMB Açık dosyaları görmek
Get-SmbOpenFile

SMB Direct (RDMA) adaptörlerini görmek
Get-NetAdapterRdma

Hyper-V Network komutları
Get and set Network Adapter VMQ settings
Get-NetAdapterVmq
# Disable VMQ
Set-NetAdapterVmq -Enabled $false
# Enable VMQ
Set-NetAdapterVmq -Enabled $true
VM Network Adapter
Get-VMNetworkAdapter -VMName Server01
VM Network Adapter IP Adresini görmek
(Get-VMNetworkAdapter -VMName NanoConHost01).IPAddresses
VM Network Adapter Mac Addresses görmek
(Get-VMNetworkAdapter -VMName NanoConHost01).MacAddress