{
  "changes": [
    {
      "code": "network_share_path_changed",
      "consider": [
        "The old and new path in the event: does the new folder hold the data users expect?",
        "The new folder's NTFS permissions, which may differ from the old folder's."
      ],
      "explanation": "The share kept its name but its local path changed. Computer Management and `Set-SmbShare` cannot change a share's folder, so this is usually a share removed and created again under the same name, as during a data move to a new drive or a server migration. It also reports a path that stops being readable, or becomes readable again; the event then shows a path on one side only. A share that stays gone for a while before it comes back reads as removed, then added.",
      "impact": "Users and mapped drives that open the share by name see different files, or none, and new files are saved to the new folder.",
      "label": "Network share path changed",
      "scenario": "After a data move, the Scans share is pointed from drive E to drive F.",
      "severityText": "Notice by default; configurable from Info through Warning.",
      "summary": "A network share now points at a different folder."
    },
    {
      "code": "network_share_permissions_changed",
      "consider": [
        "`Get-SmbShareAccess -Name <share>` lists the entries now in force, by account name.",
        "In the event's SDDL, WD is Everyone, AU is Authenticated Users, BA is Administrators and FA is full control.",
        "Whether Everyone, Guest or Authenticated Users gained access, and whether the accounts that need it lost it.",
        "The folder's NTFS permissions, if users are still refused once the share permissions look right."
      ],
      "explanation": "The share permissions (Advanced Sharing, Permissions, or `Grant-SmbShareAccess` and `Revoke-SmbShareAccess`) changed, and the event carries the list before and after. Changes to the folder's NTFS permissions do not raise it, though they also decide who gets in.",
      "impact": "Users can suddenly be refused when they open or save files on the share, or the share can open to people who should not reach it, such as Everyone.",
      "label": "Network share permissions changed",
      "scenario": "Authenticated users lose write access to the Scans share, and the office scanner can no longer save to it.",
      "severityText": "Notice by default; configurable from Info through Warning.",
      "summary": "The share-level permissions on a network share changed."
    },
    {
      "code": "network_share_added",
      "consider": [
        "The path and permissions in the event: is the folder meant to be shared, and with whom?",
        "`Get-SmbShareAccess -Name <share>` shows the share permissions by account name.",
        "The folder's NTFS permissions, which also limit what share users can do.",
        "Remove an unwanted share with `Remove-SmbShare -Name <share>`, or in Computer Management, Shared Folders."
      ],
      "explanation": "Windows now offers a share it did not offer before, and the event carries its local path and its share permissions. It covers folder shares, shared printers, and administrative shares that Windows creates again. A user sharing a folder from Explorer, an application or scanner setup, a backup tool, and an attacker staging data all create shares. SparkLogs also collects Security event 5142, which records the account that added a share when file share auditing is on.",
      "impact": "Anyone the share's permissions allow can now reach that folder or printer from the network, and an unexpected share is a common path for data exposure.",
      "label": "Network share added",
      "scenario": "An administrator shares a Reports folder on a file server, read-only for authenticated users.",
      "severityText": "Notice by default; configurable from Info through Warning.",
      "summary": "A network share was added."
    },
    {
      "code": "network_share_removed",
      "consider": [
        "Whether a share was added under another name, or on another server, at the same time.",
        "Mapped drives, scanner profiles and application settings that still point at it.",
        "If it was removed by mistake, create it again with the path and permissions the event carries."
      ],
      "explanation": "The share is gone from both the shares Windows offers and its saved share list, and has stayed gone, so a share removed and quickly created again does not raise it. A renamed share reads as this share removed and a new one added. Decommissioning, a data move, cleanup by an administrator or script, and hardening that turns off the administrative shares (C$, ADMIN$) are the usual causes.",
      "impact": "Mapped drives, scan-to-folder and applications that use the share fail with \"The network name cannot be found\".",
      "label": "Network share removed",
      "scenario": "A decommissioning script removes the Scans share from an old file server.",
      "severityText": "Notice by default; configurable from Info through Warning.",
      "summary": "A network share was removed."
    }
  ],
  "conditions": [],
  "fieldGroups": [
    {
      "id": "share",
      "title": "Share"
    }
  ],
  "fieldPrefix": "sparklogs.data.network_shares.",
  "fields": [
    {
      "doc": "The share name, as Windows spells it.",
      "group": "share",
      "name": "share_name",
      "type": "string"
    },
    {
      "doc": "The local folder the share exposes, exactly as Windows returns it. Empty for an IPC share, which has no folder. Absent when it could not be read or the share is only in the registry.",
      "group": "share",
      "name": "path",
      "type": "string"
    },
    {
      "doc": "The kind of share: `disk`, `print`, `device`, `ipc` or `unknown`. Absent when the share is only in the registry.",
      "group": "share",
      "name": "share_type",
      "type": "string"
    },
    {
      "doc": "The numeric share type Windows reports (the base type, without the special and temporary flags).",
      "group": "share",
      "name": "share_type_code",
      "type": "integer"
    },
    {
      "doc": "Whether Windows marks this as a special share, such as an administrative share like `C$` or `ADMIN$`.",
      "group": "share",
      "name": "special",
      "type": "bool"
    },
    {
      "doc": "Whether Windows marks the share as temporary.",
      "group": "share",
      "name": "temporary",
      "type": "bool"
    },
    {
      "doc": "Whether the share is saved in the registry, so the Server service recreates it at startup.",
      "group": "share",
      "name": "persistent",
      "type": "bool"
    },
    {
      "doc": "Whether the Server service currently offers the share.",
      "group": "share",
      "name": "live",
      "type": "bool"
    },
    {
      "doc": "The share's comment. Absent when empty or not read.",
      "group": "share",
      "name": "remark",
      "type": "string"
    },
    {
      "doc": "The share permissions, as an SDDL access list. Empty when the share has no permission list, which gives the default access. Absent when it could not be converted or the share is only in the registry.",
      "group": "share",
      "name": "permissions_sddl",
      "type": "string"
    }
  ],
  "name": "Network shares",
  "occurrences": [],
  "page": "/docs/it-fleet-intelligence/reference/topics/network-shares",
  "status": "live",
  "summary": "Local disk, print, device and IPC shares, their paths and permissions. Shows observed additions, removals and configuration changes.",
  "topic": "network_shares"
}
