Jump to content

Recommended Posts

Posted

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....


Posted

WIN XP is used.

The log file is to record the output , pretty obvious :whistle:

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

Posted

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 ?

Posted

Thanks for the help soulin !!!

set usr=%USERNAME%

net user %usr% > user.log

got what i need now. amazing when you think about somthing so long you forget how easy it can be.

hail hail :thumbup

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...