202k views
4 votes
Which of the following cmdlets can be used to change the user account Lea to Leahona? Select one:

a. Get-Local User
b. Disable-Local User
c. Rename-Local User
d. Remove-Local User

1 Answer

4 votes

Final answer:

The correct cmdlet to change the user account name from 'Lea' to 'Leahona' is Rename-LocalUser.

Step-by-step explanation:

To change the user account name 'Lea' to 'Leahona' in Windows PowerShell, you can use thb

The correct answer is c. Rename-LocalUser.

For example, you can use the following command:
Rename-LocalUser -Name 'Lea' -NewName 'Leahona'

User Eddie Xie
by
8.2k points