• IT Systems Engineering

    How to Run PowerShell Commands on Remote Computers

    I found an excellent tutorial. I especially love the remote session. Once you start a remote PS session, it works like you are right on the remote computer! Note: I did not run PS as administrator (on the remote computer) and still it worked fine for me. So I am not sure why the author mentions that in the step “enabling PowerShell remoting”. How to Run PowerShell Commands on Remote Computers

  • IT Systems Engineering

    Setting a static IP using powershell

    Here is a quick way to set your IP address to a static value: $NICs = Get-WMIObject Win32_NetworkAdapterConfiguration -computername . | where{$_.IPEnabled -eq $true -and $_.DHCPEnabled -eq $true} Foreach($NIC in $NICs) {     $ip = "10.0.0.151"     $gateway = "10.0.0.1"     $subnet = "255.255.255.0"     $dns = "10.0.0.10","10.0.0.11"     $NIC.EnableStatic($ip, $subnet)     $NIC.SetGateways($gateway)     $NIC.SetDNSServerSearchOrder($dns)     $NIC.SetDynamicDNSRegistration("FALSE") } IPConfig /all Credits: Original script taken from here

  • IT Systems Engineering

    Set Dynamic IP address using powershell

    Here is a quick powershell script to set your network card TCP/IP setting to dynamic addressing: $NICs = Get-WMIObject Win32_NetworkAdapterConfiguration | where{$_.IPEnabled -eq “TRUE”} Foreach($NIC in $NICs) { $NIC.EnableDHCP() $NIC.SetDNSServerSearchOrder() } IPConfig /all   Credits: Original script taken from here