Change the %username% variable?

  • Thread starter Thread starter Matte
  • Start date Start date
M

Matte

Hello.

Is it anyway you can "foul" windows think its has another user loged in?
I was thinking about the %username% variable?

Any input is highly appreciate.
Best regards Matte.
 
Matte said:
Hello.

Is it anyway you can "foul" windows think its has another user loged in?
I was thinking about the %username% variable?

Any input is highly appreciate.
Best regards Matte.
Var Username is just an info, you may change it as you like. But
that doesn't *foul* windows in any way. Just batches, registry entries
and the like which expand that var will be fouled.

What do you really want to do?
 
In said:
Hello.

Is it anyway you can "foul" windows think its has another user
loged in? I was thinking about the %username% variable?

Any input is highly appreciate.
Best regards Matte.

Depends on where. Internally in the OS all usernames are resolved to
SIDs for security purposes. So, basicically "no" on fooling Windows
about the currently logged user via %username%. But there is RUNAS and
other tools that actually setup alternate account credentials.

In a CMD session changing the %username% variable data might be done in
order to test a batch file that tries to match strings for example.
This change is local to the CMD session or child sessions.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top