-
Notifications
You must be signed in to change notification settings - Fork 11
Command Line Arguments
There are a few optional command line options that can be used with the scanning engine. They are listed below. They can also be shown in a PowerShell window by executing the QA check script with -Help.
Enter one or more servers to scan. A list of servers can be given on the command line or via a PowerShell function. For example, a list of servers can be read in from a text file, or a filtered list direct from Active Directory.
Some environments are locked down and do not allow ICMP to work. Using this option will attempt to connect to a remote server without sending a ping to it first.
When generating the HTML reports, do not add the hover help feature. This reduces the help file size by about 50%. See Appendix C for more information.
As well as generating the HTML file for every single server that is scanned, this option will only create a single CSV file containing all the servers that have been scanned.
As above with the CSV option, this generates an XML file.
If you need to supply alternative credentials for a remote server connection, you can specify them here. You can supply just the user name and the script will ask for the password, or you can pass a credential object.
QA.ps1 -ComputerName remote1 -Credential 'acme\user1'
QA.ps1 -ComputerName remote2 -Credential $credObject
If you need to use a different authentication type to connect to a remote server, you can set it here. The available options are:
Basic
CredSSP
Default
Digest
Kerberos
Negotiate
NegotiateWithImplicitCredential
See the following Microsoft article for more information on these options: https://docs.microsoft.com/dotnet/api/system.management.automation.runspaces