@antonytm/mcp-sitecore-server 1.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/README.md +3 -0
  2. package/dist/bundle.js +106 -12
  3. package/dist/register.js +7 -0
  4. package/dist/register.js.map +1 -1
  5. package/dist/tools/powershell/documentation/add-basetemplate.md +137 -0
  6. package/dist/tools/powershell/documentation/add-itemacl.md +254 -0
  7. package/dist/tools/powershell/documentation/add-itemversion.md +231 -0
  8. package/dist/tools/powershell/documentation/add-placeholdersetting.md +410 -0
  9. package/dist/tools/powershell/documentation/add-rendering.md +217 -0
  10. package/dist/tools/powershell/documentation/add-rolemember.md +88 -0
  11. package/dist/tools/powershell/documentation/clear-itemacl.md +131 -0
  12. package/dist/tools/powershell/documentation/close-window.md +32 -0
  13. package/dist/tools/powershell/documentation/commands-list.md +134 -0
  14. package/dist/tools/powershell/documentation/convertfrom-clixml.md +67 -0
  15. package/dist/tools/powershell/documentation/convertfrom-itemclone.md +118 -0
  16. package/dist/tools/powershell/documentation/convertto-clixml.md +66 -0
  17. package/dist/tools/powershell/documentation/disable-user.md +89 -0
  18. package/dist/tools/powershell/documentation/enable-user.md +89 -0
  19. package/dist/tools/powershell/documentation/expand-token.md +144 -0
  20. package/dist/tools/powershell/documentation/export-item.md +165 -0
  21. package/dist/tools/powershell/documentation/export-package.md +129 -0
  22. package/dist/tools/powershell/documentation/export-role.md +150 -0
  23. package/dist/tools/powershell/documentation/export-updatepackage.md +111 -0
  24. package/dist/tools/powershell/documentation/export-user.md +147 -0
  25. package/dist/tools/powershell/documentation/find-item.md +718 -0
  26. package/dist/tools/powershell/documentation/get-archive.md +73 -0
  27. package/dist/tools/powershell/documentation/get-archiveitem.md +138 -0
  28. package/dist/tools/powershell/documentation/get-cache.md +62 -0
  29. package/dist/tools/powershell/documentation/get-database.md +96 -0
  30. package/dist/tools/powershell/documentation/get-domain.md +75 -0
  31. package/dist/tools/powershell/documentation/get-item.md +186 -0
  32. package/dist/tools/powershell/documentation/get-itemacl.md +168 -0
  33. package/dist/tools/powershell/documentation/get-itemclone.md +100 -0
  34. package/dist/tools/powershell/documentation/get-itemclonenotification.md +95 -0
  35. package/dist/tools/powershell/documentation/get-itemfield.md +182 -0
  36. package/dist/tools/powershell/documentation/get-itemreference.md +152 -0
  37. package/dist/tools/powershell/documentation/get-itemreferrer.md +154 -0
  38. package/dist/tools/powershell/documentation/get-itemtemplate.md +152 -0
  39. package/dist/tools/powershell/documentation/get-itemworkflowevent.md +133 -0
  40. package/dist/tools/powershell/documentation/get-layout.md +142 -0
  41. package/dist/tools/powershell/documentation/get-layoutdevice.md +97 -0
  42. package/dist/tools/powershell/documentation/get-package.md +63 -0
  43. package/dist/tools/powershell/documentation/get-placeholdersetting.md +477 -0
  44. package/dist/tools/powershell/documentation/get-preset.md +70 -0
  45. package/dist/tools/powershell/documentation/get-rendering.md +248 -0
  46. package/dist/tools/powershell/documentation/get-renderingparameter.md +84 -0
  47. package/dist/tools/powershell/documentation/get-role.md +134 -0
  48. package/dist/tools/powershell/documentation/get-rolemember.md +131 -0
  49. package/dist/tools/powershell/documentation/get-scriptsession.md +128 -0
  50. package/dist/tools/powershell/documentation/get-searchindex.md +92 -0
  51. package/dist/tools/powershell/documentation/get-session.md +107 -0
  52. package/dist/tools/powershell/documentation/get-sitecorejob.md +102 -0
  53. package/dist/tools/powershell/documentation/get-spemodule.md +134 -0
  54. package/dist/tools/powershell/documentation/get-spemodulefeatureroot.md +113 -0
  55. package/dist/tools/powershell/documentation/get-taskschedule.md +136 -0
  56. package/dist/tools/powershell/documentation/get-updatepackagediff.md +110 -0
  57. package/dist/tools/powershell/documentation/get-user.md +193 -0
  58. package/dist/tools/powershell/documentation/get-useragent.md +38 -0
  59. package/dist/tools/powershell/documentation/import-function.md +83 -0
  60. package/dist/tools/powershell/documentation/import-item-1.md +180 -0
  61. package/dist/tools/powershell/documentation/import-item.md +180 -0
  62. package/dist/tools/powershell/documentation/import-role.md +137 -0
  63. package/dist/tools/powershell/documentation/import-user.md +137 -0
  64. package/dist/tools/powershell/documentation/initialize-item.md +87 -0
  65. package/dist/tools/powershell/documentation/initialize-searchindex.md +116 -0
  66. package/dist/tools/powershell/documentation/initialize-searchindexitem.md +85 -0
  67. package/dist/tools/powershell/documentation/install-package.md +95 -0
  68. package/dist/tools/powershell/documentation/install-updatepackage.md +90 -0
  69. package/dist/tools/powershell/documentation/invoke-javascript.md +22 -0
  70. package/dist/tools/powershell/documentation/invoke-script.md +111 -0
  71. package/dist/tools/powershell/documentation/invoke-shellcommand.md +144 -0
  72. package/dist/tools/powershell/documentation/invoke-workflow.md +142 -0
  73. package/dist/tools/powershell/documentation/lock-item.md +157 -0
  74. package/dist/tools/powershell/documentation/login-user.md +56 -0
  75. package/dist/tools/powershell/documentation/logout-user.md +30 -0
  76. package/dist/tools/powershell/documentation/merge-layout.md +102 -0
  77. package/dist/tools/powershell/documentation/new-domain.md +72 -0
  78. package/dist/tools/powershell/documentation/new-explicitfilesource.md +104 -0
  79. package/dist/tools/powershell/documentation/new-explicititemsource.md +146 -0
  80. package/dist/tools/powershell/documentation/new-filesource.md +128 -0
  81. package/dist/tools/powershell/documentation/new-itemacl.md +175 -0
  82. package/dist/tools/powershell/documentation/new-itemclone.md +139 -0
  83. package/dist/tools/powershell/documentation/new-itemsource.md +171 -0
  84. package/dist/tools/powershell/documentation/new-itemworkflowevent.md +140 -0
  85. package/dist/tools/powershell/documentation/new-package.md +81 -0
  86. package/dist/tools/powershell/documentation/new-placeholdersetting.md +255 -0
  87. package/dist/tools/powershell/documentation/new-rendering.md +243 -0
  88. package/dist/tools/powershell/documentation/new-role.md +56 -0
  89. package/dist/tools/powershell/documentation/new-securitysource.md +176 -0
  90. package/dist/tools/powershell/documentation/new-user.md +161 -0
  91. package/dist/tools/powershell/documentation/new-usingblock.md +95 -0
  92. package/dist/tools/powershell/documentation/out-download.md +123 -0
  93. package/dist/tools/powershell/documentation/protect-item.md +120 -0
  94. package/dist/tools/powershell/documentation/publish-item.md +224 -0
  95. package/dist/tools/powershell/documentation/read-variable.md +252 -0
  96. package/dist/tools/powershell/documentation/receive-file.md +244 -0
  97. package/dist/tools/powershell/documentation/receive-itemclonenotification.md +116 -0
  98. package/dist/tools/powershell/documentation/receive-scriptsession.md +108 -0
  99. package/dist/tools/powershell/documentation/remove-archiveitem.md +125 -0
  100. package/dist/tools/powershell/documentation/remove-basetemplate.md +137 -0
  101. package/dist/tools/powershell/documentation/remove-domain.md +70 -0
  102. package/dist/tools/powershell/documentation/remove-itemversion.md +209 -0
  103. package/dist/tools/powershell/documentation/remove-layout.md +151 -0
  104. package/dist/tools/powershell/documentation/remove-placeholdersetting.md +478 -0
  105. package/dist/tools/powershell/documentation/remove-rendering.md +253 -0
  106. package/dist/tools/powershell/documentation/remove-renderingparameter.md +83 -0
  107. package/dist/tools/powershell/documentation/remove-role.md +70 -0
  108. package/dist/tools/powershell/documentation/remove-rolemember.md +79 -0
  109. package/dist/tools/powershell/documentation/remove-scriptsession.md +72 -0
  110. package/dist/tools/powershell/documentation/remove-searchindexitem.md +79 -0
  111. package/dist/tools/powershell/documentation/remove-session.md +77 -0
  112. package/dist/tools/powershell/documentation/remove-user.md +97 -0
  113. package/dist/tools/powershell/documentation/reset-itemfield.md +149 -0
  114. package/dist/tools/powershell/documentation/reset-layout.md +130 -0
  115. package/dist/tools/powershell/documentation/restart-application.md +30 -0
  116. package/dist/tools/powershell/documentation/restore-archiveitem.md +126 -0
  117. package/dist/tools/powershell/documentation/resume-searchindex.md +84 -0
  118. package/dist/tools/powershell/documentation/send-file.md +160 -0
  119. package/dist/tools/powershell/documentation/send-sheermessage.md +66 -0
  120. package/dist/tools/powershell/documentation/set-hostproperty.md +90 -0
  121. package/dist/tools/powershell/documentation/set-itemacl.md +158 -0
  122. package/dist/tools/powershell/documentation/set-itemtemplate.md +156 -0
  123. package/dist/tools/powershell/documentation/set-layout.md +166 -0
  124. package/dist/tools/powershell/documentation/set-rendering.md +213 -0
  125. package/dist/tools/powershell/documentation/set-renderingparameter.md +97 -0
  126. package/dist/tools/powershell/documentation/set-user.md +221 -0
  127. package/dist/tools/powershell/documentation/set-userpassword.md +109 -0
  128. package/dist/tools/powershell/documentation/show-alert.md +53 -0
  129. package/dist/tools/powershell/documentation/show-application.md +150 -0
  130. package/dist/tools/powershell/documentation/show-confirm.md +61 -0
  131. package/dist/tools/powershell/documentation/show-fieldeditor.md +231 -0
  132. package/dist/tools/powershell/documentation/show-input.md +129 -0
  133. package/dist/tools/powershell/documentation/show-listview.md +276 -0
  134. package/dist/tools/powershell/documentation/show-modaldialog.md +137 -0
  135. package/dist/tools/powershell/documentation/show-result.md +158 -0
  136. package/dist/tools/powershell/documentation/show-yesnocancel.md +92 -0
  137. package/dist/tools/powershell/documentation/start-scriptsession.md +230 -0
  138. package/dist/tools/powershell/documentation/start-taskschedule.md +124 -0
  139. package/dist/tools/powershell/documentation/stop-scriptsession.md +78 -0
  140. package/dist/tools/powershell/documentation/stop-searchindex.md +84 -0
  141. package/dist/tools/powershell/documentation/suspend-searchindex.md +84 -0
  142. package/dist/tools/powershell/documentation/switch-rendering.md +248 -0
  143. package/dist/tools/powershell/documentation/test-account.md +74 -0
  144. package/dist/tools/powershell/documentation/test-basetemplate.md +97 -0
  145. package/dist/tools/powershell/documentation/test-itemacl.md +182 -0
  146. package/dist/tools/powershell/documentation/test-rule.md +111 -0
  147. package/dist/tools/powershell/documentation/unlock-item.md +124 -0
  148. package/dist/tools/powershell/documentation/unlock-user.md +84 -0
  149. package/dist/tools/powershell/documentation/unprotect-item.md +124 -0
  150. package/dist/tools/powershell/documentation/update-itemreferrer.md +234 -0
  151. package/dist/tools/powershell/documentation/update-listview.md +139 -0
  152. package/dist/tools/powershell/documentation/update-searchindexitem.md +79 -0
  153. package/dist/tools/powershell/documentation/wait-scriptsession.md +100 -0
  154. package/dist/tools/powershell/documentation/write-log.md +82 -0
  155. package/dist/tools/powershell/get-powershell-documentation.d.ts +2 -0
  156. package/dist/tools/powershell/get-powershell-documentation.js +47 -0
  157. package/dist/tools/powershell/get-powershell-documentation.js.map +1 -0
  158. package/dist/tools/powershell/run-powershell-script.d.ts +3 -0
  159. package/dist/tools/powershell/run-powershell-script.js +13 -0
  160. package/dist/tools/powershell/run-powershell-script.js.map +1 -0
  161. package/dist/tools/sitecore-cli/get-sitecore-cli-documentation.d.ts +3 -0
  162. package/dist/tools/sitecore-cli/get-sitecore-cli-documentation.js +24 -0
  163. package/dist/tools/sitecore-cli/get-sitecore-cli-documentation.js.map +1 -0
  164. package/dist/tools/sitecore-cli/sitecore-cli-documentation.md +70 -0
  165. package/package.json +8 -8
@@ -0,0 +1,108 @@
1
+ # Receive-ScriptSession
2
+
3
+ Gets the results of a script session execution.
4
+
5
+ ## Syntax
6
+
7
+ Receive-ScriptSession -Id <String\[\]> \[-KeepResult\] \[-KeepSession\] \[-HostOutput\]
8
+
9
+ Receive-ScriptSession -Session <ScriptSession\[\]> \[-KeepResult\] \[-KeepSession\] \[-HostOutput\]
10
+
11
+ ## Detailed Description
12
+
13
+ The Receive-ScriptSession cmdlet gets the results of Windows PowerShell script sessions, such as those started by using the Start-ScriptSession. You can get the results of all script sessions by their ID or by submitting a script session objects. When you start a new script session, the session starts, but the results do not appear immediately. Instead, the command returns an object that represents the script session. The script session object contains useful information about the script session, but it does not contain the results. This method allows you to continue working in the current session while the script session runs. For more information about script sessions in Windows PowerShell, see about\_script sessions. The Receive-ScriptSession cmdlet gets the results that have been generated by the time that the Receive-ScriptSession command is submitted. If the session is not yet complete an error is raised. You can run additional Receive-ScriptSession commands to get the execution results. By default, script session results and the session itself \(unless it is a persistent session\) are deleted from the system when you receive them, but you can use the KeepResult and KeepSession parameters to save the results so that you can receive them again. To delete the script session results, run the Receive-ScriptSession command again \(without the KeepResult parameter\), close the session, or use the Remove-ScriptSession cmdlet to delete the script session from the server.
14
+
15
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
16
+
17
+ ## Parameters
18
+
19
+ ### -KeepResult <SwitchParameter>
20
+
21
+ Saves the script session results in the system, even after you have received them. By default, the script session results and the session itself are deleted when they are retrieved. -KeepResult parameter has the -KeepSession parameter implied in its usage.
22
+
23
+ | Aliases | |
24
+ | :--- | :--- |
25
+ | Required? | false |
26
+ | Position? | named |
27
+ | Default Value | |
28
+ | Accept Pipeline Input? | false |
29
+ | Accept Wildcard Characters? | false |
30
+
31
+ ### -KeepSession <SwitchParameter>
32
+
33
+ Causes the receiving of the session results to not destroy the session after the cmdlet has executed.
34
+
35
+ | Aliases | |
36
+ | :--- | :--- |
37
+ | Required? | false |
38
+ | Position? | named |
39
+ | Default Value | |
40
+ | Accept Pipeline Input? | false |
41
+ | Accept Wildcard Characters? | false |
42
+
43
+ ### -HostOutput <SwitchParameter>
44
+
45
+ Add this parameter to receive the host output content. The result of the command execution will basically be what the session would print if it was interactive.
46
+
47
+ | Aliases | |
48
+ | :--- | :--- |
49
+ | Required? | false |
50
+ | Position? | named |
51
+ | Default Value | |
52
+ | Accept Pipeline Input? | false |
53
+ | Accept Wildcard Characters? | false |
54
+
55
+ ### -Id <String\[\]>
56
+
57
+ Gets the results of script session with the specified IDs. The ID is a string that uniquely identifies the script session within the server. You can type one or more IDs \(separated by commas\). To find the ID of a script session, type "Get-ScriptSession" without parameters.
58
+
59
+ | Aliases | |
60
+ | :--- | :--- |
61
+ | Required? | true |
62
+ | Position? | named |
63
+ | Default Value | |
64
+ | Accept Pipeline Input? | true \(ByValue\) |
65
+ | Accept Wildcard Characters? | false |
66
+
67
+ ### -Session <ScriptSession\[\]>
68
+
69
+ Specifies the script session for which results are being retrieved. Enter a variable that contains the script session or a command that gets the script session. You can also pipe a script session object to Receive-ScriptSession.
70
+
71
+ | Aliases | |
72
+ | :--- | :--- |
73
+ | Required? | true |
74
+ | Position? | named |
75
+ | Default Value | |
76
+ | Accept Pipeline Input? | true \(ByValue\) |
77
+ | Accept Wildcard Characters? | false |
78
+
79
+ ## Inputs
80
+
81
+ The input type is the type of the objects that you can pipe to the cmdlet.
82
+
83
+ * Sitecore.Data.Items.Item
84
+
85
+ ## Outputs
86
+
87
+ The output type is the type of the objects that the cmdlet emits.
88
+
89
+ * None or System.Object
90
+
91
+ ## Notes
92
+
93
+ Help Author: Adam Najmanowicz, Michael West
94
+
95
+ ## Examples
96
+
97
+ ### EXAMPLE
98
+
99
+ ```powershell
100
+ The following will return the output from all available script sessions.
101
+
102
+ PS master:\> Get-ScriptSession | Receive-ScriptSession
103
+ ```
104
+
105
+ ## Related Topics
106
+
107
+ * [https://git.io/spe](https://git.io/spe)
108
+
@@ -0,0 +1,125 @@
1
+ # Remove-ArchiveItem
2
+
3
+ Removes items permanently from the specified archive.
4
+
5
+ ## Syntax
6
+
7
+ ```powershell
8
+ Remove-ArchiveItem -Archive <Archive> [-ItemId <ID>]
9
+ Remove-ArchiveItem -Archive <Archive> [-Identity <AccountIdentity>]
10
+ Remove-ArchiveItem -Archive <Archive> [-ArchiveItem <ArchiveEntry[]>]
11
+ ```
12
+
13
+ ## Detailed Description
14
+
15
+ The Remove-ArchiveItem command permanently removes entries from specified archive.
16
+
17
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
18
+
19
+ ## Parameters
20
+
21
+ ### -Archive &lt;Archive&gt;
22
+
23
+ Specifies the archive to use when determining which ArchiveEntry items to remove. Use Get-Archive to find the appropriate archive.
24
+
25
+ | Aliases | |
26
+ | :--- | :--- |
27
+ | Required? | true |
28
+ | Position? | named |
29
+ | Default Value | |
30
+ | Accept Pipeline Input? | false|
31
+ | Accept Wildcard Characters? | false |
32
+
33
+ ### -ItemId &lt;ID&gt;
34
+
35
+ Specifies the ID for the original item that should be processed. This is NOT the ArchivalId.
36
+
37
+ | Aliases | |
38
+ | :--- | :--- |
39
+ | Required? | false |
40
+ | Position? | named |
41
+ | Default Value | |
42
+ | Accept Pipeline Input? | false |
43
+ | Accept Wildcard Characters? | false |
44
+
45
+ ### -Identity &lt;AccountIdentity&gt;
46
+
47
+ Specifies the user responsible for moving the item to the archive.
48
+
49
+ | Aliases | |
50
+ | :--- | :--- |
51
+ | Required? | false |
52
+ | Position? | named |
53
+ | Default Value | |
54
+ | Accept Pipeline Input? | true \(ByValue\) |
55
+ | Accept Wildcard Characters? | false |
56
+
57
+ ### -ArchiveItem &lt;ArchiveEntry\[\]&gt;
58
+
59
+ Specific items from the archive may be deleted when using this parameter.
60
+
61
+ | Aliases | |
62
+ | :--- | :--- |
63
+ | Required? | false |
64
+ | Position? | named |
65
+ | Default Value | |
66
+ | Accept Pipeline Input? | true \(ByValue\) |
67
+ | Accept Wildcard Characters? | false |
68
+
69
+ ## Inputs
70
+
71
+ * AccountIdentity
72
+ * Sitecore.Data.Archiving.ArchiveEntry
73
+
74
+ ## Outputs
75
+
76
+ The output type is the type of the objects that the cmdlet emits.
77
+
78
+ * None.
79
+
80
+ ## Notes
81
+
82
+ Help Author: Adam Najmanowicz, Michael West
83
+
84
+ ## Examples
85
+
86
+ ### EXAMPLE 1
87
+
88
+ The following removes items matching the ItemId found in the specified archive.
89
+
90
+ ```powershell
91
+ $database = Get-Database -Name "master"
92
+ $archiveName = "recyclebin"
93
+ $archive = Get-Archive -Database $database -Name $archiveName
94
+ Remove-ArchiveItem -Archive $archive -ItemId "{1BB32980-66B4-4ADA-9170-10A9D3336613}"
95
+ ```
96
+
97
+ ### EXAMPLE 2
98
+
99
+ The following removes items from the recycle bin by the user found in the specified archive.
100
+
101
+ ```powershell
102
+ $database = Get-Database -Name "master"
103
+ $archiveName = "recyclebin"
104
+ $archive = Get-Archive -Database $database -Name $archiveName
105
+ Remove-ArchiveItem -Archive $archive -Identity "sitecore\admin"
106
+ ```
107
+
108
+ ### EXAMPLE 3
109
+
110
+ The following removes all items from the recycle bin found in the specified archive.
111
+
112
+ ```powershell
113
+ $database = Get-Database -Name "master"
114
+ $archiveName = "recyclebin"
115
+ $archive = Get-Archive -Database $database -Name $archiveName
116
+ Get-ArchiveItem -Archive $archive | Remove-ArchiveItem
117
+ ```
118
+
119
+ ## Related Topics
120
+
121
+ * Get-ArchiveItem
122
+ * Restore-ArchiveItem
123
+ * Remove-Item
124
+ * Remove-ItemVersion
125
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
@@ -0,0 +1,137 @@
1
+ # Remove-BaseTemplate
2
+
3
+ Remove one or more base templates from a template item.
4
+
5
+ ## Syntax
6
+
7
+ Remove-BaseTemplate -Item &lt;Item&gt; -TemplateItem &lt;TemplateItem\[\]&gt;
8
+
9
+ Remove-BaseTemplate -Item &lt;Item&gt; -Template &lt;String\[\]&gt;
10
+
11
+ Remove-BaseTemplate -Path &lt;String&gt; -TemplateItem &lt;TemplateItem\[\]&gt;
12
+
13
+ Remove-BaseTemplate -Path &lt;String&gt; -Template &lt;String\[\]&gt;
14
+
15
+ Remove-BaseTemplate -Id &lt;String&gt; -TemplateItem &lt;TemplateItem\[\]&gt;
16
+
17
+ Remove-BaseTemplate -Id &lt;String&gt; -Template &lt;String\[\]&gt;
18
+
19
+ Remove-BaseTemplate \[-Database &lt;String&gt;\]
20
+
21
+ ## Detailed Description
22
+
23
+ The Remove-BaseTemplate command removes one or more base templates from a template item.
24
+
25
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
26
+
27
+ ## Parameters
28
+
29
+ ### -Item &lt;Item&gt;
30
+
31
+ The item to remove the base template from.
32
+
33
+ | Aliases | |
34
+ | :--- | :--- |
35
+ | Required? | true |
36
+ | Position? | named |
37
+ | Default Value | |
38
+ | Accept Pipeline Input? | true \(ByValue\) |
39
+ | Accept Wildcard Characters? | false |
40
+
41
+ ### -Path &lt;String&gt;
42
+
43
+ Path to the item to remove the base template from.
44
+
45
+ | Aliases | |
46
+ | :--- | :--- |
47
+ | Required? | true |
48
+ | Position? | named |
49
+ | Default Value | |
50
+ | Accept Pipeline Input? | false |
51
+ | Accept Wildcard Characters? | false |
52
+
53
+ ### -Id &lt;String&gt;
54
+
55
+ Id of the item to remove the base template from.
56
+
57
+ | Aliases | |
58
+ | :--- | :--- |
59
+ | Required? | true |
60
+ | Position? | named |
61
+ | Default Value | |
62
+ | Accept Pipeline Input? | false |
63
+ | Accept Wildcard Characters? | false |
64
+
65
+ ### -TemplateItem &lt;TemplateItem\[\]&gt;
66
+
67
+ Sitecore item or list of items of base templates to remove.
68
+
69
+ | Aliases | |
70
+ | :--- | :--- |
71
+ | Required? | true |
72
+ | Position? | named |
73
+ | Default Value | |
74
+ | Accept Pipeline Input? | false |
75
+ | Accept Wildcard Characters? | false |
76
+
77
+ ### -Template &lt;String\[\]&gt;
78
+
79
+ Path representing the template item to remove as a base template. This must be of the same database as the item to be altered. Note that this parameter only supports a single template.
80
+
81
+ | Aliases | |
82
+ | :--- | :--- |
83
+ | Required? | true |
84
+ | Position? | named |
85
+ | Default Value | |
86
+ | Accept Pipeline Input? | false |
87
+ | Accept Wildcard Characters? | false |
88
+
89
+ ### -Database &lt;String&gt;
90
+
91
+ Database containing the item to remove the base template from - required if item is specified with Id.
92
+
93
+ | Aliases | |
94
+ | :--- | :--- |
95
+ | Required? | false |
96
+ | Position? | named |
97
+ | Default Value | |
98
+ | Accept Pipeline Input? | false |
99
+ | Accept Wildcard Characters? | false |
100
+
101
+ ## Inputs
102
+
103
+ The input type is the type of the objects that you can pipe to the cmdlet.
104
+
105
+ * Sitecore.Data.Items.Item
106
+
107
+ ## Notes
108
+
109
+ Help Author: Adam Najmanowicz, Michael West, Alex Washtell
110
+
111
+ ## Examples
112
+
113
+ ### EXAMPLE 1
114
+
115
+ Remove base template of /sitecore/templates/User Defined/BaseTemplate from a template, using a path.
116
+
117
+ ```powershell
118
+ PS master:\> Remove-BaseTemplate -Path "master:/sitecore/content/User Defined/Page" -Template "/sitecore/templates/User Defined/BaseTemplate"
119
+ ```
120
+
121
+ ### EXAMPLE 2
122
+
123
+ Remove multiple base templates from a template, using items.
124
+
125
+ ```powershell
126
+ PS master:\> $baseA = Get-Item -Path master:/sitecore/content/User Defined/BaseTemplateA
127
+ PS master:\> $baseB = Get-Item -Path master:/sitecore/content/User Defined/BaseTemplateB
128
+ PS master:\> Remove-BaseTemplate -Path "master:/sitecore/content/User Defined/Page" -TemplateItem @($baseA, $baseB)
129
+ ```
130
+
131
+ ## Related Topics
132
+
133
+ * [Add-BaseTemplate](add-basetemplate.md)
134
+ * [Get-ItemTemplate](get-itemtemplate.md)
135
+ * [Set-ItemTemplate](set-itemtemplate.md)
136
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
137
+
@@ -0,0 +1,70 @@
1
+ # Remove-Domain
2
+
3
+ Removes the specified domain.
4
+
5
+ ## Syntax
6
+
7
+ Remove-Domain \[-Name\] &lt;String&gt; \[-Force\]
8
+
9
+ ## Detailed Description
10
+
11
+ The Remove-Domain command removes the specified domain.
12
+
13
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
14
+
15
+ ## Parameters
16
+
17
+ ### -Name &lt;String&gt;
18
+
19
+ The name of the domain.
20
+
21
+ | Aliases | |
22
+ | :--- | :--- |
23
+ | Required? | true |
24
+ | Position? | 1 |
25
+ | Default Value | |
26
+ | Accept Pipeline Input? | false |
27
+ | Accept Wildcard Characters? | false |
28
+
29
+ ### -Force &lt;SwitchParameter&gt;
30
+
31
+ Indicates that the domain should be removed although it contains users in that domain.
32
+
33
+ | Aliases | |
34
+ | :--- | :--- |
35
+ | Required? | false |
36
+ | Position? | named |
37
+ | Default Value | |
38
+ | Accept Pipeline Input? | false |
39
+ | Accept Wildcard Characters? | false |
40
+
41
+ ## Inputs
42
+
43
+ The input type is the type of the objects that you can pipe to the cmdlet.
44
+
45
+ * System.String
46
+
47
+ Represents the name of a domain.
48
+
49
+ ## Outputs
50
+
51
+ The output type is the type of the objects that the cmdlet emits.
52
+
53
+ * None.
54
+
55
+ ## Notes
56
+
57
+ Help Author: Adam Najmanowicz, Michael West
58
+
59
+ ## Examples
60
+
61
+ ### EXAMPLE
62
+
63
+ ```powershell
64
+ PS master:\> Remove-Domain -Name "domainName"
65
+ ```
66
+
67
+ ## Related Topics
68
+
69
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
70
+
@@ -0,0 +1,209 @@
1
+ # Remove-ItemVersion
2
+
3
+ Removes Language/Version from a single item or a branch of items
4
+
5
+ ## Syntax
6
+
7
+ ```powershell
8
+ Remove-ItemVersion -Language <String[]> [-Version <String[]>] [-ExcludeLanguage <String[]>] [-Path] <String> [-Recurse] [-MaxRecentVersions <Int32>]
9
+
10
+ Remove-ItemVersion -Language <String[]> [-Version <String[]>] [-ExcludeLanguage <String[]>] -Id <String> [-Database <String>] [-Recurse] [-MaxRecentVersions <Int32>]
11
+
12
+ Remove-ItemVersion [-Language <String[]>] [-Version <String[]>] [-ExcludeLanguage <String[]>] [-Item] <Item> [-Recurse] [-MaxRecentVersions <Int32>]
13
+ ```
14
+
15
+ ## Detailed Description
16
+
17
+ Removes Language/Version from a an Item either sent from pipeline or defined with Path or ID. A single language or a list of languages can be defined using the Language parameter. Language parameter supports globbing so you can delete whole language groups using wildcards.
18
+
19
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
20
+
21
+ ## Aliases
22
+
23
+ The following abbreviations are aliases for this cmdlet:
24
+
25
+ * Remove-ItemLanguage
26
+
27
+ ## Parameters
28
+
29
+ ### -Recurse &lt;SwitchParameter&gt;
30
+
31
+ Deleted language versions from the item and all of its children.
32
+
33
+ | Aliases | |
34
+ | :--- | :--- |
35
+ | Required? | false |
36
+ | Position? | named |
37
+ | Default Value | |
38
+ | Accept Pipeline Input? | false |
39
+ | Accept Wildcard Characters? | false |
40
+
41
+ ### -Language &lt;String\[\]&gt;
42
+
43
+ Language\(s\) that should be deleted form the provided item\(s\). A single language or a list of languages can be defined using the parameter. Language parameter supports globbing so you can delete whole language groups using wildcards.
44
+
45
+ | Aliases | |
46
+ | :--- | :--- |
47
+ | Required? | true |
48
+ | Position? | named |
49
+ | Default Value | |
50
+ | Accept Pipeline Input? | false |
51
+ | Accept Wildcard Characters? | false |
52
+
53
+ ### -Version &lt;String\[\]&gt;
54
+
55
+ Version\(s\) that should be deleted form the provided item\(s\). A single version or a list of versions can be defined using the parameter. Version parameter supports globbing so you can delete whole version groups using wildcards.
56
+
57
+ | Aliases | |
58
+ | :--- | :--- |
59
+ | Required? | false |
60
+ | Position? | named |
61
+ | Default Value | |
62
+ | Accept Pipeline Input? | false |
63
+ | Accept Wildcard Characters? | false |
64
+
65
+ ### -ExcludeLanguage &lt;String\[\]&gt;
66
+
67
+ Language\(s\) that should NOT be deleted form the provided item\(s\). A single language or a list of languages can be defined using the parameter. Language parameter supports globbing so you can delete whole language groups using wildcards.
68
+
69
+ If Language parameter is not is not specified but ExcludeLanguage is provided, the default value of "\*" is assumed for Language parameter.
70
+
71
+ | Aliases | |
72
+ | :--- | :--- |
73
+ | Required? | false |
74
+ | Position? | named |
75
+ | Default Value | |
76
+ | Accept Pipeline Input? | false |
77
+ | Accept Wildcard Characters? | false |
78
+
79
+ ### -MaxRecentVersions &lt;Int32&gt;
80
+
81
+ If provided - trims the selected language to value specified by this parameter.
82
+
83
+ | Aliases | |
84
+ | :--- | :--- |
85
+ | Required? | false |
86
+ | Position? | named |
87
+ | Default Value | |
88
+ | Accept Pipeline Input? | false |
89
+ | Accept Wildcard Characters? | false |
90
+
91
+ ### -Item &lt;Item&gt;
92
+
93
+ The item/version to be processed. You can pipe a specific version of the item for it to be removed.
94
+
95
+ | Aliases | |
96
+ | :--- | :--- |
97
+ | Required? | true |
98
+ | Position? | 1 |
99
+ | Default Value | |
100
+ | Accept Pipeline Input? | true \(ByValue, ByPropertyName\) |
101
+ | Accept Wildcard Characters? | false |
102
+
103
+ ### -Path &lt;String&gt;
104
+
105
+ Path to the item to be processed - can work with Language parameter to narrow the publication scope.
106
+
107
+ | Aliases | |
108
+ | :--- | :--- |
109
+ | Required? | true |
110
+ | Position? | 1 |
111
+ | Default Value | |
112
+ | Accept Pipeline Input? | false |
113
+ | Accept Wildcard Characters? | false |
114
+
115
+ ### -Id &lt;String&gt;
116
+
117
+ Id of the item to be processed - can work with Language parameter to narrow the publication scope.
118
+
119
+ | Aliases | |
120
+ | :--- | :--- |
121
+ | Required? | true |
122
+ | Position? | named |
123
+ | Default Value | |
124
+ | Accept Pipeline Input? | false |
125
+ | Accept Wildcard Characters? | false |
126
+
127
+ ### -Database &lt;String&gt;
128
+
129
+ Database containing the item to be processed - can work with Language parameter to narrow the publication scope.
130
+
131
+ | Aliases | |
132
+ | :--- | :--- |
133
+ | Required? | false |
134
+ | Position? | named |
135
+ | Default Value | |
136
+ | Accept Pipeline Input? | false |
137
+ | Accept Wildcard Characters? | false |
138
+
139
+ ### -Archive &lt;SwitchParameter&gt;
140
+
141
+ Specifying this switch will move the items to the archive rather than recycle bin.
142
+
143
+ | Aliases | |
144
+ | :--- | :--- |
145
+ | Required? | false |
146
+ | Position? | named |
147
+ | Default Value | |
148
+ | Accept Pipeline Input? | false |
149
+ | Accept Wildcard Characters? | false |
150
+
151
+ ## Inputs
152
+
153
+ The input type is the type of the objects that you can pipe to the cmdlet.
154
+
155
+ * Sitecore.Data.Items.Item
156
+
157
+ ## Notes
158
+
159
+ Help Author: Adam Najmanowicz, Michael West
160
+
161
+ ## Examples
162
+
163
+ ### EXAMPLE 1
164
+
165
+ Remove Polish and Spanish language from /sitecore/content/home item in the master database
166
+
167
+ ```powershell
168
+ Remove-ItemVersion -Path master:\content\home -Language "pl-pl", "es-es"
169
+ ```
170
+
171
+ ### EXAMPLE 2
172
+
173
+ Remove all english based languages defined in /sitecore/content/home item and all of its children in the master database
174
+
175
+ ```powershell
176
+ Remove-ItemVersion -Path master:\content\home -Language "en-*" -Recurse
177
+ ```
178
+
179
+ ### EXAMPLE 3
180
+
181
+ Remove all languages except those that are "en" based defined in /sitecore/content/home item and all of its children in the master database
182
+
183
+ ```powershell
184
+ Remove-ItemVersion -Path master:\content\home -ExcludeLanguage "en*" -Recurse
185
+ ```
186
+
187
+ ### EXAMPLE 4
188
+
189
+ Trim all languages to 3 latest versions for /sitecore/content/home item and all of its children in the master database
190
+
191
+ ```powershell
192
+ Remove-ItemVersion -Path master:\content\home -Language * -MaxRecentVersions 3 -Recurse
193
+ ```
194
+
195
+ ### EXAMPLE 5
196
+
197
+ The following moves the specified item version to the archive.
198
+
199
+ ```powershell
200
+ $itemId = "{72EB19F8-E62A-4B99-80A3-63E03F4FD036}"
201
+ Get-Item -Path "master:" -ID $itemId -Version 2 | Remove-ItemVersion -Archive
202
+ ```
203
+
204
+ ## Related Topics
205
+
206
+ * [Add-ItemVersion](add-itemversion.md)
207
+ * Remove-Item
208
+ * [https://gist.github.com/AdamNaj/b36ea095e3668c22c07e](https://gist.github.com/AdamNaj/b36ea095e3668c22c07e)
209
+