Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Command Line Arguments

My-Random-Thoughts edited this page Oct 28, 2017 · 1 revision

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.

-ComputerName

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.

-DoNotPing

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.

-SkipHTMLHelp

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.

-GenerateCSV

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.

-GenerateXML

As above with the CSV option, this generates an XML file.

-Credential

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

-Authentication

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

Clone this wiki locally