How Rename a Username without having Administrator Rights
Keywords: WinINstall servany SRVANY
Question:
Is it possible to write a program in Winbatch that gives a user the possibility to rename his own login or the login of someone else without giving him administrator rights or the administrator password.Answer:
If you've got a product such as WinInstall running on the machine, you can use Winbatch to present a fancy change box to the user, and then Winbatch can post the request to WinInstall's priviliged service, which can make the change for you. This would allow the user to make the change, while not allowing other changes from them.If you haven't, you can't. (or there may be a shareware thing around to do such a thing.)
Also, how about writing a winstall program that actually does the work with no interations, use servany (SRVANY) to install it as a service, and then write your winbatch script to send the message to this service, which has the rights to do the changes.
Article ID: W13179Filename: Rename a Username without Admin Rights.txt