中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-11 13:03
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » [Help] How to enable the XP guest user using commands
Printable Version  1,990 / 8
Floor1 fpeak Posted 2009-03-04 05:29
新手上路 Posts 5 Credits 5
I used
net user guest /active:yes

What's said online is all this

But although it shows enabled in User Accounts, it can't be found in the XP login screen

After pressing ctrl+alt+del on the login screen and trying to log in with GUEST, it prompts that interactive login is not allowed

In Control Panel - User Accounts, it also shows that the guest account is not activated

I guess maybe I need to change something in Group Policy or something, I'm not sure, so I'm posting to ask

Please哪位 clear-minded big shot give an explanation and also post the commands to do this

PS: I'm using XP SP3, is it because SP3 is different
Floor2 joyoustar Posted 2009-03-04 06:03
初级用户 Posts 45 Credits 96
First, manually enable and disable the Guest account in the User Accounts of the Control Panel. Then try the following commands. If it succeeds, you can control it with commands later:

Disable/Enable:
wmic useraccount where name="guest" set disabled=false
Or:
wmic useraccount where name="guest" set disabled=true
Floor3 yishanju Posted 2009-03-04 08:56
银牌会员 Posts 1,357 Credits 1,488
The command is correct. Looking at the prompt, it's that the GUEST user doesn't have local login permission. Set the group policy.
Floor4 dosz Posted 2009-03-04 10:53
中级用户 Posts 188 Credits 396 From 上海
Originally posted by joyoustar at 2009-3-4 06:03:
First, manually enable and disable the Guest account in the User Accounts in the Control Panel. Then try the following command. If it succeeds, you can control it with commands in the future:
Disable/enable:
wmic useraccount where ...


Network access:
_Guest account enabled

Attachments
1_guest帐户开启.JPG.gif (79.9 KiB)
Floor5 dosz Posted 2009-03-04 11:00
中级用户 Posts 188 Credits 396 From 上海
Originally posted by yishanju at 2009-3-4 08:56:
The command is correct. Looking at the prompt, it's that the GUEST user doesn't have local login permissions. Set the group policy.


Network access:
_Disable the restriction on the Guest account in GPEDIT. Open the Group Policy Editor with "GPEDIT.MSC", and sequentially select "Computer Configuration → Windows Settings → Security Settings → Local Policies → User Rights Assignment". Double-click the "Deny access to this computer from the network" policy and delete the "GUEST" account inside.

Attachments
2_GPEDIT解除对Guest账号的限制.JPG.gif (120.31 KiB)
Floor6 fpeak Posted 2009-03-05 03:42
新手上路 Posts 5 Credits 5
First, thank you to everyone for answering my questions.

Reply to floor 2: No. The status of the GUEST user displayed in the Control Panel is still gray, and when logging in, it still prompts "The local policy does not allow the user to log in interactively."

Reply to floor 4: I know how to operate in the graphical interface. "net user guest /active:yes" is equivalent to the operation you mentioned, but this does not truly enable GUEST because under Control Panel - User Accounts: GUEST is still gray, and the GUEST cannot be used to log in on the system welcome login interface.

Reply to floor 5:
Thank you for answering again.

In my "Deny access to this computer from the network" policy, there is no GUEST user.

PS: My system is a GHOST SP3 version from Donghai Computer Company, which is repackaged, not the original version of the system.
Floor7 fpeak Posted 2009-03-07 05:33
新手上路 Posts 5 Credits 5
Bump up...
Floor8 dato Posted 2009-03-08 02:12
高级用户 Posts 377 Credits 916
This kind of thing is very troublesome to solve. At present, I think the best Ghost is still the Deepin one.
I was really tortured by those Ylmf and others. They optimized some security settings. One day I wasted an hour to enable the remote desktop function. If there weren't articles on the Internet mentioning it, I really wouldn't know how to solve it.
I started all the services that should be started, added all the users that should be added, and gave all the permissions that should be given, but someone's Ghost deleted the corresponding settings in the registry. I'm really depressed.
Floor9 joyoustar Posted 2009-03-12 05:14
初级用户 Posts 45 Credits 96
Originally posted by fpeak at 2009-3-5 03:42 AM:
Thanks to everyone for your answers first

Reply to floor 2: No. The status of the GUEST user displayed in the control panel is still gray, and it still prompts "The local policy does not allow the user to log in interactively" when logging in.

Reply to floor 4: In the graphics...


My system is XP SP2. Is there any Guest in the "Deny local logon" in User Rights Assignment? If there is, delete it; try enabling "Interactive logon: Do not require C+A+T" in the security options.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023