# Toolbox

The PowerShell Toolbox is quick way to access frequently used scripts.

Navigate to *Sitecore -> PowerShell Toolbox* and after selecting you should see the configured scripts:

![Toolbox](https://user-images.githubusercontent.com/933163/50113236-fda4b500-0206-11e9-8997-c629927a5148.png)

**Note:** Examples included in the following modules

* Authorable Reports
* Logged in Session Manager
* Package Generator
* Task Management
* Platform

## Available Tools

### Index Viewer

This tool provides similar functionality to the [Index Viewer](https://marketplace.sitecore.net/en/Modules/I/Index_Viewer.aspx) module. Search and rebuild the index on-demand.

![Index Viewer](https://user-images.githubusercontent.com/933163/50112430-d351f800-0204-11e9-9d5c-07c99c163205.png)

### Logged in Session Manager

View the list of user sessions and "kick" them out as needed.

![Logged in Session Manager](https://user-images.githubusercontent.com/933163/50112838-e1ecdf00-0205-11e9-8959-9d4332859162.png)

### Rules based report

Generate a report using the Sitecore Rules Engine.

![Rules based report](https://user-images.githubusercontent.com/933163/50112876-fd57ea00-0205-11e9-89ac-f407ada390a8.png)

### PowerShell Background Session Manager

View the list of SPE sessions and "kill" them as needed.

![PowerShell Background Session Manager](https://user-images.githubusercontent.com/933163/50112986-51fb6500-0206-11e9-8c4e-2905f1378dc9.png)

### Create Anti-Package

This tool provides similar functionality to the [Sitecore Rocks](https://github.com/SitecorePowerShell/Book/tree/9c7126d7a38df6ef372e8baef52f9a02baabd550/modules/integration-points/\[https:/marketplace.sitecore.net/en/Modules/S/Sitecore/_Rocks.aspx]) module.

![Create Anti-Package](https://user-images.githubusercontent.com/933163/50112920-1fea0300-0206-11e9-9a37-138c9cb9f273.png)

### Re-create Site from Sitemap

Simple tool for generating a site tree using an existing sitemap.

![Re-create Site from Sitemap](https://user-images.githubusercontent.com/933163/50113021-68a1bc00-0206-11e9-8f82-e7bc1d8eaefd.png)

### Task Manager

View and manage the configured scheduled tasks.

![Task Manager](https://user-images.githubusercontent.com/933163/50113111-a30b5900-0206-11e9-84b1-5ce866bb1d85.png)

## Create Tools for the Toolbox

To create your own Toolbox item take the following steps: 1. Create the *Toolbox* folder under an SPE module. Use the context menu to simplify the process.

* Right click the module name and choose Scripts -> Create libraries for integration points.

  ![Module Libraries](https://165468320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LA37Eh9vuWwQHUTc2NT%2Fuploads%2Fgit-blob-faf3c30cf01a748c179f598572c1237bd8511803%2Fmodule-createlibraries.png?alt=media)
* Select the *Toolbox* item and click *Proceed*.

  ![Module Toolbox Library](https://165468320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LA37Eh9vuWwQHUTc2NT%2Fuploads%2Fgit-blob-851480cbcce72a76ca233ff9d3e7edee45ae5d59%2Fmodule-createtoolboxlibrary.png?alt=media)

  1. Create a *PowerShell Script* under the *Toolbox* item.
* Right click the *Toolbox* library and choose *PowerShell Script*.

  ![Libary Script](https://165468320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LA37Eh9vuWwQHUTc2NT%2Fuploads%2Fgit-blob-c85215a8818d6117dd015a1cccc77c7dbbee72c0%2Flibrary-createscript.png?alt=media)

  1. Open and edit the *PowerShell Script* using the ISE.

     ![ISE Edit](https://165468320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LA37Eh9vuWwQHUTc2NT%2Fuploads%2Fgit-blob-70b78fc2b9b5b0bead7a8b98e6de2b3807daae4a%2Fscript-editise.png?alt=media)
  2. Run the *Rebuild All* command in the ISE by navigating to the *Settings* tab and selecting the icon to rebuild. Be certain to enable the module before running the rebuild command.

     ![ISE Settings Tab](https://165468320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LA37Eh9vuWwQHUTc2NT%2Fuploads%2Fgit-blob-ddc121aa2fc5e2266357897a901170ba1545210d%2Fise-settingstab.png?alt=media)
  3. Verify the new toolbox item appears in the Toolbox.

     ![Toolbox](https://user-images.githubusercontent.com/933163/50113236-fda4b500-0206-11e9-8997-c629927a5148.png)
