Shroder
asked on
User Information
I'm writting up some documentation right now to help users that have basic knowledge of windows to find out what type of account they are logged in as. Is there anyway through javascript or any other web based way of displaying this information to them?
Or is there a simple way the user can find out what type of account they have (and possibly other information)?
Or is there a simple way the user can find out what type of account they have (and possibly other information)?
ASKER
Sorry for being so general. I'm talking about local permissions.
Shroder,
> local permissions
You mean local NTFS permissions, or all the rights the person has on the local machine, like the ability to log on locally and so forth?
> local permissions
You mean local NTFS permissions, or all the rights the person has on the local machine, like the ability to log on locally and so forth?
Shroder,
Open a Command Prompt windows (CMD.EXE) and type this:
NET USER <USERNAME>
To output the results to a file
NET USER <USERNAME> >C:\Accnt.txt
This fix will have all the information about that user account.
Open a Command Prompt windows (CMD.EXE) and type this:
NET USER <USERNAME>
To output the results to a file
NET USER <USERNAME> >C:\Accnt.txt
This fix will have all the information about that user account.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Sorry for my ignorance. Can I use that as vbscript?
Shroder,
You can separate the HTML from the VBScript and use the VBScript portion. Also, if you can be more specific about exactly what pieces of information you want, then it's possible that the experts might be able to supply you with a script that'll provide exectly, or at least more closely, what you're looking for.
You can separate the HTML from the VBScript and use the VBScript portion. Also, if you can be more specific about exactly what pieces of information you want, then it's possible that the experts might be able to supply you with a script that'll provide exectly, or at least more closely, what you're looking for.
ASKER
Actually if I can get part of your snippet to work I can figure out the rest.
I'm getting the following error:
"No mapping between account names and security IDs was done"
using the following code:
<script LANGUAGE='VBSCRIPT'>
Dim objSysinfo
Dim objItem
Set objSysinfo = CreateObject("ADSystemInfo ")
MsgBox objSysInfo.UserName
</script>
I'm getting the following error:
"No mapping between account names and security IDs was done"
using the following code:
<script LANGUAGE='VBSCRIPT'>
Dim objSysinfo
Dim objItem
Set objSysinfo = CreateObject("ADSystemInfo
MsgBox objSysInfo.UserName
</script>
More information on the ADSystemInfo object is at:
http://www.microsoft.com/technet/community/columns/profwin/pw0602.mspx
As I mentioned earlier, I'm not actually terribly good at this... I've just copied and pasted! As fas as I know it will only work on domain members, but someone else will probably be able to help you much more than that.
Sorry!
Wallsy
http://www.microsoft.com/technet/community/columns/profwin/pw0602.mspx
As I mentioned earlier, I'm not actually terribly good at this... I've just copied and pasted! As fas as I know it will only work on domain members, but someone else will probably be able to help you much more than that.
Sorry!
Wallsy
ASKER
No problem. :) Thanks for the help so far.
ASKER
Looks like that is suppose to work. It has problems with XP SP 2 though.
Thanks for the points - sorry I couldn't be more helpful though...
Cheers,
Wallsy
Cheers,
Wallsy
> what type of account they are logged in as
I don't understand what you mean. Are you talking about a local account versus a domain account, or ... what?
Cheers!