en-US/PSPasswordGenerator-help.xml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 |
<?xml version="1.0" encoding="utf-8"?> <helpItems schema="maml" xmlns="http://msh"> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"> <command:details> <command:name>Get-RandomPassword</command:name> <command:verb>Get</command:verb> <command:noun>RandomPassword</command:noun> <maml:description> <maml:para>Creates a random password.</maml:para> </maml:description> </command:details> <maml:description> <maml:para>This cmdlet creates a random password with the specified parameters. You can generate passwords with any length you want, or with as many random words as you want; and include or restrict characters depending on what constrains your password must abide by.</maml:para> </maml:description> <command:syntax> <command:syntaxItem> <maml:name>Get-RandomPassword</maml:name> <command:parameter required="true" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>AsPlainText</maml:name> <maml:description> <maml:para>By default, the password is returned as a [System.Security.SecureString]. Specify this parameter to return it as a regular, cleartext [System.String], where it can simply be printed to the output stream, saved into a varible, or copied and pasted in an interactive session.</maml:para> </maml:description> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="Count, MinLength, Size"> <maml:name>Length</maml:name> <maml:description> <maml:para>The generated password will always be of the specified length. You can specify any length between 1 and 4,294,967,295 characters inclusive. Entropy tends to increases along with the value of this parameter.</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">UInt32</command:parameterValue> <dev:type> <maml:name>UInt32</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>16</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>NoSymbols</maml:name> <maml:description> <maml:para>If this switch is specified, the resulting password will only contain letters and numbers. This might be useful for services that restrict or prohibit the use of special characters, or for situations where special characters may not be escaped correctly. Entropy decreases when this parameter is specified; this can be counteracted by increasing the -Length parameter.</maml:para> <maml:para>Using this parameter causes the -UseExtendedAscii parameter to have no effect.</maml:para> </maml:description> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>StartWithLetter</maml:name> <maml:description> <maml:para>If this switch is specified, the first character of the password will be either an uppercase or lowercase letter. This slightly decreases entropy, but decreases it further as the password length increases.</maml:para> </maml:description> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>UseAmbiguousCharacters</maml:name> <maml:description> <maml:para>By default, ambigious characters such as '1', 'I', 'l', and '|'; as well as '0' and 'O'; will not be used, so that the password is a little easier for a human to read and type. If you would like these similar-looking characters to be used in the password, specify this switch, and they will be returned to the character pool. Specifying this switch slightly increases entropy.</maml:para> </maml:description> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>UseExtendedAscii</maml:name> <maml:description> <maml:para>By default, the extended ASCII character set is not used. Specify this switch to make your passwords more random and contain far more entropy. However, you will no longer be able to type them easily on a standard keyboard. In addition, some services may not permit these special characters. However, specifying this switch greatly increases entropy, as the character pool is roughly doubled.</maml:para> <maml:para>If the -NoSymbols parameter is specified, then this parameter has no effect.</maml:para> <maml:para>When using WordList mode, this will only affect the separator characters. It not affect any words pulled from a wordlist.</maml:para> </maml:description> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> </command:syntaxItem> <command:syntaxItem> <maml:name>Get-RandomPassword</maml:name> <command:parameter required="true" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>AsPlainText</maml:name> <maml:description> <maml:para>By default, the password is returned as a [System.Security.SecureString]. Specify this parameter to return it as a regular, cleartext [System.String], where it can simply be printed to the output stream, saved into a varible, or copied and pasted in an interactive session.</maml:para> </maml:description> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>NoSymbols</maml:name> <maml:description> <maml:para>If this switch is specified, the resulting password will only contain letters and numbers. This might be useful for services that restrict or prohibit the use of special characters, or for situations where special characters may not be escaped correctly. Entropy decreases when this parameter is specified; this can be counteracted by increasing the -Length parameter.</maml:para> <maml:para>Using this parameter causes the -UseExtendedAscii parameter to have no effect.</maml:para> </maml:description> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>UseAmbiguousCharacters</maml:name> <maml:description> <maml:para>By default, ambigious characters such as '1', 'I', 'l', and '|'; as well as '0' and 'O'; will not be used, so that the password is a little easier for a human to read and type. If you would like these similar-looking characters to be used in the password, specify this switch, and they will be returned to the character pool. Specifying this switch slightly increases entropy.</maml:para> </maml:description> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>UseExtendedAscii</maml:name> <maml:description> <maml:para>By default, the extended ASCII character set is not used. Specify this switch to make your passwords more random and contain far more entropy. However, you will no longer be able to type them easily on a standard keyboard. In addition, some services may not permit these special characters. However, specifying this switch greatly increases entropy, as the character pool is roughly doubled.</maml:para> <maml:para>If the -NoSymbols parameter is specified, then this parameter has no effect.</maml:para> <maml:para>When using WordList mode, this will only affect the separator characters. It not affect any words pulled from a wordlist.</maml:para> </maml:description> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="true" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>WordList</maml:name> <maml:description> <maml:para>A plain text file containing one word per line. This will be loaded into memory when generating a password containing words.</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">FileInfo</command:parameterValue> <dev:type> <maml:name>FileInfo</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>Words</maml:name> <maml:description> <maml:para>When generating a password made up of random words, the password should contain this many words. Each word will be separated by a single number, symbol (only if -NoSymbols is not specified), or an extended ASCII character (only if -UseExtendedAscii is specified).</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">UInt32</command:parameterValue> <dev:type> <maml:name>UInt32</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:syntaxItem> <command:syntaxItem> <maml:name>Get-RandomPassword</maml:name> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="Count, MinLength, Size"> <maml:name>Length</maml:name> <maml:description> <maml:para>The generated password will always be of the specified length. You can specify any length between 1 and 4,294,967,295 characters inclusive. Entropy tends to increases along with the value of this parameter.</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">UInt32</command:parameterValue> <dev:type> <maml:name>UInt32</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>16</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>NoSymbols</maml:name> <maml:description> <maml:para>If this switch is specified, the resulting password will only contain letters and numbers. This might be useful for services that restrict or prohibit the use of special characters, or for situations where special characters may not be escaped correctly. Entropy decreases when this parameter is specified; this can be counteracted by increasing the -Length parameter.</maml:para> <maml:para>Using this parameter causes the -UseExtendedAscii parameter to have no effect.</maml:para> </maml:description> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>StartWithLetter</maml:name> <maml:description> <maml:para>If this switch is specified, the first character of the password will be either an uppercase or lowercase letter. This slightly decreases entropy, but decreases it further as the password length increases.</maml:para> </maml:description> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>UseAmbiguousCharacters</maml:name> <maml:description> <maml:para>By default, ambigious characters such as '1', 'I', 'l', and '|'; as well as '0' and 'O'; will not be used, so that the password is a little easier for a human to read and type. If you would like these similar-looking characters to be used in the password, specify this switch, and they will be returned to the character pool. Specifying this switch slightly increases entropy.</maml:para> </maml:description> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>UseExtendedAscii</maml:name> <maml:description> <maml:para>By default, the extended ASCII character set is not used. Specify this switch to make your passwords more random and contain far more entropy. However, you will no longer be able to type them easily on a standard keyboard. In addition, some services may not permit these special characters. However, specifying this switch greatly increases entropy, as the character pool is roughly doubled.</maml:para> <maml:para>If the -NoSymbols parameter is specified, then this parameter has no effect.</maml:para> <maml:para>When using WordList mode, this will only affect the separator characters. It not affect any words pulled from a wordlist.</maml:para> </maml:description> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> </command:syntaxItem> <command:syntaxItem> <maml:name>Get-RandomPassword</maml:name> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>NoSymbols</maml:name> <maml:description> <maml:para>If this switch is specified, the resulting password will only contain letters and numbers. This might be useful for services that restrict or prohibit the use of special characters, or for situations where special characters may not be escaped correctly. Entropy decreases when this parameter is specified; this can be counteracted by increasing the -Length parameter.</maml:para> <maml:para>Using this parameter causes the -UseExtendedAscii parameter to have no effect.</maml:para> </maml:description> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>UseAmbiguousCharacters</maml:name> <maml:description> <maml:para>By default, ambigious characters such as '1', 'I', 'l', and '|'; as well as '0' and 'O'; will not be used, so that the password is a little easier for a human to read and type. If you would like these similar-looking characters to be used in the password, specify this switch, and they will be returned to the character pool. Specifying this switch slightly increases entropy.</maml:para> </maml:description> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>UseExtendedAscii</maml:name> <maml:description> <maml:para>By default, the extended ASCII character set is not used. Specify this switch to make your passwords more random and contain far more entropy. However, you will no longer be able to type them easily on a standard keyboard. In addition, some services may not permit these special characters. However, specifying this switch greatly increases entropy, as the character pool is roughly doubled.</maml:para> <maml:para>If the -NoSymbols parameter is specified, then this parameter has no effect.</maml:para> <maml:para>When using WordList mode, this will only affect the separator characters. It not affect any words pulled from a wordlist.</maml:para> </maml:description> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="true" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>WordList</maml:name> <maml:description> <maml:para>A plain text file containing one word per line. This will be loaded into memory when generating a password containing words.</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">FileInfo</command:parameterValue> <dev:type> <maml:name>FileInfo</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>Words</maml:name> <maml:description> <maml:para>When generating a password made up of random words, the password should contain this many words. Each word will be separated by a single number, symbol (only if -NoSymbols is not specified), or an extended ASCII character (only if -UseExtendedAscii is specified).</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">UInt32</command:parameterValue> <dev:type> <maml:name>UInt32</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:syntaxItem> </command:syntax> <command:parameters> <command:parameter required="true" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>AsPlainText</maml:name> <maml:description> <maml:para>By default, the password is returned as a [System.Security.SecureString]. Specify this parameter to return it as a regular, cleartext [System.String], where it can simply be printed to the output stream, saved into a varible, or copied and pasted in an interactive session.</maml:para> </maml:description> <command:parameterValue required="false" variableLength="false">SwitchParameter</command:parameterValue> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="Count, MinLength, Size"> <maml:name>Length</maml:name> <maml:description> <maml:para>The generated password will always be of the specified length. You can specify any length between 1 and 4,294,967,295 characters inclusive. Entropy tends to increases along with the value of this parameter.</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">UInt32</command:parameterValue> <dev:type> <maml:name>UInt32</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>16</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>NoSymbols</maml:name> <maml:description> <maml:para>If this switch is specified, the resulting password will only contain letters and numbers. This might be useful for services that restrict or prohibit the use of special characters, or for situations where special characters may not be escaped correctly. Entropy decreases when this parameter is specified; this can be counteracted by increasing the -Length parameter.</maml:para> <maml:para>Using this parameter causes the -UseExtendedAscii parameter to have no effect.</maml:para> </maml:description> <command:parameterValue required="false" variableLength="false">SwitchParameter</command:parameterValue> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>StartWithLetter</maml:name> <maml:description> <maml:para>If this switch is specified, the first character of the password will be either an uppercase or lowercase letter. This slightly decreases entropy, but decreases it further as the password length increases.</maml:para> </maml:description> <command:parameterValue required="false" variableLength="false">SwitchParameter</command:parameterValue> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>UseAmbiguousCharacters</maml:name> <maml:description> <maml:para>By default, ambigious characters such as '1', 'I', 'l', and '|'; as well as '0' and 'O'; will not be used, so that the password is a little easier for a human to read and type. If you would like these similar-looking characters to be used in the password, specify this switch, and they will be returned to the character pool. Specifying this switch slightly increases entropy.</maml:para> </maml:description> <command:parameterValue required="false" variableLength="false">SwitchParameter</command:parameterValue> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>UseExtendedAscii</maml:name> <maml:description> <maml:para>By default, the extended ASCII character set is not used. Specify this switch to make your passwords more random and contain far more entropy. However, you will no longer be able to type them easily on a standard keyboard. In addition, some services may not permit these special characters. However, specifying this switch greatly increases entropy, as the character pool is roughly doubled.</maml:para> <maml:para>If the -NoSymbols parameter is specified, then this parameter has no effect.</maml:para> <maml:para>When using WordList mode, this will only affect the separator characters. It not affect any words pulled from a wordlist.</maml:para> </maml:description> <command:parameterValue required="false" variableLength="false">SwitchParameter</command:parameterValue> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <command:parameter required="true" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>WordList</maml:name> <maml:description> <maml:para>A plain text file containing one word per line. This will be loaded into memory when generating a password containing words.</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">FileInfo</command:parameterValue> <dev:type> <maml:name>FileInfo</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none"> <maml:name>Words</maml:name> <maml:description> <maml:para>When generating a password made up of random words, the password should contain this many words. Each word will be separated by a single number, symbol (only if -NoSymbols is not specified), or an extended ASCII character (only if -UseExtendedAscii is specified).</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">UInt32</command:parameterValue> <dev:type> <maml:name>UInt32</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes> <command:inputType> <dev:type> <maml:name>None</maml:name> </dev:type> <maml:description> <maml:para>This cmdlet does not accept pipeline input.</maml:para> </maml:description> </command:inputType> </command:inputTypes> <command:returnValues> <command:returnValue> <dev:type> <maml:name>System.Security.SecureString</maml:name> </dev:type> <maml:description> <maml:para>If the -AsPlainText parameter is not specified.</maml:para> </maml:description> </command:returnValue> <command:returnValue> <dev:type> <maml:name>System.String</maml:name> </dev:type> <maml:description> <maml:para>If the -AsPlainText parameter is specified.</maml:para> </maml:description> </command:returnValue> </command:returnValues> <maml:alertSet> <maml:alert> <maml:para>This cmdlet can generate passwords with very high entropy, but they might be longer or stronger than your service allows. For example, this cmdlet could generate a password with 4.2 billion characters, but Microsoft 365 passwords are limited to 256 characters. Make good passwords, but be aware of your service's limits.</maml:para> <maml:para>Also, when generating passwords of random words, note that the size of your wordlist will have a direct effect on performance.</maml:para> </maml:alert> </maml:alertSet> <command:examples> <command:example> <maml:title>-------------------------- Example 1 --------------------------</maml:title> <dev:code>PS C:\> $secureStr = Get-RandomPassword -Length 32</dev:code> <dev:remarks> <maml:para>Generates a 32-character password and saves it as a SecureString object. This can be used in PowerShell scripts. For one example, run Get-Help about_PSPasswordGenerator.</maml:para> </dev:remarks> </command:example> <command:example> <maml:title>-------------------------- Example 2 --------------------------</maml:title> <dev:code>PS C:\> Get-RandomPassword -AsPlainText -Length 16 \#aT*fAg]u5$):%a</dev:code> <dev:remarks> <maml:para>Generates a 16-character password and prints it to the output stream. You can then copy and paste it for use outside of PowerShell, or pipe it to a command such as Out-File to store it (probably insecurely).</maml:para> </dev:remarks> </command:example> <command:example> <maml:title>-------------------------- Example 3 --------------------------</maml:title> <dev:code>PS C:\> Get-RandomPassword -AsPlainText -Words 3 -WordList 'mywordlist.txt' stern4Trainer%exocycloida</dev:code> <dev:remarks> <maml:para>Generates a three-word password and prints it to the output stream. You can then copy and paste it for use outside of PowerShell, or pipe it to a command such as Out-File to store it (probably insecurely). Note that you must supply a wordlist to the cmdlet.</maml:para> </dev:remarks> </command:example> <command:example> <maml:title>-------------------------- Example 4 --------------------------</maml:title> <dev:code>PS C:\> $svcAccountPassword = Get-RandomPassword -Length 240 -UseAmbigiousCharacters -UseExtendedAscii</dev:code> <dev:remarks> <maml:para>Generates a 240-character password that can be as random as possible. This is good practice for making service accounts in Active Directory Domain Services, where a human will never need to type the password by hand.</maml:para> </dev:remarks> </command:example> </command:examples> <command:relatedLinks> <maml:navigationLink> <maml:linkText>Online Version:</maml:linkText> <maml:uri>https://github.com/rhymeswithmogul/PSPasswordGenerator/blob/main/man/en-US/Get-RandomPassword.md</maml:uri> </maml:navigationLink> <maml:navigationLink> <maml:linkText>about_PSPasswordGenerator</maml:linkText> <maml:uri></maml:uri> </maml:navigationLink> </command:relatedLinks> </command:command> </helpItems> |