当前位置:网站首页>Command line add user set password never expires add remote group add administrator group
Command line add user set password never expires add remote group add administrator group
2022-06-23 20:31:00 【shawyang】
problem : New users cannot log in to the desktop remotely , Report errors User Profile Serives Service login failed , Unable to load user profile
Adding users can be done in one step ( Add user 、 Set password )
It can also be divided 2 Step ( Add users first 、 Post password ), If the step of setting the password is omitted or the step of setting the password is 360 The above problems will occur when the security software intercepts , The solution is simple , Is to set the password for the user , The order is
net user $username $passwd
Adding users is usually done through lusrmgr.msc Graphical interface operations for local users and groups
Add users 、 Set the password 、 Set password never expires 、 Add remote group 、 Add administrator group , These operations can be realized through commands , such as
# Add users and set passwords
NET USER "testuser" "[email protected]" /ADD /Y
# The first step is to join the remote group
NET LOCALGROUP "Remote Desktop Users" "testuser" /ADD
# Step 1: join the administrator group
NET LOCALGROUP "Administrators" "testuser" /ADD
# Set password never expires
Please use this command as an administrator in cmd Command line run
wmic.exe UserAccount Where Name="testuser" Set PasswordExpires="false"
Actually , Report errors 【User Profile Serives Service login failed , Unable to load user profile 】 There are many cases
1、 Added users , No password
2、C:\Users\ The directory has a hidden Default Catalog , Deleting this directory will affect
3、 because profsvc Services depend on the underlying rpcss service , And rely on rpcss There are a lot of other services , rely on rpcss The conflicting effects of different services may lead to such exceptions
sc.exe enumdepend rpcss 35000|findstr SERVICE_NAME > c:\servicelist.txt
This command exports dependencies rpcss Of other services , You can take a look at the service dependencies rpcss, Check one by one to narrow the scope
边栏推荐
- 如何利用数仓创建时序表
- 手续费佣金低的券商,华泰证券网上开户安全吗
- [golang] quick review guide quickreview (VI) -- struct
- Rendering of kotlin jetpack compose tab using animatedvisibility
- Application of MySQL time function, simple problem
- [golang] some questions to strengthen slice
- Use of the vs2022scanf function. An error is reported when using scanf - the return value is ignored: Solutions
- Teach you how to use web pages to develop apps
- 增加双因素认证,不惧密码泄露,更不惧123456
- Application of JDBC in performance test
猜你喜欢

What are the useful personnel management software? Personnel management system software ranking!

测试的重要性及目的

SQL聯合查詢(內聯、左聯、右聯、全聯)的語法

LeetCode 473. 火柴拼正方形

Daily question brushing record (II)

Tcp/udp Fundamentals

Chaos engineering, learn about it

UST 崩盘后,稳定币市场格局将迎来新机遇?

Ugeek's theory 𞓜 application and design of observable hyperfusion storage system

Yaokui tower in Fengjie, Chongqing, after its completion, will be the safety tower for Sichuan river shipping with five local scholars in the company
随机推荐
Eight misunderstandings, broken one by one (final): the cloud is difficult to expand, the customization is poor, and the administrator will lose control?
JS advanced programming version 4: generator learning
Realize vscode to write markdown documents + pictures to be automatically uploaded to Tencent cloud cos
Want to open an account, is it safe to open an account on the stock Internet? Will the funds be cheated away?
想开个户,在股票网上开户安全吗?资金会被骗走吗?
每日刷题记录 (二)
SAP实施项目上的内部顾问与外部顾问,相互为难还是相互成就?
Digital procurement transformation solution: SaaS procurement management platform promotes enterprise sunshine procurement
@@Script implementation of ishell automatic deployment
官宣.NET 7 预览版5
【Golang】跟着源码学技巧系列之对象池sync.Pool
Emmet syntax specification
OHOS LTS 3.0移植到RaspberryPi 4B
金鱼哥RHCA回忆录:DO447管理用户和团队的访问--用团队有效地管理用户
[golang] type conversion summary
LeetCode 473. 火柴拼正方形
[golang] quick review guide quickreview (II) -- slice
GL Studio 5 安装与体验
How to build Tencent cloud game server? Differences between cloud game platforms and ordinary games
The golden nine silver ten, depends on this detail, the offer obtains the soft hand!