Jump to content

wsname


Recommended Posts


You're welcome!

Like anyone who had to change names on a LOT of computers before, I always keep a copy handy on my USB drive (it's really a must-have/essential tool for any serious admin), so it only took a minute to compress & upload it.

Link to comment
Share on other sites

  • 3 weeks later...

hey, that is a great tool I hear.

can you batch it so it will have the ability to change computer names remotely?

perhaps batch it in such a way that it will autorun when the user next logins and will change the user computer's name and it will then reboot.

can you have it do that?

Link to comment
Share on other sites

can you batch it so it will have the ability to change computer names remotely?

perhaps batch it in such a way that it will autorun when the user next logins and will change the user computer's name and it will then reboot.

The tool itself won't do that, but sure, it could easily be scripted. The only hard part, is figuring out how you want it to work.

One way, would be making a script check a list with mac addresses and the names of PC with those mac addresses should have (like the standard format wsname supports). Then you enumerate at the NICs, and see if the name matches, if it doesn't, then you make it run wsname. You could run that script anytime you want, but it will need administrative privileges to use wsname.

Similarly, the mac address -> names list could be kept on a web server (in a database or XML file or whatever you want), and accessed as a REST web service by a script (e.g. a VBScript or JScript using a XMLHttpRequest), which would have a method that would return the name for the mac address specified (and have methods to add new names to it and such).

Or then again, you could just use asset tags, if your PCs all have them... So many possibilities.

And yes, you could spawn the process remotely (very simple), but users might not appreciate too much when their PC reboots without warning.

Edit: very strange, the site isn't back online yet (no DNS entry for mystuff.clarke.co.nz)... Not looking good :(

Edited by crahak
Link to comment
Share on other sites

  • 1 year later...
  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...