New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


Powershell Parameter

Votes:

0

Your Vote:

Up

Down

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 by  mmodric (0) 1

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



2 Replies

Votes:

1

Your Vote:

Up

Down

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 by  Florian Rossmark (3,674) 2 2



Votes:

0

Your Vote:

Up

Down

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]



Please log in or register to enter your reply.


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.