Command output now goes into variable $RdString
This commit is contained in:
parent
bc97219e5e
commit
d6982c4927
@ -12,4 +12,6 @@ $Special = Get-Random -Count 5 -InputObject $TokenSet.S
|
|||||||
|
|
||||||
$StringSet = $Upper + $Lower + $Number + $Special
|
$StringSet = $Upper + $Lower + $Number + $Special
|
||||||
|
|
||||||
(Get-Random -Count 15 -InputObject $StringSet) -join ''
|
$RdString = (Get-Random -Count 15 -InputObject $StringSet) -join ''
|
||||||
|
|
||||||
|
#You can use now $RdString in your script to make a random password to an AD user or other stuff...
|
Loading…
Reference in New Issue
Block a user