<?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 SM-VI script credentials in VMware Solutions Discussions</title>
    <link>https://community.netapp.com/t5/VMware-Solutions-Discussions/SM-VI-script-credentials/m-p/22601#M2195</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm working on a script to be run after SMVI backup job. The script itself is a very simple batch file that calls a Powershell script :&lt;/P&gt;&lt;P&gt;set SCRIPTDIR=%WRAPPER_WORKING_DIR%\scripts&lt;/P&gt;&lt;P&gt;set &amp;gt; "%SCRIPTDIR%"\env.txt&lt;/P&gt;&lt;P&gt;%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -File "%SCRIPTDIR%"\PS\vfdr-smvi.ps1"&lt;/P&gt;&lt;P&gt;exit /b 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in the PS script, I'm using Ontap Powershell toolkit to perform several actions, and I would like to rely on RPC authentication.&lt;/P&gt;&lt;P&gt;Problem is that the script is run using computer's account instead of the users' credentials I've set in VSC.&lt;/P&gt;&lt;P&gt;Extract from "set" command output:&lt;/P&gt;&lt;P&gt;USERDOMAIN=NALUXLAB&lt;/P&gt;&lt;P&gt;USERNAME=NALUXWINVC01$&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried using "smvi servercredential set" command but it seems it works only for local users. Should I assume the credentials set in VSC-SMVI are only used when SMVI itself uses ZAPI calls? Should I run SMVI server service under a different account?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking you in advance for your feedback,&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Michel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2025 06:18:30 GMT</pubDate>
    <dc:creator>mg</dc:creator>
    <dc:date>2025-06-05T06:18:30Z</dc:date>
    <item>
      <title>SM-VI script credentials</title>
      <link>https://community.netapp.com/t5/VMware-Solutions-Discussions/SM-VI-script-credentials/m-p/22601#M2195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm working on a script to be run after SMVI backup job. The script itself is a very simple batch file that calls a Powershell script :&lt;/P&gt;&lt;P&gt;set SCRIPTDIR=%WRAPPER_WORKING_DIR%\scripts&lt;/P&gt;&lt;P&gt;set &amp;gt; "%SCRIPTDIR%"\env.txt&lt;/P&gt;&lt;P&gt;%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -File "%SCRIPTDIR%"\PS\vfdr-smvi.ps1"&lt;/P&gt;&lt;P&gt;exit /b 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in the PS script, I'm using Ontap Powershell toolkit to perform several actions, and I would like to rely on RPC authentication.&lt;/P&gt;&lt;P&gt;Problem is that the script is run using computer's account instead of the users' credentials I've set in VSC.&lt;/P&gt;&lt;P&gt;Extract from "set" command output:&lt;/P&gt;&lt;P&gt;USERDOMAIN=NALUXLAB&lt;/P&gt;&lt;P&gt;USERNAME=NALUXWINVC01$&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried using "smvi servercredential set" command but it seems it works only for local users. Should I assume the credentials set in VSC-SMVI are only used when SMVI itself uses ZAPI calls? Should I run SMVI server service under a different account?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking you in advance for your feedback,&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Michel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:18:30 GMT</pubDate>
      <guid>https://community.netapp.com/t5/VMware-Solutions-Discussions/SM-VI-script-credentials/m-p/22601#M2195</guid>
      <dc:creator>mg</dc:creator>
      <dc:date>2025-06-05T06:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: SM-VI script credentials</title>
      <link>https://community.netapp.com/t5/VMware-Solutions-Discussions/SM-VI-script-credentials/m-p/22606#M2196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ran into a similar&amp;nbsp; credential problem trying to update snapvaults after an SMVI job using a Powershell script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can add credentials for filers to the credential cache of the Powershell tookit and make them &lt;EM&gt;"system"&lt;/EM&gt; wide. That way any authenticated user can connect to a filer using powershell.&lt;/P&gt;&lt;P&gt;Not very secure but it gets the job done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More info: get-help Add-NaCredential -full&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 09:25:28 GMT</pubDate>
      <guid>https://community.netapp.com/t5/VMware-Solutions-Discussions/SM-VI-script-credentials/m-p/22606#M2196</guid>
      <dc:creator>oldyck</dc:creator>
      <dc:date>2012-09-27T09:25:28Z</dc:date>
    </item>
  </channel>
</rss>

