9 replies
by mebudman
You can not change a win9x ip on the fly requires reboot, you can under certain conditions on nt, most require reboot, 2000 doesn't require reboot. You could possibly script the change in 2000 but not the others. as for a printer the command is
NET USE LPT1: \\servername\printersharename
Hope this helps.
by demosthenes
by mebudman
You can not change a win9x ip on the fly requires reboot, you can under certain conditions on nt, most require reboot, 2000 doesn't require reboot. You could possibly script the change in 2000 but not the others. as for a printer the command is
NET USE LPT1: \\servername\printersharename
Hope this helps.
by demosthenes
by mckaytech
The answers above work for a shared printer so I won't address that piece.
For the IP piece, you could use a Kixtart script to write new values into the registry and then cause a re-boot after the changes are made. However, if you find yourself doing this very often, you might want to consider implementing DHCP because it provides a lot better centralized management of IP addresses.
There might be other ways if you wanted to share what you need to accomplish (re-subnetting an organization, roaming users, etc.)
paul
by demosthenes
by tamj123
This is a VBscript for change Ip address. You'll only need to modify the IP Address and Subnet Mask values
Set oLocator = New SWbemLocator
Set oServices = oLocator.ConnectServer(, "root\cimv2")
Set oObject = oServices.Get("Win32_NetworkAdapterConfiguration.Index=0")
Dim asIPAddress
Dim asSubnetMask
asIPAddress = Array("xxx.xxx.xxx.xxx")
asSubnetMask = Array("xxx.xxx.xxx.xxx")
Set oMethod = oObject.Methods_("EnableStatic")
Set inParam = oMethod.InParameters.SpawnInstance_()
inParam.IPAddress = asIPAddress
inParam.SubnetMask = asSubnetMask
Set outParam = oObject.ExecMethod_("EnableStatic", inParam)
If outParam.returnValue = 0 Then
MsgBox "Method Succeeded."
Else
MsgBox "Method Failed. " & CStr(outParam.returnValue)
by demosthenes
by demosthenes
This discussion is closed to new replies.
Trending Networks posts
Sort by Trending