When trying to set up iLO AD Groups using the HPiLO cmdlets in Powershell, I'm getting an error. The code line is as follows:
Set-HPiLOSchemalessDirectory -GroupAccount Enable -server $server -DisableCertificateAuthentication - Credential $Creds $str
When the code runs, I get the following error:
A positional parameter cannot be found that accepts argument '-Group1Name group -Group1Priv "1,2,3,4,5,6" -Group1SID ""'
$str in the command is the string containing '-Group1Name group...Group1SID ""'
Following Group1SID are 2 double-quotes to make a blank entry ($Null does not work)
The odd thing is that I can manually type the command and replace $str with the copied contents from the error message, and it works fine. Any assistance would be appreciated. Thanks.