• New-LocalUser - Problems. Does anyone knows whats is happening ?

    From =?UTF-8?Q?Richard_Mistr=C3=ADk?=@21:1/5 to All on Tue May 15 04:53:48 2018
    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 ?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Gloops@21:1/5 to All on Tue Jul 17 23:44:38 2018
    Le 15/05/2018 à 13:53, Richard Mistrík a écrit :
    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 ?


    Hello,

    Does this help ?

    https://msdn.microsoft.com/en-us/library/system.security.securestring(v=vs.110).aspx#vsString


    --
    Besoin d'un autre système, pas d'un autre gouvernement.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)