What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

Powershell Parameter

Votes:

0

This is my Powershell Commandline.

.\LIC_FlexLM.ps1 -PortServer "@server" -Features 86445ACD_2016_0F,86829PDCOLL_T_F,85838NAVSIM_F

When i create Programm/Skript there is a Parameter(German). How do i properly add

"-PortServer "@server" -Features 86445ACD_2016_0F,86829PDCOLL_T_F,85838NAVSIM_F"

???

powershell prtg variables

Created on Jan 17, 2019 12:57:33 PM

Last change on Jan 17, 2019 1:32:46 PM by  Dariusz Gorka [Paessler Support]



2 Replies

Votes:

1

Your whole parameter set is wrong... try this:

-PortServer @server -Features '86445ACD_2016_0F,86829PDCOLL_T_F,85838NAVSIM_F'

Server shouldn't need text-quotes, cause it should be a single string with no spaces.

I removed the quotes surrunding the whole parameter string you had in the second line (first " and last "). The fact that you used those within the string again caused for sure further issues.

Instead I used single quotations ' ' what still is accepted by PowerShell and likely would bypass your issues, having said this - you should be able to use regular text-marks as well.

Did you enable the logging and check what the logfile says?

In German - short version: Du solltest keine Anführungszeichen am Anfang und Ende der Parameter setzen, du brichst diese auf mit dem Parameter Server was höchst wahrscheinlich noch mehr Probleme macht.

Es gibt keinen Grund den Servernamen in Anführungszeichen zu haben, wenn überhaupt dann nur Features, wobei das für mich auch aussieht wie ein einziger String und du in einem PS Befehlsbeispiel auch nicht ein Anführungszeichen hast..

Regards

Florian Rossmark

www.it-admins.com

Created on Jan 17, 2019 2:38:21 PM



Votes:

0

Thanks Flo :)


PRTG Scheduler | PRTGapi | Feature Requests | WMI Issues | SNMP Issues

Kind regards,
Stephan Linke, Tech Support Team

Created on Jan 18, 2019 10:52:12 AM by  Stephan Linke [Paessler Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.