China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-24 19:55
中国DOS联盟论坛 » WinPE、PowerShell及其它命令行系统专区 » Renaming User Account Issue View 2,258 Replies 4
Original Poster Posted 2006-11-17 23:33 ·  中国 广东 梅州 电信
中级用户
★★
Credits 421
Posts 111
Joined 2003-08-29 00:00
22-year member
UID 9153
Gender Male
Status Offline
wmic useraccount where name='Administrator' call Rename admin

This code mainly functions to automatically rename the administrator account to another name after the system is installed, hoping to prevent hacker attacks on the administrator account. But during use, a problem was found when extracting the ATI driver, that is, the account has no corresponding ID error. As long as you restart, there is no problem, but I hope there is a solution without restarting. Please give guidance.

[ Last edited by ronin on 2006-11-17 at 11:51 PM ]
Floor 2 Posted 2006-11-17 23:42 ·  中国 河北 廊坊 三河市 移动
金牌会员
★★★★
Credits 2,725
Posts 1,160
Joined 2006-09-23 12:00
19-year member
UID 63486
From 河北廊坊
Status Offline
My one doesn't need to restart?
三人行,必有吾师焉。 学然后知不足,教然后知困,然后能自强也。
Floor 3 Posted 2006-11-17 23:54 ·  中国 广东 梅州 电信
中级用户
★★
Credits 421
Posts 111
Joined 2003-08-29 00:00
22-year member
UID 9153
Gender Male
Status Offline
I used it. If it's a general decompression, it won't, but when running the ATI graphics card driver, this situation occurs
Floor 4 Posted 2006-11-18 09:36 ·  中国 上海 电信
金牌会员
★★★★
Credits 4,639
Posts 2,239
Joined 2005-01-30 00:00
21-year member
UID 35785
Gender Male
Status Offline
Although I can't solve your problem, please post such problems here in the future:

WinPE, PowerShell (MSH) and other command line system area
Floor 5 Posted 2007-04-04 03:58 ·  中国 湖北 黄冈 电信
高级用户
★★★
Credits 894
Posts 411
Joined 2007-02-17 12:15
19-year member
UID 79697
Gender Male
Status Offline
No need quotes
@set c= 不知则觉多,知则觉少,越知越多,便觉越来越少. --- 知多少.
@for,/l,%%i,in,(1,1,55)do,@call,set/p=%%c:~%%i,1%%<nul&ping/n 1 127.1>nul


Forum Jump: