PowerShell - Création utilisateur
Résolu
vic-tech
Messages postés
5
Date d'inscription
Statut
Membre
Dernière intervention
-
vic-tech Messages postés 5 Date d'inscription Statut Membre Dernière intervention -
vic-tech Messages postés 5 Date d'inscription Statut Membre Dernière intervention -
A voir également:
- Powershell password secure string
- Freewifi secure sur pc ✓ - Forum WiFi
- Usb secure - Télécharger - Sécurité
- Freewiifi secure sur pc ✓ - Forum Opérateurs & Réseaux mobiles
- Comment se connecter a freewifi secure - Forum WiFi
- Cannot access offset of type string on string - Forum PHP
Set-LocalUser -Name adminl –PasswordNeverExpires False
Add-LocalGroupMember -Group 'Administrateurs' -Member ('adminl') â€Verbose» du type «System.String» en type «
System.Security.SecureString».
Au caractère C:\Users\vlanchas\Desktop\Script Powershell\AdminUser.ps1:11 : 52
+ ... calUser -Name "adminl" -Description "Admin Local" -Password $PASSWORD
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument : (:) [ConvertTo-SecureString], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.PowerShell.Commands.ConvertToSecureStringCommand
peut etre penser à l'importer?
Comme tu as vu, j'ai commenter la ligne pour ne jamais expirer le pwd, chez moi j'ai beau chercher, je tombe aussi sur cette erreur, si je trouve je te ferai signe, mais pour le moment je n'ai que çà