Command Line for PowerShell Script
The AppVMgmtSvr.ps1
PowerShell script is required only when importing
inventory from Microsoft App-V release 5.0 or later. (It is not required if you are using
App-V release 4.6.)
For applicable releases, AppVMgmtSvr.ps1 is installed on the App-V Management Server, where, on a schedule that you determine, it collects details of the available App-V packages, and the users and computers that have access to the packages. (Separately, usage information is collected by the App-V server adapter, with its separate configuration described in Configuring the Adapter.)
The following options are supported, both for running AppVMgmtSvr.ps1
manually and for executing it from a scheduled task or other scheduling tool. None of the
options is mandatory, although some are required for normal operation.
Syntax
Options
-beaconUrl validURL
-logFilePath log_file
-outputFilePath output_file
-password password
-upload $true | $false
-username account
where
Type | Description |
---|---|
-beaconUrl validURL |
The URL to the appropriate inventory beacon to which the script should upload the
generated .raa file. Include the protocol
(HTTP or HTTPS), and if your inventory beacon uses a non-default port, include the port number in the
standard way.
Note: Include only the basic URL of the server. No internal paths are
needed, as these details are added automatically by
There is no default value for
AppVMgmtSvr.ps1 .beaconUrl , so that in production use (when -upload
$true ), a value must be supplied. It can be omitted for local testing on the
server when uploading is not required. If -upload $true and
beaconUrl is not set, obviously the upload must fail.Example
values:
|
-logFilePath log_file |
A file path (either absolute, or relative to the folder in which the script is executing) and
file name for the log file generated by |
-outputFilePath output_file |
A file path (either absolute, or relative to the folder in which the script is executing) and
file name for the output remote application access (.raa) file
generated by |
-password "password" |
The password (in plain text) for the account specified in |
-upload $true | $false |
A Boolean that determines whether to attempt uploading the output file to an inventory beacon identified in |
-username
"account" |
The account name used to upload the generated .raa file to the inventory beacon identified in |
Examples
(Examples here may be line-wrapped for convenient presentation; but should be entered on a single command line.)
.\AppVMgmtSvr.ps1 -upload $false
.\AppVMgmtSvr.ps1 -outputFilePath "C:\temp\FNMS_AppV.raa"
-logFilePath "C:\temp\AppVMgmtSvr.log"
-upload $false
.\AppVMgmtSvr.ps1 -beaconUrl http://flexnetbeacon.example.com
testdomain\administrator
account:.\AppVMgmtSvr.ps1 -beaconUrl http://flexnetbeacon.example.com
-username "testdomain\administrator"
-password "somepassword"
FlexNet Manager Suite (On-Premises)
2023 R2