So, in first example –ServerInstance ‘ABC’ is a named parameter and in a second example –ServerInstance ‘DynamicsNAV70’ is a positional parameter. But Get-Help New-NAVServerInstance and Get-Help Export-NAVServerLicenseInformation do not specify which parameter is named and which is positional. How am I supposed to understand which type does the parameter have and whether I am allowed to change the parameters order and omit the parameter name?Named parameters are parameters that always have to be specified as a “Name – Value” pair. Named parameters can typivally be entered in any order.
The example: New-NAVServerInstance –ServerInstance ‘ABC’ –ManagementServicesPort 7045 – ClientServicesPort 7046 –SOAPServicesPort 7047 –OdataServicesPort -7048
Positional parameters are parameters that have a fixed position in the syntax. Positional parameters can be entered as a “Name – Value” pair, but you can omit the parameter name. Positional parameters must be entered in a fixed order.
The example: Export-NAVServerLicenseInformation –ServerInstance ‘DynamicsNAV70’
Answers
you should check msdn for these topics, the documentation found there is usally pretty helpful.
1) You can look for the cmdlets here: http://msdn.microsoft.com/en-us/library/jj672916(v=nav.71).aspx
For each parameter the position and this stuff is listed.
2) Not sure what you mean by not all permission sets, you specify the instance in the parameter. In your example it was "DynamicsNAV71".
For importing permission sets check New-NAVServerPermissionSet and New-NAVServerPermission
Regards,
Mats
1. Thanks for the link, it answerred my question.
2. I will try to explain myself in more clear way. The command says:
Use the Get-NAVServerPermissionSet cmdlet to return a list of permission sets for the specified Microsoft Dynamics NAV Server instance.
Suppose I have two NAV Server instances: DynamicsNAV71 and DynamicsNAV72. Can it be the case that these two instances have two different permission sets? How do I set different permission sets to different NAV server instances?
Thank you for your valuable replies, you answered all my questions!