CompanyFile Parameter (Connect-QB Cmdlet)
The name of the CompanyFile to open.
Syntax
Connect-QB -CompanyFile string
Data Type
cstr
Default Value
""
Remarks
If QuickBooks is not currently open with a CompanyFile, QuickBooks will be automatically opened in the background with the file specified. Do not set CompanyFile when QuickBooks is open. If QuickBooks is open through the application UI, only the currently opened CompanyFile may be used. If you are connecting to a remote company file, the CompanyFile parameter will be ignored. Specify the company file when you create a QuickBooks Gateway user.