---
updatedAt: 2026-03-01T18:22:20.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/powershell/llms.txt
---

# Object

Measure-NetstorageObject

## Synopsis

Get object stat.

## Syntax

```powershell
Measure-NetstorageObject [-Path] <String> [-Encoding <String>] [-Implicit] [-SlashBoth] [-AuthFile <String>] [-Section <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

## Description

Retrieves the stat structure (information) for a named file, symlink, or directory.

> **Note:** You don't need to prepend paths with the upload directory CP code, this is implied.

## Parameters

<table>
  <tbody>
    <tr>
      <td class="ps-td"><code>&#8209;AuthFile</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>A location of your NetStorage auth file. Defaults to <code>~/.nsrc</code>, but environment variables will take precedence.</p>
        </div>
      </td>
    </tr>
    <tr>
      <td class="ps-td"><code>&#8209;Encoding</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>A specific encoding to use when requesting a response, for example, <code>utf-8</code>.</p>
        </div>
      </td>
    </tr>
    <tr>
      <td class="ps-td"><code>&#8209;Implicit</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>Adding this argument to the action header will look for an implicit directory that fits the specified path. </p>
          <p>Note that including this argument will result in slower output, as it requires more NetStorage resources. Therefore, it's recommended that you use it sparingly.</p>
        </div>
      </td>
    </tr>
    <tr>
      <td class="ps-td"><code>&#8209;Path</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: False</span>
        </div>
        <div>
          <p>A path of your directory within the NetStorage group.</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>
    <tr>
      <td class="ps-td"><code>&#8209;SlashBoth</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>Sets an additional <code>slash</code> option to <code>both</code>.</p>
        </div>
      </td>
    </tr>
  </tbody>
</table>

## Related Links

* [User Guide: NetStorage](https://techdocs.akamai.com/powershell/docs/netstorage)
* [API Reference](https://techdocs.akamai.com/netstorage-usage/reference/get-stat)