Jump to: navigation, search

Optional Command Line Parameters

The following parameters can be passed into the setup script using the following format –‘parameter name’ ‘value’ (without apostrophes, Boolean values are $true and $false):

passing SecureStrings to the command line parameters you will need to do the following: Read-Host "Enter Password" -AsSecureString | ConvertFrom-SecureString | Out-File "C:\Temp\Password1.txt" If you are passing 2 passwords, you will need to do the above twice into different files, then do the following: $pass1 = Get-Content "C:\Temp\Password1.txt" | ConvertTo-SecureString Then pass these variables to the script via the command line. You must specify a password that meets the security and complexity requirements in place on your environment. (This may help https://msdn.microsoft.com/en-us/library/ms161959.aspx)

This page was last modified on July 2, 2019, at 07:52.


Comment on this article:

blog comments powered by Disqus