What I need to be able to do is capture the password that is created by the new-gauser command into a variable so I can use it later.
But I can't figure out how to redirect the password into a variable - so far everything I've tried doesn't work and it only outputs the password to the console.
Is there something special about how the password is returned that would affect me being able to use it for anything else?
Thanks!
If you need a random password, handle it with a separate function before.
Example
New-gauser -otherparameters -password "mypassword"
Or look at my script:
https://groups.google.com/forum/m/#!topic/gshell-discuss/D9TWaF2cONY
Best regards
Jesper
Thanks Jesper - I was just hoping I could utilize the built-in password creation, and be able to capture it to let the user know what it's been set to.
--
You received this message because you are subscribed to the Google Groups "gshell-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gshell-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.