
SAPIEN homepage
PrimalScript script editor+ide
PrimalScope script debugger
Free Tools script utilities
SAPIEN Press tech books
ScriptingAnswers.com learn+share
ScriptingOutpost.com online store
Blog.Sapien.com official blog
Contact Us

Have you written a script that accomplishes some administrative task? Please share it! Just navigate to the appropriate category and click the "Contribute to this category" link!
You are here: Top > Networking
Contribute to this category
Sub-Categories
(no categories are available)
Scripts
Add DNS A and PTR Record Contributed by Jason Richardson
This script reads a text file for computer names and IP addresses and adds them to a DNS zone as A and PTR records. in order to use the script in your company you will need to modify the DNS server name and DNS zone information. If you were interested in learning how to parse a text file and / or create arrays from data in a text file this will give you a nice start.Configure IP Address Contributed by Don Jones
Be sure to fill in the IP address and subnet mask you want! Also notice that the computer name needs to be filled in.Networking Tools for Windows XP Contributed by Chris Tolentino
This is a handy GUI approach I came up with to the dos commands for testing network connectivity. Im not sure why microsoft never supplied these tools within the GUI portion of the operating system, but this script can help with that.PingHost2KXP Contributed by Jim Vierra
Ping chooses mehtod at runtime (ping or Win32_PinStatus)See changes to dynamic IP addresses Contributed by Iamindian
Allows users with dynamic IP addresses to monitor changes to their addresses. Useful if they want to access home machines from the Internet.Setting IP Addresses in WMI Contributed by Don Jones
This sets the IP address on the first network adapter configuration (Index=0) - you need to fill in the IP address and subnet mask (xxx.xxx.xxx.xxx) in this sample. This also enables static (vice DHCP) addressing and shows how to check the result of the change to see if it worked or not.update existing wins ip address to new wins server ip addresses Contributed by Ravi Shankar
This script will check if the old wins ip address present in the system (server or work station), If exists then will update with the new wins ip address. great script for updating wins ips for multiple servers in the network. works great with win 2000/xp/2003 OS. not tested in win nt 4.WMI OS Ping Contributed by jhicks91
A network ping only verifies that TCPIP is operating, a server can still have a functioning NIC that responds to pings, but an OS that has crashed. This script will query a remote system and attempt to connect via WMI. If the OS is "down" there should be a failure to connect. This script merely echoes that a server is down or unreachable, but you could execute any code you want, perhaps an email notification script. You can pass a computer name as a parameter or uncomment script code and read in a list of computers to monitor.