Im writing this command line to create a new local user account, but isn't working.
New-LocalUser -Name Blc -Password Blc004 -AccountNeverExpires -FullName Blc -PasswordNeverExpires -UserMayNotChangePassword
After this command line , i can see this message:
New-LocalUser : Cannot bind parameter 'Password'. Cannot convert the "Blc004" value of type "System.String" to type
"System.Security.SecureString".
At line:1 char:35
+ New-LocalUser -Name Blc -Password Blc004 -AccountNeverExpires -FullNa ...
+ ~~~~~~
+ CategoryInfo : InvalidArgument: (:) [New-LocalUser], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.PowerShell.Commands.NewLocalUserCommand
I tried to change the password, but appear the samething. Does somebody knows what can i do to work ?
Dňa streda, 5. apríla 2017 21:56:22 UTC+2 K800i2 napísal(-a):
Im writing this command line to create a new local user account, but isn't working.
New-LocalUser -Name Blc -Password Blc004 -AccountNeverExpires -FullName Blc -PasswordNeverExpires -UserMayNotChangePassword
After this command line , i can see this message:
New-LocalUser : Cannot bind parameter 'Password'. Cannot convert the "Blc004" value of type "System.String" to type
"System.Security.SecureString".
At line:1 char:35
+ New-LocalUser -Name Blc -Password Blc004 -AccountNeverExpires -FullNa ... >> + ~~~~~~
+ CategoryInfo : InvalidArgument: (:) [New-LocalUser], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.PowerShell.Commands.NewLocalUserCommand
I tried to change the password, but appear the samething. Does somebody knows what can i do to work ?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 75:32:17 |
Calls: | 6,657 |
Calls today: | 3 |
Files: | 12,203 |
Messages: | 5,332,646 |
Posted today: | 1 |