当前位置:网站首页>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
边栏推荐
- SAP实施项目上的内部顾问与外部顾问,相互为难还是相互成就?
- [golang] use go language to operate etcd - configuration center
- [golang] quick review guide quickreview (II) -- slice
- Development of block hash quiz game system (DAPP)
- 【Golang】快速复习指南QuickReview(六)——struct
- Open source SPL redefines OLAP server
- 图扑软件数字孪生智慧水务,突破海绵城市发展困境
- [golang] quick review guide quickreview (VII) -- Interface
- SQL联合查询(内联、左联、右联、全联)的语法
- [vernacular technology] QR code
猜你喜欢

墨天轮访谈 | IvorySQL王志斌—IvorySQL,一个基于PostgreSQL的兼容Oracle的开源数据库

LeetCode 473. Match to square

Syntax of SQL union query (inline, left, right, and full)

Activity registration | introduction to mongodb 5.0 sequential storage features

Leaders of Hangcheng street, Bao'an District and their delegation visited lianchengfa for investigation

SQL联合查询(内联、左联、右联、全联)的语法

Daily question brushing record (II)

Open source SPL redefines OLAP server

GL Studio 5 安装与体验

Why is only one value displayed on your data graph?
随机推荐
Open source SPL redefines OLAP server
八大误区,逐个击破(终篇):云难以扩展、定制性差,还会让管理员失去控制权?
Postman tutorial - teach you API interface testing by hand
盘点四种WiFi加密标准:WEP、WPA、WPA2、WPA3
【Golang】快速复习指南QuickReview(三)——map
Kinsoku Jikou Desu Sina stock interface change
How to log in to the server through the fortress machine to transfer files? What are the specific steps?
[golang] type conversion summary
Why is only one value displayed on your data graph?
[golang] quick review guide quickreview (VIII) -- goroutine
After the collapse of UST, will the stable currency market pattern usher in new opportunities?
【Golang】怎么实现Go程序的实时热更新
What cloud disk types does Tencent cloud provide? What are the characteristics of cloud disk service?
[golang] use go language to operate etcd - configuration center
Is Huishang futures trading software formal? How to download safely?
20省市公布元宇宙路线图
How to use data warehouse to create time series
LeetCode 260. 只出现一次的数字 III
Application of JDBC in performance test
Applet development framework recommendation