brian873 Posted March 31, 2005 Share Posted March 31, 2005 I may be missing something here as I am sure I was able to do this before.I am creating a batch file and part of it logs the users rights on a machine. It will run from a USB thumb drive and record the results in a text file.I want to be able to record the current logged in user name, although all users woulld be better and also there rights (admin, power user, guest)can anyone help, please ?WINXP is the sysem.... Link to comment Share on other sites More sharing options...
gravier20 Posted March 31, 2005 Share Posted March 31, 2005 WHY YOU WANNA CREATE LOG FILE...BEFORE THAT YOU USE WINXP OR WINME...?:? Link to comment Share on other sites More sharing options...
brian873 Posted March 31, 2005 Author Share Posted March 31, 2005 WIN XP is used.The log file is to record the output , pretty obvious And the reason for that is it will be run by novices so asking them to remember the output on screen does not make much of a plan.hail hail Link to comment Share on other sites More sharing options...
Martin Zugec Posted March 31, 2005 Share Posted March 31, 2005 U mean net user %username% > user.log ? Link to comment Share on other sites More sharing options...
brian873 Posted March 31, 2005 Author Share Posted March 31, 2005 thanks soulin ! The problem have is I will not know the username so I need a way of finding it out and passing it through that command.Any takers ? Link to comment Share on other sites More sharing options...
brian873 Posted March 31, 2005 Author Share Posted March 31, 2005 Thanks for the help soulin !!!set usr=%USERNAME%net user %usr% > user.loggot what i need now. amazing when you think about somthing so long you forget how easy it can be.hail hail Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now