PowerShell for EPiServer - cheat sheet - Part 1
Most of this is based on the Microsoft’s Windows PowerShell Quick Reference however despite the sharing scripting runtimes the nature of the both shells are pretty different (although the differences are not as vast as one might think).
| Windows PowerShell | PowerShell Console for EPiServer |
|---|---|
| Interactive ? command can ask for confirmations and can be aborted. User can be solicited to provide input. | Batch ? all commands are being executed in one go, the script has no chance to ask questions, go or no-go decisions have to be solved within the script. |
| Supports colouring. | Supports plain text output only. |
| Supports command line arguments for running scripts. | All arguments are defined directly within the script or derived from context automatically. |
| Can access any file depending on the rights of the user. | Can only access files the web application identity can write to. Cannot access files on user?s machine but rather operates on the server?s file system. Cannot operate with elevated privileges. |
That said, I considered that enough of the Reference document is irrelevant in the EPiServer scenario that it’s beneficial for the users of the console to have a bespoke cheat sheet created especially for the purpose of this plugin.