Making multiple changes on large network through the console
Is there a way for the console to modify the dns, screensaver, and timezone all en masse?
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?You can do these things by writing scripts and deploying them from the console. I don't have any example scripts at my immediate disposal but I'll try to dig up some examples. If anyone reading this is a scripting guru and wants to toss one in, please feel free.
I’m happy
-
Inappropriate?Ok - I have a script that changes the static IP to DHCP and one for changing the timezone. The scripts that I have tried for resetting the WINS in the DNS does not work and I am still looking for one that changes the DNS Suffix (from .com to .local). Also - the built in feature to change the computer name seems to only change the name in the console and not on the actual PC.
Steve, can you help? -
haha - I know. I don't know why they chose that as the default avatar. I think that you can change it in your settings, though. -
Inappropriate?Let me look for a vbs script for that. I know that it has to be possible.
If it didn't change the computer name, it was probably due to an authentication problem or something that may be visible in the remote computer's event log. You also may need to do a reboot o the remote computer. -
Inappropriate?Yeah - I looked through the event log and did not find anything there. I also use the domain admin profile and I had rebooted -
-
Inappropriate?The newer Console version (2008.6.11.218) fixed the PC name change problem - Thanks....
Have you thought anymore about the DNS suffix problem? -
Inappropriate?Here's an example of how to change from DHCP to static using a script: http://support.microsoft.com/kb/257748
You can push this using VNCScan.
I’m happy
-
Inappropriate?Ok, - I got a script that changes a static IP to a DHCP setting and this one actually works... (VBS)
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colNetAdapters = objWMIService.ExecQuery _
("Select * from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE")
For Each objNetAdapter In colNetAdapters
errEnable = objNetAdapter.EnableDHCP()
errDNS = objNetAdapter.SetDNSServerSearchOrder()
errDDNS = objNetAdapter.SetDynamicDNSRegistration
Next
I still have that DNS suffix problem lingering...(.com to .local) that I need to address. There are 1400 PC's in my network and I have 5 admins - I am trying to bring our network into the 90's. Is there anyone out there that can lend a helping hand?
I’m understaffed but employed.
-
ok, I like this, but I want to be able to do either-setup up dhcp or static, basicly I want laptop users to be able to select that they are on the corporate network or that they are not, and based on their choice either set DNS to be static or dynamic -
Inappropriate?EDIT: Ooops I was answering the original question however this still might work for you, just look up netsh to see what can be changed. just using this as is might do the trick though.
there are many ways to do this
in a batch file put:
netsh -f DHCP.txt
in DHCP.txt put
# ----------------------------------
# Interface IP Configuration
# ----------------------------------
pushd interface ip
# Interface IP Configuration for "Local Area Connection"
set address name="Local Area Connection" source=dhcp
set dns name="Local Area Connection" source=dhcp
set wins name="Local Area Connection" source=dhcp
popd
# End of interface IP configuration
Note: this only works if the Interface that you are working with is named "Local Area Connection" which is usually default but has been known to change. -
Inappropriate?OK here is the batch command for static...k?
in a batch file put:
netsh -f static.txt
in static.txt put
# ----------------------------------
# Interface IP Configuration
# ----------------------------------
pushd interface ip
set wins name="Local Area Connection" source=static addr=none
set dns name="Local Area Connection" source=static addr=none
popd
pushd interface ip
# Interface IP Configuration for "Local Area Connection"
set address name="Local Area Connection" source=static addr=IPADDRESS OF WORKSTATION mask=SUBNETMASK OF THE WORKSTATION
set address name="Local Area Connection" gateway=IPADDRESS OF THE GATEWAY gwmetric=1
set dns name="Local Area Connection" source=static addr=IPADDRESS OF THE DHCP SERVER
add dns name="Local Area Connection" addr=IPADDRESS ON ANOTHER DHCP SERVER
set wins name="Local Area Connection" source=static addr=IPADDRRESS OF THE WINS SERVER
add wins "Local Area Connection" addr=YOU GET THE POINT index=2
popd
# End of interface IP configuration
Look up netsh -
Inappropriate?Oh yeah I see what you want, there is software out there that does this, you would have to install it on each machine, and configure it.
-
Inappropriate?I was thinking of a simple script that may ask a question, are you at a Corporate facility, and if Yes, set only the dns to a static entry, else it would set the connections to dhcp. The problem with your script is that if the connection is named differently, then it won't apply to that machine correctly. I like the script that Lopan2000 posted becuase it actually applies to each connection, I can see that being viable to be able to ensure that the changes are made to a wider variety of computer configurations.
Loading Profile...



EMPLOYEE

