Notebooks Reset Session

Description

Resets the PowerShell session for a notebook, clearing all accumulated state (variables, loaded modules). Use this before running a notebook's cells from scratch.

Overview

Disposes the notebook’s current PowerShell session and creates a fresh one. All runtime state is lost. The notebook’s cells are not affected.

Use before calling NotebooksRunCell from cell 0 to ensure a clean environment.

Example

{
  "function_call": {
    "name": "NotebooksResetSession",
    "arguments": {
      "NotebookId": "0ea6458d-50f9-4be0-8c0e-af4c9d982418"
    }
  }
}

Example Output

SessionId : f7c3a1d2-e4b5-4c96-91a2-3d8f7a2c5e90
Name      : Windows AD Red Team Scenario
Scroll to Top