PC Review


Reply
Thread Tools Rate Thread

Change the %username% variable?

 
 
Matte
Guest
Posts: n/a
 
      13th Jan 2005
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.


 
Reply With Quote
 
 
 
 
Matthias Tacke
Guest
Posts: n/a
 
      13th Jan 2005
Matte wrote:
> 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?

--
Gruesse Greetings Saludos Saluti Salutations
Matthias
---------+---------+---------+---------+---------+---------+---------+
 
Reply With Quote
 
Mark V
Guest
Posts: n/a
 
      13th Jan 2005
In microsoft.public.win2000.cmdprompt.admin Matte wrote:

> 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.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change username in cookies? e.g. username@microsoft.txt franklin-xy Windows XP Security 8 1st Sep 2010 05:54 AM
Username as global variable =?Utf-8?B?QkRQSUlJ?= Microsoft Access 2 1st Nov 2006 02:34 PM
Keep Username as a Variable ABinBoston Microsoft Access Form Coding 2 5th Oct 2004 04:04 PM
Variable Username Ramon Niese Microsoft Outlook Installation 1 26th Aug 2004 08:40 PM
username system variable Robert Microsoft Access Security 3 9th Jul 2004 10:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:13 AM.