---
updatedAt: 2026-05-15T22:29:40.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/powershell/llms.txt
---

# Netstorage credentials

Export-NetstorageCredentials

## Synopsis

Export Netstorage credentials to a file.

## Syntax

```powershell
Export-NetstorageCredentials [[-NSRCFile] <String>] [[-Section] <String>] [-Key] <String> [-ID] <String> [-Group] <String> [-Hostname] <String> [-CPCode] <String> [-Force] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

## Description

This function will take a given set of Netstorage credentials and write them to a .nsrc file, either in the \[default] section or a custom section if provided.

## Parameters

<table>
  <tbody>
    <tr>
      <td class="ps-td"><code>&#8209;CPCode</code><br/><span style="color: red; padding-left: 11px; font-size: 13px;"><em>Required</em></span></td> 
      <td class="ps-tableinner">
        <div class="ps-metadata">
          <span class="ps-param-metadata">String</span>
          <span class="ps-param-metadata">Pipeline input: ByPropertyName</span>
        </div>
        <div>
          <p>Content provider code from your Netstorage group.</p>
        </div>
      </td>
    </tr>
    <tr>
      <td class="ps-td"><code>&#8209;Force</code></td> 
      <td class="ps-tableinner">
        <div class="ps-metadata">
          <span class="ps-param-metadata">Switch</span>
          <span class="ps-param-metadata">Pipeline input: False</span>
        </div>
        <div>
          <p>Overwrite an existing section in your EdgeRCFile, if it exists.</p>
        </div>
      </td>
    </tr>
    <tr>
      <td class="ps-td"><code>&#8209;Group</code><br/><span style="color: red; padding-left: 11px; font-size: 13px;"><em>Required</em></span></td> 
      <td class="ps-tableinner">
        <div class="ps-metadata">
          <span class="ps-param-metadata">String</span>
          <span class="ps-param-metadata">Pipeline input: ByPropertyName</span>
        </div>
        <div>
          <p>Domain prefix of your Netstorage group.</p>
        </div>
      </td>
    </tr>
    <tr>
      <td class="ps-td"><code>&#8209;Hostname</code><br/><span class="ps-param-alias">Alias: <code>&#8209;host</code></span><br/><span style="color: red; padding-left: 11px; font-size: 13px;"><em>Required</em></span></td> 
      <td class="ps-tableinner">
        <div class="ps-metadata">
          <span class="ps-param-metadata">String</span>
          <span class="ps-param-metadata">Pipeline input: ByPropertyName</span>
        </div>
        <div>
          <p>The API credential's hostname.</p>
        </div>
      </td>
    </tr>
    <tr>
      <td class="ps-td"><code>&#8209;ID</code><br/><span style="color: red; padding-left: 11px; font-size: 13px;"><em>Required</em></span></td> 
      <td class="ps-tableinner">
        <div class="ps-metadata">
          <span class="ps-param-metadata">String</span>
          <span class="ps-param-metadata">Pipeline input: ByPropertyName</span>
        </div>
        <div>
          <p>The <code>id</code> element to include in the edge auth token.</p>
        </div>
      </td>
    </tr>
    <tr>
      <td class="ps-td"><code>&#8209;Key</code><br/><span style="color: red; padding-left: 11px; font-size: 13px;"><em>Required</em></span></td> 
      <td class="ps-tableinner">
        <div class="ps-metadata">
          <span class="ps-param-metadata">String</span>
          <span class="ps-param-metadata">Pipeline input: ByPropertyName</span>
        </div>
        <div>
          <p>HTTP API key of your Netstorage upload account.</p>
        </div>
      </td>
    </tr>
    <tr>
      <td class="ps-td"><code>&#8209;NSRCFile</code></td> 
      <td class="ps-tableinner">
        <div class="ps-metadata">
          <span class="ps-param-metadata">String</span>
          <span class="ps-param-metadata">Pipeline input: False</span>
        </div>
        <div>
          <p>NSRC file to update/create.</p>
        </div>
      </td>
    </tr>
    <tr>
      <td class="ps-td"><code>&#8209;Section</code></td> 
      <td class="ps-tableinner">
        <div class="ps-metadata">
          <span class="ps-param-metadata">String</span>
          <span class="ps-param-metadata">Pipeline input: False</span>
        </div>
        <div>
          <p>The section name in your EdgeGrid resource file to retrieve authentication credentials from. Defaults to <code>default</code>.</p>
        </div>
      </td>
    </tr>
  </tbody>
</table>

## Related Links

[User Guide: Overview](https://techdocs.akamai.com/powershell/docs/overview)

# Sibling pages

* [EdgeGrid credentials](https://techdocs.akamai.com/powershell/docs/export-edgegridcredentials.md)