<?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 Windows Splunk - difficulty changing default password from CLI in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Windows-Splunk-difficulty-changing-default-password-from-CLI/m-p/102944#M21619</link>
    <description>&lt;P&gt;I'm working on some scripts to install Splunk and configure several things right off the bat, under several different OS's. For some reason the Windows splunk client is behaving differently than the Linux one. &lt;/P&gt;

&lt;P&gt;After a fresh Splunk install, when I try to change the default password, I'm getting the following error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;gt; "C:\Program Files\Splunk\bin\splunk.exe" edit user 'admin' -password '(random pass)' -role Admin -auth 'admin:changeme'
Login failed
Login failed
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I run that same command again but leave off the -auth section, so it prompts me for a username/password, it is rejecting admin:changeme on the CLI.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;gt; "C:\Program Files\Splunk\bin\splunk.exe" edit user 'admin' -password '(random pass)' -role Admin
Your session is invalid.  Please login.
Splunk username: admin
Password:
In handler 'users': Could not get info for non-existent user: 'admin'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can however log into the web interface as admin:changeme, oddly enough.&lt;/P&gt;

&lt;P&gt;Come to think of it, on the Linux side I am starting splunk up with "--accept-license --answer-yes" before changing the password, however I haven't been trying to do that in Windows since it's running as a service OK. Is that the catch? &lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 16 May 2011 22:37:07 GMT</pubDate>
    <dc:creator>s6a9d6u9s</dc:creator>
    <dc:date>2011-05-16T22:37:07Z</dc:date>
    <item>
      <title>Windows Splunk - difficulty changing default password from CLI</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-Splunk-difficulty-changing-default-password-from-CLI/m-p/102944#M21619</link>
      <description>&lt;P&gt;I'm working on some scripts to install Splunk and configure several things right off the bat, under several different OS's. For some reason the Windows splunk client is behaving differently than the Linux one. &lt;/P&gt;

&lt;P&gt;After a fresh Splunk install, when I try to change the default password, I'm getting the following error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;gt; "C:\Program Files\Splunk\bin\splunk.exe" edit user 'admin' -password '(random pass)' -role Admin -auth 'admin:changeme'
Login failed
Login failed
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I run that same command again but leave off the -auth section, so it prompts me for a username/password, it is rejecting admin:changeme on the CLI.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;gt; "C:\Program Files\Splunk\bin\splunk.exe" edit user 'admin' -password '(random pass)' -role Admin
Your session is invalid.  Please login.
Splunk username: admin
Password:
In handler 'users': Could not get info for non-existent user: 'admin'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can however log into the web interface as admin:changeme, oddly enough.&lt;/P&gt;

&lt;P&gt;Come to think of it, on the Linux side I am starting splunk up with "--accept-license --answer-yes" before changing the password, however I haven't been trying to do that in Windows since it's running as a service OK. Is that the catch? &lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2011 22:37:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-Splunk-difficulty-changing-default-password-from-CLI/m-p/102944#M21619</guid>
      <dc:creator>s6a9d6u9s</dc:creator>
      <dc:date>2011-05-16T22:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Windows Splunk - difficulty changing default password from CLI</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-Splunk-difficulty-changing-default-password-from-CLI/m-p/102945#M21620</link>
      <description>&lt;P&gt;For a scripted install you may find it easier to use the &lt;A href="http://www.splunk.com/base/Documentation/latest/admin/User-seedconf"&gt;user-seed.conf&lt;/A&gt; to change admin's password on initial startup.  &lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2011 04:14:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-Splunk-difficulty-changing-default-password-from-CLI/m-p/102945#M21620</guid>
      <dc:creator>bwooden</dc:creator>
      <dc:date>2011-05-17T04:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Windows Splunk - difficulty changing default password from CLI</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-Splunk-difficulty-changing-default-password-from-CLI/m-p/102946#M21621</link>
      <description>&lt;P&gt;bwooden is correct that you would be better off loading user-seed.conf into the install prior to first run for scripted installs. But your problem is that you're using the single quotes (&lt;CODE&gt;'&lt;/CODE&gt;) around your arguments. Windows does not use those to quote arguments. Unless you have spaces within the user name or password, you should just leave the quotes off. If you do have spaces, then you should use double-quotes (&lt;CODE&gt;"&lt;/CODE&gt;), not single quotes (&lt;CODE&gt;'&lt;/CODE&gt;), at the Windows CLI.&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2011 07:24:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-Splunk-difficulty-changing-default-password-from-CLI/m-p/102946#M21621</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-05-17T07:24:17Z</dc:date>
    </item>
  </channel>
</rss>

