Posts Tagged Netsh
Static and DHCP IP Address Changes Through Scripts
I have a office that uses static IP addresses at the location. The manager just got a laptop that he wants to use at the office and at his house the same static address does not work. So I made him two batch files so he can easily switch between a static IP address in the office and a dynamic IP address at home. I was thinking that this could be helpful for making sure everyone in a office is using DHCP and no one is statically assigned. It could also be really useful for changing say the DNS server address on a set of computers automatically through a login script or kaseya.
It is a super simple script. The name of the network adaptor must be changed to match the name of the network adaptor you wish to modify settings for.
Read the rest of this entry »
Change Windows Firewall From Command Line or Batch File
I have a set of scripts I run when I prep a computer for deployment. At specific points applications require that the windows firewall be turned off in order to install correctly. This is namely ACT! and imagine time. They use a bunch of odd ports during install, so their documentation tells you to just turn off the firewall. Well here is what I found with a little research. From run or in a batch file there is a simple netsh command to disable the firewall and one to again enable it.
Read the rest of this entry »
