PC Review


Reply
Thread Tools Rate Thread

Determine hostname username FileSystem at Login

 
 
Roland Biemans
Guest
Posts: n/a
 
      12th Aug 2003
Hi all,

In a windows domain the loginscript is executed at logon.
A lot off machine's have very strange names, and I don't know where they
are.
If I could determine the username for each machine, it will make life
easier. Also determinig the File System would become handy since some of the
old pre installed boxes are still formatted as FAT32.
All output will be writen to a text file.

Until now i've tried the following in a dos batch script:
-------------------------------------
For the username I use :
echo %USERNAME%
this works for me
-----------------------------------------------
For the hostname I use the command :

Hostname

This works for now, but I would like to use it as a string, so I can name
the file that has been written as ID_%HOSTNAME%_%USERNAME%

Q: Anyone knows how to use the result of hostname ?
---------------------------------------------------------
For the filesystem I use :

chkdsk C:\ /L

This will return the FStype but *only* logged on as administrator

Q: any other way of determining FS ?
------------------------------------------

BTW: I really want to use the dos commands , please do not point me to third
party software.

Regards,

Roland


 
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
mapping hostname.com/username to a page John Mott Microsoft ASP .NET 4 17th Sep 2007 03:27 PM
Username to Hostname Resolution =?Utf-8?B?U2hhd24gTWNHb3dlbg==?= Microsoft Windows 2000 Networking 4 25th May 2005 12:56 AM
Username to Hostname Resolution =?Utf-8?B?U2hhd24gTWNHb3dlbg==?= Windows XP Networking 2 20th May 2005 07:17 PM
Display Hostname and Username on Desktop =?Utf-8?B?ZGJhcmJlcg==?= Windows XP Customization 0 8th Feb 2005 05:41 PM
Hostname to username =?Utf-8?B?U2hhd24gTWNHb3dlbg==?= Microsoft Windows 2000 2 12th Jan 2005 05:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:48 PM.