Network için kullanılabilecek PowerShell Komutları

IP Konfigürasyonu
Get-NetIPConfiguration

Tüm Adaptörleri Listeleme
Get-NetAdapter


Network Adaptörünü İsimlendirme
Get-NetAdapter -Name *Ethernet*

Detaylı Network Konfigürasyonlarını Görmek
Get-NetAdapter | ft Name, Status, Linkspeed, VlanID

Network Adaptörünün 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ı Değiştirme
Rename-NetAdapter -Name “Wireless Network Connection” -NewName “Wireless”

IP ve DNS Bilgilerini listelemek
Get-NetAdapter -Name “Local Area Connection” | Get-NetIPAddress

Sadece IP4 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

IP adresini değiştirme
Set-NetIPAddress -InterfaceAlias “Wireless” -IPv4Address 192.168.12.25 -PrefixLength “24”

IP Adresini Silme
Get-NetAdapter -Name “Wireless” | Remove-NetIPAddress

DNS bilgisini ekleme
Set-DnsClientServerAddress -InterfaceAlias “Wireless” -ServerAddresses “10.10.20.1”,”10.10.20.2″

Bir arayüzde DHCP’yi etkinleştirme
Set-NetIPInterface -InterfaceAlias “Wireless” -Dhcp Enabled

Ping Atmak
Test-NetConnection -ComputerName www.serdark.net

Birden Fazla IP’ye Ping Atmak
1..99 | % { Test-NetConnection -ComputerName x.x.x.$_ } | FT -AutoSize

Trace komutu
Test-NetConnection www.serdark.net –TraceRoute

Açık Portları listelemek
Test-NetConnection -ComputerName www.serdark.net -Port 80
Test-NetConnection -ComputerName www.serdark.net -CommonTCPPort http

NSLOOKUP
Resolve-DnsName www.serdark.net
Resolve-DnsName www.serdark.net -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 Client bilgileri
Get-SmbClientConfiguration

Get-SmbConnection
SMB Mutlichannel Connection
Get-SmbMutlichannelConnection

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

SMB RDMA adaptörlerini görmek
Get-NetAdapterRdma

HYPER-V NETWORK KOMUTLARI
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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Optimization WordPress Plugins & Solutions by W3 EDGE
Copy Protected by Chetan's WP-Copyprotect.
%d blogcu bunu beğendi: