View the current Login User in cmd of win2k

Source: Internet
Author: User

In the terminal, you can use the quser command. But how can you view online users in other professional versions such as 2 k?

C: Documents and SettingsAdministrator> net config workstation
Computer Name \ RICH
Computer full name rich
User Name Administrator

The workstation is running on
NetbiosSmb (000000000000)
NetBT_Tcpip _ {57E2991D-AF22-41BA-89D7-2C2818051A47} (000B5DD3AC51)

Microsoft Windows Server 2003

WORKGROUP
RICH Domains

COM open timeout (seconds) 0
COM sending count (byte) 16
COM sending timeout (MS) 250
The command is successfully completed.

Use a vbs script to implement:

Set wshNetwork = WScript. CreateObject ("WScript. Network ")
Wscript. echo "Login domain" & wshNetwork. UserDomain
Wscript. echo "computer name" & wshNetwork. ComputerName
Wscript. echo "Current Login User" & wshNetwork. UserName

Whether it can be implemented under the system permission is not tested.


Or 2003 of tool whoami

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.