Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 

Sign in to follow this  
whistler114

wsname

Recommended Posts

CoffeeFiend    0

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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites
CoffeeFiend    0
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

Share this post


Link to post
Share on other sites

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

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×