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