Инструменты пользователя

Инструменты сайта


faq:windows:passwords

Users & Passwords

Password expiration

To prevent password expiration every 42 days: 1)

passwords.bat
@echo off
wmic useraccount set PasswordExpires=false

Rename user

To rename user from command prompt: 2)

wmic useraccount where name='currentname' rename newname

Using this command we can rename administrator account also. The below command changes the user name from ‘administrator’ to ‘admin.’

wmic useraccount where name='administrator' rename admin
faq/windows/passwords.txt · Последние изменения: 2015-08-26 16:49 — nikolay