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"

???


Article Comments

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


Jan, 2019 - Permalink

Thanks Flo :)


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

Kind regards,
Stephan Linke, Tech Support Team


Jan, 2019 - Permalink