<?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: NetApp Powershell Shutdown Script in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-Powershell-Shutdown-Script/m-p/1493#M61</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm.. This isn't something I can "test" b/c I can't halt a filer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried to run the commands line by line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you should create an array of your controllers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$hosts = @("filer1","filer2")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;$user = "root"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;$password = ConvertTo-SecureString "password" -AsPlainText -Force&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;$cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $user,$password&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$hosts | % { &lt;/P&gt;&lt;P&gt;$filer = $_&lt;/P&gt;&lt;P&gt;WRite-host "Connecting to Controller: " $Filer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $C = connect-nacontroller $filer -https -credential $cred &lt;/P&gt;&lt;P&gt;write-host "Halting Filer..... "&lt;/P&gt;&lt;P&gt;Invoke-NaSsh -Command 'halt -t 0'&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Nov 2012 19:48:30 GMT</pubDate>
    <dc:creator>JGPSHNTAP</dc:creator>
    <dc:date>2012-11-01T19:48:30Z</dc:date>
    <item>
      <title>NetApp Powershell Shutdown Script</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-Powershell-Shutdown-Script/m-p/1474#M57</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two NA filers that I'm writing a shutdown script to be kicked off by APC PowerChute. Really simple, I just need to Invoke-NaSsh and halt the system. I'm having a problem actually connecting to the filer, though. It appears that the generated PSCredential object (as per "get-help Connect-NaController -examples", example 4) isn't working. When manually invoking the Get-Credential function, the Connect-NaController process runs just fine. Even allocating a separate $cred variable, and outputting the Get-Credential result works. However, the given syntax from the example throws the following error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;Connect-NaController : Could not connect to x.x.x.x on port 80 for protocol HTTP.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;At line:1 char:21&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;+ Connect-NaController &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;nbsp; x.x.x.x -Credential $cred&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : InvalidResult: (10.20.4.15:NaController) [Connect-NaController], NaConnectionException&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : HttpConnectionFailed,DataONTAP.PowerShell.SDK.ConnectNaController&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the actual script in question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #99cc00;"&gt;# Power off NetApp (poweroffnetapp.ps1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #99cc00;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #99cc00;"&gt;# This script is intended to simply shut down a NetApp filer. It is intended&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #99cc00;"&gt;# to run after all other services and systems dependent upon the SAN have&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #99cc00;"&gt;# already halted.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #99cc00;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #99cc00;"&gt;# Created By: Ian Young&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #99cc00;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #99cc00;"&gt;# Variables:&amp;nbsp; $filers - A comma separate list of filers for this script to&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #99cc00;"&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;execute upon.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #99cc00;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #99cc00;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #99cc00;"&gt;# Usage: ./poweroffnetapp.ps1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #99cc00;"&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Intended to be ran in the command section of the APC Powerchute Network&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #99cc00;"&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Shutdown program before the shutdown sequence has started.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #99cc00;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #99cc00;"&gt;#################################################################################&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Import-Module DataONTAP&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;$user = "root"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;$password = ConvertTo-SecureString "password" -AsPlainText -Force&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;$cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $user,$password&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;$filer1 = "x.x.x.x"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;$filer2 = "x.x.x.x"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Write-Host "Shutting down Filer 1"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Connect-NaController $filer1 -Credential $cred&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Invoke-NaSsh -Command 'halt -t 0'&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Write-Host "Shutting down Filer 2"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Connect-NaController $filer2 -Credential $cred&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Invoke-NaSsh -Command 'halt -t 0'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's an absurdly simple script that is meant to run after our SAN-reliant hosts have been shut down. I'm sure I'm missing something completely rudimentary here, but I've never written anything using the DataONTAP Powershell kit, so I'm at a loss. Thanks for any help or advice you can offer!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:17:24 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-Powershell-Shutdown-Script/m-p/1474#M57</guid>
      <dc:creator>IAN_YOUNG</dc:creator>
      <dc:date>2025-06-05T06:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp Powershell Shutdown Script</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-Powershell-Shutdown-Script/m-p/1480#M58</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can configure connect-nacontroller how you want to connect to the controller, I believe the default is HTTPS (secureadmin setup ssl).&lt;/P&gt;&lt;P&gt;From a powershell command line issue a Import-Module DataONTAP command, then do a connect-nacontroller filername -cred username -HTTP, then see what happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Options&lt;/P&gt;&lt;P&gt;Connect-NaController [-Name] &amp;lt;String&amp;gt; [-Port &amp;lt;UInt16&amp;gt;] [-Credential &amp;lt;PSCredential&amp;gt;] [-HTTPS] [-HTTP] [-RPC] [-Transient] [-Vfiler &amp;lt;String&amp;gt;] [-Timeout &amp;lt;Int32&amp;gt;] [&amp;lt;CommonParameters&amp;gt;]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;DESCRIPTION&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Establish a connection to a Data ONTAP storage controller.&amp;nbsp; Unless 'Transient' is true, this connection is saved in the global variable CurrentNaController.&amp;nbsp; All other cmdlets in the Data ONTAP PowerShell Toolkit utilize this global variable if their 'Controller' parameter is not explicitly provided.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Connections are established using RPC by default.&amp;nbsp; To use HTTPS (with automatic fallback to HTTP), supply the Credential parameter (see examples) or save credentials in the Toolk it credentials cache.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Use the RPC/HTTP/HTTPS parameters to limit connections to a specific protocol.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 19:36:07 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-Powershell-Shutdown-Script/m-p/1480#M58</guid>
      <dc:creator>bbjholcomb</dc:creator>
      <dc:date>2012-10-12T19:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp Powershell Shutdown Script</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-Powershell-Shutdown-Script/m-p/1485#M59</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's defaulting to HTTP for some reason, but we've also tried with HTTPS &amp;amp; RPC. Both also result in an error. Here is the output of each.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;Connect-NaController : RPC Error: The RPC server is unavailable. Code 0x6BA.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;At line:1 char:21&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;+ Connect-NaController &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;nbsp; $filer1 -Credential $cred -RPC&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : InvalidResult: (x.x.x.x:NaController) [Connect-NaController], EAPITRANSMISSION&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : RpcConnectionFailed,DataONTAP.PowerShell.SDK.ConnectNaController&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;Connect-NaController : Incorrect credentials for x.x.x.x&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;At line:1 char:21&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;+ Connect-NaController &amp;lt;&amp;lt;&amp;lt;&amp;lt; x.x.x.x -Credential $cred -HTTPS&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : InvalidResult: (x.x.x.x:NaController) [Connect-NaController], NaAuthException&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : HttpConnectionFailed,DataONTAP.PowerShell.SDK.ConnectNaController&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Now, I'm not entirely sure why HTTPS claims to have incorrect credentials. This is the exact same object setup. It seems like the correct object isn't being produced. Because, as I mentioned before, when manually invoking Get-Credential and running, everything works, and I get a connection object on $CurrentNaController.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 20:45:22 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-Powershell-Shutdown-Script/m-p/1485#M59</guid>
      <dc:creator>IAN_YOUNG</dc:creator>
      <dc:date>2012-10-12T20:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp Powershell Shutdown Script</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-Powershell-Shutdown-Script/m-p/1489#M60</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does nobody have any idea what's going on here? I would think that the premise of the script, to connect to the controller and run one halt command, would be simple. What's happening?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 16:28:00 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-Powershell-Shutdown-Script/m-p/1489#M60</guid>
      <dc:creator>IAN_YOUNG</dc:creator>
      <dc:date>2012-10-23T16:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp Powershell Shutdown Script</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-Powershell-Shutdown-Script/m-p/1493#M61</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm.. This isn't something I can "test" b/c I can't halt a filer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried to run the commands line by line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you should create an array of your controllers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$hosts = @("filer1","filer2")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;$user = "root"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;$password = ConvertTo-SecureString "password" -AsPlainText -Force&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;$cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $user,$password&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$hosts | % { &lt;/P&gt;&lt;P&gt;$filer = $_&lt;/P&gt;&lt;P&gt;WRite-host "Connecting to Controller: " $Filer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $C = connect-nacontroller $filer -https -credential $cred &lt;/P&gt;&lt;P&gt;write-host "Halting Filer..... "&lt;/P&gt;&lt;P&gt;Invoke-NaSsh -Command 'halt -t 0'&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 19:48:30 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-Powershell-Shutdown-Script/m-p/1493#M61</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2012-11-01T19:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp Powershell Shutdown Script</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-Powershell-Shutdown-Script/m-p/1498#M62</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got the same problem. Solved by doing :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $UserName="root"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $Password="netapp"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList "$UserName",(ConvertTo-SecureString $Password -AsPlainText -Force)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note the double quotes for the username .. that solved the problem for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 00:50:58 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-Powershell-Shutdown-Script/m-p/1498#M62</guid>
      <dc:creator>marc_ferber</dc:creator>
      <dc:date>2012-11-02T00:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp Powershell Shutdown Script</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-Powershell-Shutdown-Script/m-p/1503#M63</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your original code works for me without any changes.&amp;nbsp; I don't have any issues with it, so that's strange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are my questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What version of the Powershell toolkit are you running?&lt;/P&gt;&lt;P&gt;Do you have a firewall between the station running the script and the controller?&amp;nbsp; That would explain the RPC issue.&amp;nbsp; If so, try this test again from a machine inside the firewall.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your testing where you used -HTTPS, it says you used invalid credentials.&amp;nbsp; Is there any chance the password or username got goofed?&amp;nbsp; That's a fairly specific error message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 14:54:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-Powershell-Shutdown-Script/m-p/1503#M63</guid>
      <dc:creator>bsti</dc:creator>
      <dc:date>2012-11-02T14:54:44Z</dc:date>
    </item>
  </channel>
</rss>

