<?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 PowerShell OneView commandline clarification in HPE OneView</title>
    <link>https://community.hpe.com/t5/hpe-oneview/powershell-oneview-commandline-clarification/m-p/7030292#M3686</link>
    <description>&lt;P&gt;Hey all, thanks for any&amp;nbsp;help, I'm struggling to get this command to work:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;get-hpovserver -name "[server name]" | stop-hpovserver&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I need it to stop the server without the prompt to confirm (Yes, Yes to All, No, No to All, etc.). I have to write a script to do many of these servers in one shot. So far my Google-fu has failed me. Any tips?&lt;/P&gt;&lt;P&gt;Thanks!&lt;BR /&gt;Mike&lt;/P&gt;</description>
    <pubDate>Mon, 07 Jan 2019 21:37:13 GMT</pubDate>
    <dc:creator>ArubaGuy</dc:creator>
    <dc:date>2019-01-07T21:37:13Z</dc:date>
    <item>
      <title>PowerShell OneView commandline clarification</title>
      <link>https://community.hpe.com/t5/hpe-oneview/powershell-oneview-commandline-clarification/m-p/7030292#M3686</link>
      <description>&lt;P&gt;Hey all, thanks for any&amp;nbsp;help, I'm struggling to get this command to work:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;get-hpovserver -name "[server name]" | stop-hpovserver&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I need it to stop the server without the prompt to confirm (Yes, Yes to All, No, No to All, etc.). I have to write a script to do many of these servers in one shot. So far my Google-fu has failed me. Any tips?&lt;/P&gt;&lt;P&gt;Thanks!&lt;BR /&gt;Mike&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 21:37:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/powershell-oneview-commandline-clarification/m-p/7030292#M3686</guid>
      <dc:creator>ArubaGuy</dc:creator>
      <dc:date>2019-01-07T21:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: PowerShell OneView commandline clarification</title>
      <link>https://community.hpe.com/t5/hpe-oneview/powershell-oneview-commandline-clarification/m-p/7030296#M3687</link>
      <description>&lt;P&gt;Nevermind, figured it out. The command should be:&lt;/P&gt;&lt;PRE&gt;get-hpovserver -name "ILOMXQ834006Y" | stop-hpovserver -confirm:$false&lt;/PRE&gt;&lt;P&gt;I wish the documentation was clearer about the possible parameters for all of these scripts. If I look at the commandline specified in the Github page, it reads:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Stop-HPOVServer [-InputObject] &amp;lt;Object&amp;gt;[ [-Async] &amp;lt;SwitchParameter&amp;gt;] [-ApplianceConnection] &amp;lt;Object&amp;gt;[ [-WhatIf] &amp;lt;SwitchParameter&amp;gt;][ &lt;FONT color="#FF00FF"&gt;[-Confirm] &amp;lt;SwitchParameter&amp;gt;]&lt;/FONT&gt; [&amp;lt;CommonParameters&amp;gt;]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;To me, that implies that after the "-Confirm", there should be a space, then some sort of parameter, similar to this:&lt;/P&gt;&lt;PRE&gt;stop-hpovserver -confirm false&lt;/PRE&gt;&lt;P&gt;I haven't found anywhere that has a general guide for how to use these parameters, such as "don't put a space, put a colon" and "possible values are: $true, $false", etc.&lt;/P&gt;&lt;P&gt;I've spent so&amp;nbsp;much time banging my head on the unclear documentation for these PowerShell utilities, trying to randomly guess the right parameters... am I just missing something that gives you general usage info (not command-specific info)?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 22:48:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/powershell-oneview-commandline-clarification/m-p/7030296#M3687</guid>
      <dc:creator>ArubaGuy</dc:creator>
      <dc:date>2019-01-07T22:48:28Z</dc:date>
    </item>
  </channel>
</rss>

