<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Set-HPiLOSchemalessDirectory doesn't accept variable in Powershell in Server Management - Remote Server Management</title>
    <link>https://community.hpe.com/t5/server-management-remote-server/set-hpiloschemalessdirectory-doesn-t-accept-variable-in/m-p/7067681#M8511</link>
    <description>&lt;P&gt;For those who may be having this issue:&lt;/P&gt;&lt;P&gt;Issue lies in the fact that you can't pass the parameter inside the variable; It must standalone within the command.&amp;nbsp; The following would work:&lt;/P&gt;&lt;P&gt;Set-HPiLOSchemalessDirectory -GroupAccount Enable -server $server -DisableCertificateAuthentication - Credential $Creds &lt;EM&gt;&lt;STRONG&gt;-Group1Name&lt;/STRONG&gt; &lt;/EM&gt;$G1Name &lt;EM&gt;&lt;STRONG&gt;-Group1Priv&lt;/STRONG&gt; &lt;/EM&gt;$G1Priv &lt;EM&gt;&lt;STRONG&gt;-Group1SID&lt;/STRONG&gt; &lt;/EM&gt;$G1SID&lt;/P&gt;</description>
    <pubDate>Fri, 25 Oct 2019 23:54:05 GMT</pubDate>
    <dc:creator>CatnJun</dc:creator>
    <dc:date>2019-10-25T23:54:05Z</dc:date>
    <item>
      <title>Set-HPiLOSchemalessDirectory doesn't accept variable in Powershell</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/set-hpiloschemalessdirectory-doesn-t-accept-variable-in/m-p/7067238#M8505</link>
      <description>&lt;P&gt;When trying to set up iLO AD Groups using the HPiLO cmdlets in Powershell, I'm getting an error.&amp;nbsp; The code line is as follows:&lt;/P&gt;&lt;P&gt;Set-HPiLOSchemalessDirectory -GroupAccount Enable -server $server -DisableCertificateAuthentication - Credential $Creds $str&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the code runs, I get the following error:&lt;/P&gt;&lt;P&gt;A positional parameter cannot be found that accepts argument '-Group1Name group -Group1Priv "1,2,3,4,5,6" -Group1SID ""'&lt;/P&gt;&lt;P&gt;$str in the command is the string containing '-Group1Name group...Group1SID ""'&lt;/P&gt;&lt;P&gt;Following Group1SID are 2 double-quotes to make a blank entry ($Null does not work)&lt;/P&gt;&lt;P&gt;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.&amp;nbsp;&amp;nbsp; Any assistance would be appreciated.&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 15:37:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/set-hpiloschemalessdirectory-doesn-t-accept-variable-in/m-p/7067238#M8505</guid>
      <dc:creator>CatnJun</dc:creator>
      <dc:date>2019-10-22T15:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set-HPiLOSchemalessDirectory doesn't accept variable in Powershell</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/set-hpiloschemalessdirectory-doesn-t-accept-variable-in/m-p/7067681#M8511</link>
      <description>&lt;P&gt;For those who may be having this issue:&lt;/P&gt;&lt;P&gt;Issue lies in the fact that you can't pass the parameter inside the variable; It must standalone within the command.&amp;nbsp; The following would work:&lt;/P&gt;&lt;P&gt;Set-HPiLOSchemalessDirectory -GroupAccount Enable -server $server -DisableCertificateAuthentication - Credential $Creds &lt;EM&gt;&lt;STRONG&gt;-Group1Name&lt;/STRONG&gt; &lt;/EM&gt;$G1Name &lt;EM&gt;&lt;STRONG&gt;-Group1Priv&lt;/STRONG&gt; &lt;/EM&gt;$G1Priv &lt;EM&gt;&lt;STRONG&gt;-Group1SID&lt;/STRONG&gt; &lt;/EM&gt;$G1SID&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 23:54:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/set-hpiloschemalessdirectory-doesn-t-accept-variable-in/m-p/7067681#M8511</guid>
      <dc:creator>CatnJun</dc:creator>
      <dc:date>2019-10-25T23:54:05Z</dc:date>
    </item>
  </channel>
</rss>

