@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,243 @@
1
+ # New-Rendering
2
+
3
+ Creates new rendering definition that can later be added to an item.
4
+
5
+ ## Syntax
6
+
7
+ ```powershell
8
+ New-Rendering [-Item] <Item> [-Parameter <Hashtable>] [-PlaceHolder <String>] [-DataSource <Item>] [-Cacheable] [-VaryByData] [-VaryByDevice] [-VaryByLogin] [-VaryByParameters] [-VaryByQueryString] [-VaryByUser] [-Language <String[]>]
9
+
10
+ New-Rendering [-Path] <String> [-Parameter <Hashtable>] [-PlaceHolder <String>] [-DataSource <Item>] [-Cacheable] [-VaryByData] [-VaryByDevice] [-VaryByLogin] [-VaryByParameters] [-VaryByQueryString] [-VaryByUser] [-Language <String[]>]
11
+
12
+ New-Rendering -Id <String> [-Database <String>] [-Parameter <Hashtable>] [-PlaceHolder <String>] [-DataSource <Item>] [-Cacheable] [-VaryByData] [-VaryByDevice] [-VaryByLogin] [-VaryByParameters] [-VaryByQueryString] [-VaryByUser] [-Language <String[]>]
13
+ ```
14
+
15
+ ## Detailed Description
16
+
17
+ Creates new rendering definition that can later be added to an item. Most parameters can later be overriden when calling Add-Rendering.
18
+
19
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
20
+
21
+ ## Parameters
22
+
23
+ ### -Parameter &lt;Hashtable&gt;
24
+
25
+ Rendering parameters as hashtable
26
+
27
+ | Aliases | |
28
+ | :--- | :--- |
29
+ | Required? | false |
30
+ | Position? | named |
31
+ | Default Value | |
32
+ | Accept Pipeline Input? | false |
33
+ | Accept Wildcard Characters? | false |
34
+
35
+ ### -PlaceHolder &lt;String&gt;
36
+
37
+ Placeholder for the rendering to be placed into.
38
+
39
+ | Aliases | |
40
+ | :--- | :--- |
41
+ | Required? | false |
42
+ | Position? | named |
43
+ | Default Value | |
44
+ | Accept Pipeline Input? | false |
45
+ | Accept Wildcard Characters? | false |
46
+
47
+ ### -DataSource &lt;Item&gt;
48
+
49
+ Datasource for the rendering.
50
+
51
+ | Aliases | |
52
+ | :--- | :--- |
53
+ | Required? | false |
54
+ | Position? | named |
55
+ | Default Value | |
56
+ | Accept Pipeline Input? | false |
57
+ | Accept Wildcard Characters? | false |
58
+
59
+ ### -Cacheable &lt;SwitchParameter&gt;
60
+
61
+ Defined whether the rendering is cacheable.
62
+
63
+ | Aliases | |
64
+ | :--- | :--- |
65
+ | Required? | false |
66
+ | Position? | named |
67
+ | Default Value | |
68
+ | Accept Pipeline Input? | false |
69
+ | Accept Wildcard Characters? | false |
70
+
71
+ ### -VaryByData &lt;SwitchParameter&gt;
72
+
73
+ Defines whether a data-specific cache version of the rendering should be kept.
74
+
75
+ | Aliases | |
76
+ | :--- | :--- |
77
+ | Required? | false |
78
+ | Position? | named |
79
+ | Default Value | |
80
+ | Accept Pipeline Input? | false |
81
+ | Accept Wildcard Characters? | false |
82
+
83
+ ### -VaryByDevice &lt;SwitchParameter&gt;
84
+
85
+ Defines whether a device-specific cache version of the rendering should be kept.
86
+
87
+ | Aliases | |
88
+ | :--- | :--- |
89
+ | Required? | false |
90
+ | Position? | named |
91
+ | Default Value | |
92
+ | Accept Pipeline Input? | false |
93
+ | Accept Wildcard Characters? | false |
94
+
95
+ ### -VaryByLogin &lt;SwitchParameter&gt;
96
+
97
+ Defines whether a login - specific cache version of the rendering should be kept.
98
+
99
+ | Aliases | |
100
+ | :--- | :--- |
101
+ | Required? | false |
102
+ | Position? | named |
103
+ | Default Value | |
104
+ | Accept Pipeline Input? | false |
105
+ | Accept Wildcard Characters? | false |
106
+
107
+ ### -VaryByParameters &lt;SwitchParameter&gt;
108
+
109
+ Defines whether paremeter - specific cache version of the rendering should be kept.
110
+
111
+ | Aliases | |
112
+ | :--- | :--- |
113
+ | Required? | false |
114
+ | Position? | named |
115
+ | Default Value | |
116
+ | Accept Pipeline Input? | false |
117
+ | Accept Wildcard Characters? | false |
118
+
119
+ ### -VaryByQueryString &lt;SwitchParameter&gt;
120
+
121
+ Defines whether query string - specific cache version of the rendering should be kept.
122
+
123
+ | Aliases | |
124
+ | :--- | :--- |
125
+ | Required? | false |
126
+ | Position? | named |
127
+ | Default Value | |
128
+ | Accept Pipeline Input? | false |
129
+ | Accept Wildcard Characters? | false |
130
+
131
+ ### -VaryByUser &lt;SwitchParameter&gt;
132
+
133
+ Defines whether a user - specific cache version of the rendering should be kept.
134
+
135
+ | Aliases | |
136
+ | :--- | :--- |
137
+ | Required? | false |
138
+ | Position? | named |
139
+ | Default Value | |
140
+ | Accept Pipeline Input? | false |
141
+ | Accept Wildcard Characters? | false |
142
+
143
+ ### -Language &lt;String\[\]&gt;
144
+
145
+ | Aliases | |
146
+ | :--- | :--- |
147
+ | Required? | false |
148
+ | Position? | named |
149
+ | Default Value | |
150
+ | Accept Pipeline Input? | false |
151
+ | Accept Wildcard Characters? | false |
152
+
153
+ ### -Item &lt;Item&gt;
154
+
155
+ The item to be processed.
156
+
157
+ | Aliases | |
158
+ | :--- | :--- |
159
+ | Required? | true |
160
+ | Position? | 1 |
161
+ | Default Value | |
162
+ | Accept Pipeline Input? | true \(ByValue, ByPropertyName\) |
163
+ | Accept Wildcard Characters? | false |
164
+
165
+ ### -Path &lt;String&gt;
166
+
167
+ Path to the item to be processed - can work with Language parameter to narrow the publication scope.
168
+
169
+ | Aliases | |
170
+ | :--- | :--- |
171
+ | Required? | true |
172
+ | Position? | 1 |
173
+ | Default Value | |
174
+ | Accept Pipeline Input? | false |
175
+ | Accept Wildcard Characters? | false |
176
+
177
+ ### -Id &lt;String&gt;
178
+
179
+ Id of the item to be processed - can work with Language parameter to narrow the publication scope.
180
+
181
+ | Aliases | |
182
+ | :--- | :--- |
183
+ | Required? | true |
184
+ | Position? | named |
185
+ | Default Value | |
186
+ | Accept Pipeline Input? | false |
187
+ | Accept Wildcard Characters? | false |
188
+
189
+ ### -Database &lt;String&gt;
190
+
191
+ Database containing the item to be processed - can work with Language parameter to narrow the publication scope.
192
+
193
+ | Aliases | |
194
+ | :--- | :--- |
195
+ | Required? | false |
196
+ | Position? | named |
197
+ | Default Value | |
198
+ | Accept Pipeline Input? | false |
199
+ | Accept Wildcard Characters? | false |
200
+
201
+ ## Inputs
202
+
203
+ The input type is the type of the objects that you can pipe to the cmdlet.
204
+
205
+ * Sitecore.Data.Items.Item
206
+
207
+ ## Outputs
208
+
209
+ The output type is the type of the objects that the cmdlet emits.
210
+
211
+ * Sitecore.Layouts.RenderingDefinition
212
+
213
+ ## Notes
214
+
215
+ Help Author: Adam Najmanowicz, Michael West
216
+
217
+ ## Examples
218
+
219
+ ### EXAMPLE 1
220
+
221
+ Find item defining rendering and create rendering definition.
222
+
223
+ ```powershell
224
+ # Find the rendering item and convert to a rendering
225
+ $renderingPath = "/sitecore/layout/Renderings/Feature/Experience Accelerator/Page Content/Page Content"
226
+ $renderingItem = Get-Item -Database "master" -Path $renderingPath | New-Rendering -Placeholder "main"
227
+ # Find the item to receive the new rendering
228
+ $item = Get-Item -Path "master:\content\Training\Playground\play1\Home"
229
+ # Add the rendering to the item
230
+ Add-Rendering -Item $item -PlaceHolder "main" -Instance $renderingItem -Parameter @{ "Reset Caching Options" = "1" } -FinalLayout
231
+ ```
232
+
233
+ ## Related Topics
234
+
235
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
236
+ * [Add-Rendering](add-rendering.md)
237
+ * [Set-Rendering](set-rendering.md)
238
+ * [Get-Rendering](get-rendering.md)
239
+ * [Get-LayoutDevice](get-layoutdevice.md)
240
+ * [Remove-Rendering](remove-rendering.md)
241
+ * [Get-Layout](get-layout.md)
242
+ * [Set-Layout](set-layout.md)
243
+
@@ -0,0 +1,56 @@
1
+ # New-Role
2
+
3
+ Creates a new Sitecore role.
4
+
5
+ ## Syntax
6
+
7
+ New-Role \[-Identity\] &lt;AccountIdentity&gt;
8
+
9
+ ## Detailed Description
10
+
11
+ The New-Role command creates a new Sitecore role.
12
+
13
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
14
+
15
+ ## Parameters
16
+
17
+ ### -Identity &lt;AccountIdentity&gt;
18
+
19
+ Role name including domain. If no domain is specified - 'sitecore' will be used as the default value
20
+
21
+ | Aliases | |
22
+ | :--- | :--- |
23
+ | Required? | true |
24
+ | Position? | 1 |
25
+ | Default Value | |
26
+ | Accept Pipeline Input? | true \(ByPropertyName\) |
27
+ | Accept Wildcard Characters? | false |
28
+
29
+ ## Inputs
30
+
31
+ The input type is the type of the objects that you can pipe to the cmdlet.
32
+
33
+ * System.String
34
+
35
+ ## Outputs
36
+
37
+ The output type is the type of the objects that the cmdlet emits.
38
+
39
+ * Sitecore.Security.Accounts.Role
40
+
41
+ ## Notes
42
+
43
+ Help Author: Adam Najmanowicz, Michael West
44
+
45
+ ## Examples
46
+
47
+ ### EXAMPLE
48
+
49
+ ```powershell
50
+ PS master:\> New-Role -Identity Michael
51
+ ```
52
+
53
+ ## Related Topics
54
+
55
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
56
+
@@ -0,0 +1,176 @@
1
+ # New-SecuritySource
2
+
3
+ Creates new User & Role source that can be added to a Sitecore package.
4
+
5
+ ## Syntax
6
+
7
+ New-SecuritySource \[-Account\] &lt;Account&gt; \[-Name\] &lt;String&gt;
8
+
9
+ New-SecuritySource \[-Identity\] &lt;AccountIdentity&gt; \[\[-AccountType\] &lt;Unknown \| Role \| User&gt;\] \[-Name\] &lt;String&gt;
10
+
11
+ New-SecuritySource \[-Filter\] &lt;String\[\]&gt; \[\[-AccountType\] &lt;Unknown \| Role \| User&gt;\] \[-Name\] &lt;String&gt;
12
+
13
+ ## Detailed Description
14
+
15
+ Creates new User & Role source that can be added to a Sitecore package.
16
+
17
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
18
+
19
+ ## Parameters
20
+
21
+ ### -Account &lt;Account&gt;
22
+
23
+ User or Role provided from e.g. Get-Role or Get-User Cmdlet.
24
+
25
+ | Aliases | |
26
+ | :--- | :--- |
27
+ | Required? | true |
28
+ | Position? | 2 |
29
+ | Default Value | |
30
+ | Accept Pipeline Input? | true \(ByValue\) |
31
+ | Accept Wildcard Characters? | false |
32
+
33
+ ### -Identity &lt;AccountIdentity&gt;
34
+
35
+ User or role name including domain for which the access rule is being created. If no domain is specified - 'sitecore' will be used as the default domain.
36
+
37
+ Specifies the Sitecore user by providing one of the following values.
38
+
39
+ ```powershell
40
+ Local Name
41
+ Example: adam
42
+ Fully Qualified Name
43
+ Example: sitecore\adam
44
+ ```
45
+
46
+ if -AccountType parameter is specified as Role - only roles will be taken into consideration. if -AccountType parameter is specified as User - only users will be taken into consideration.
47
+
48
+ | Aliases | |
49
+ | :--- | :--- |
50
+ | Required? | true |
51
+ | Position? | 2 |
52
+ | Default Value | |
53
+ | Accept Pipeline Input? | true \(ByValue\) |
54
+ | Accept Wildcard Characters? | false |
55
+
56
+ ### -Filter &lt;String\[\]&gt;
57
+
58
+ Specifies a simple pattern to match Sitecore roles & users.
59
+
60
+ Examples: The following examples show how to use the filter syntax.
61
+
62
+ To get security for all roles, use the asterisk wildcard: Get-ItemAcl -Filter \*
63
+
64
+ To security got all roles in a domain use the following command: Get-ItemAcl -Filter "sitecore\*"
65
+
66
+ if -AccountType parameter is specified as Role - only roles will be taken into consideration. if -AccountType parameter is specified as User - only users will be taken into consideration.
67
+
68
+ | Aliases | |
69
+ | :--- | :--- |
70
+ | Required? | true |
71
+ | Position? | 2 |
72
+ | Default Value | |
73
+ | Accept Pipeline Input? | true \(ByValue\) |
74
+ | Accept Wildcard Characters? | false |
75
+
76
+ ### -AccountType &lt;AccountType&gt;
77
+
78
+ * Unknown - Both Roles and users will be taken into consideration when looking for accounts through either -Identity or -Filter parameters
79
+ * Role - Only Roles will be taken into consideration when looking for accounts through either -Identity or -Filter parameters
80
+ * User - Only Users will be taken into consideration when looking for accounts through either -Identity or -Filter parameters
81
+
82
+ | Aliases | |
83
+ | :--- | :--- |
84
+ | Required? | false |
85
+ | Position? | 3 |
86
+ | Default Value | |
87
+ | Accept Pipeline Input? | true \(ByValue\) |
88
+ | Accept Wildcard Characters? | false |
89
+
90
+ ### -Name &lt;String&gt;
91
+
92
+ Name of the security source.
93
+
94
+ | Aliases | |
95
+ | :--- | :--- |
96
+ | Required? | true |
97
+ | Position? | 1 |
98
+ | Default Value | |
99
+ | Accept Pipeline Input? | false |
100
+ | Accept Wildcard Characters? | false |
101
+
102
+ ## Inputs
103
+
104
+ The input type is the type of the objects that you can pipe to the cmdlet.
105
+
106
+ * Sitecore.Security.Accounts.Account
107
+
108
+ ## Outputs
109
+
110
+ The output type is the type of the objects that the cmdlet emits.
111
+
112
+ * Sitecore.Install.Security.SecuritySource
113
+
114
+ ## Notes
115
+
116
+ Help Author: Adam Najmanowicz, Michael West
117
+
118
+ ## Examples
119
+
120
+ ### EXAMPLE 1
121
+
122
+ Following example creates a new package, adds sitecore\admin user to it and saves it in the Sitecore Package folder+ gives you an option to download the saved package.
123
+
124
+ ```powershell
125
+ # Create package
126
+ $package = New-Package "Packing in Powerful Ways";
127
+
128
+ # Set package metadata
129
+ $package.Sources.Clear();
130
+
131
+ $package.Metadata.Author = "Adam Najmanowicz, Michael West";
132
+ $package.Metadata.Publisher = "Powerful Ways";
133
+ $package.Metadata.Version = "1.0";
134
+ $package.Metadata.Readme = 'This text will be visible to people installing your package'
135
+
136
+ # Create security source with Sitecore Administrator only
137
+ $source = New-SecuritySource -Identity sitecore\admin -Name "Sitecore Admin"
138
+ $package.Sources.Add($source);
139
+
140
+ # Save package
141
+ Export-Package -Project $package -Path "$($package.Name)-$($package.Metadata.Version).zip" -Zip
142
+
143
+ # Offer the user to download the package
144
+ Download-File "$SitecorePackageFolder\$($package.Name)-$($package.Metadata.Version).zip"
145
+ ```
146
+
147
+ ### EXAMPLE 2
148
+
149
+ Following example creates a new package, adds all roles within the "sitecore" domain to it and saves it in the Sitecore Package folder+ gives you an option to download the saved package.
150
+
151
+ ```powershell
152
+ $package = New-Package "Packing in Powerful Ways";
153
+
154
+ # Set package metadata
155
+ $package.Sources.Clear();
156
+
157
+ $package.Metadata.Author = "Adam Najmanowicz, Michael West";
158
+ $package.Metadata.Publisher = "Powerful Ways";
159
+ $package.Metadata.Version = "1.0";
160
+ $package.Metadata.Readme = 'This text will be visible to people installing your package'
161
+
162
+ # Create security source with all roles within the sitecore domain
163
+ $source = New-SecuritySource -Filter sitecore\* -Name "Sitecore Roles" -AccountType Role
164
+ $package.Sources.Add($source);
165
+
166
+ # Save package
167
+ Export-Package -Project $package -Path "$($package.Name)-$($package.Metadata.Version).zip" -Zip
168
+
169
+ # Offer the user to download the package
170
+ Download-File "$SitecorePackageFolder\$($package.Name)-$($package.Metadata.Version).zip"
171
+ ```
172
+
173
+ ## Related Topics
174
+
175
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
176
+
@@ -0,0 +1,161 @@
1
+ # New-User
2
+
3
+ Creates a new Sitecore user.
4
+
5
+ ## Syntax
6
+
7
+ New-User \[-Identity\] &lt;AccountIdentity&gt; \[-Password &lt;String&gt;\] \[-Email &lt;String&gt;\] \[-FullName &lt;String&gt;\] \[-Comment &lt;String&gt;\] \[-Portrait &lt;String&gt;\] \[-Enabled\] \[-ProfileItemId &lt;ID&gt;\]
8
+
9
+ ## Detailed Description
10
+
11
+ The New-User command creates a new user in Sitecore.
12
+
13
+ The Identity parameter specifies the Sitecore user to create. You can specify a user by its local name or fully qualified name.
14
+
15
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
16
+
17
+ ## Parameters
18
+
19
+ ### -Identity &lt;AccountIdentity&gt;
20
+
21
+ Specifies the Sitecore user by providing one of the following values.
22
+
23
+ ```powershell
24
+ Local Name
25
+ Example: developer
26
+ Fully Qualified Name
27
+ Example: sitecore\developer
28
+ ```
29
+
30
+ | Aliases | |
31
+ | :--- | :--- |
32
+ | Required? | true |
33
+ | Position? | 1 |
34
+ | Default Value | |
35
+ | Accept Pipeline Input? | true \(ByPropertyName\) |
36
+ | Accept Wildcard Characters? | false |
37
+
38
+ ### -Password &lt;String&gt;
39
+
40
+ | Aliases | |
41
+ | :--- | :--- |
42
+ | Required? | false |
43
+ | Position? | named |
44
+ | Default Value | |
45
+ | Accept Pipeline Input? | true \(ByPropertyName\) |
46
+ | Accept Wildcard Characters? | false |
47
+
48
+ ### -Email &lt;String&gt;
49
+
50
+ | Aliases | |
51
+ | :--- | :--- |
52
+ | Required? | false |
53
+ | Position? | named |
54
+ | Default Value | |
55
+ | Accept Pipeline Input? | true \(ByPropertyName\) |
56
+ | Accept Wildcard Characters? | false |
57
+
58
+ ### -FullName &lt;String&gt;
59
+
60
+ | Aliases | |
61
+ | :--- | :--- |
62
+ | Required? | false |
63
+ | Position? | named |
64
+ | Default Value | |
65
+ | Accept Pipeline Input? | true \(ByPropertyName\) |
66
+ | Accept Wildcard Characters? | false |
67
+
68
+ ### -Comment &lt;String&gt;
69
+
70
+ | Aliases | |
71
+ | :--- | :--- |
72
+ | Required? | false |
73
+ | Position? | named |
74
+ | Default Value | |
75
+ | Accept Pipeline Input? | true \(ByPropertyName\) |
76
+ | Accept Wildcard Characters? | false |
77
+
78
+ ### -Portrait &lt;String&gt;
79
+
80
+ | Aliases | |
81
+ | :--- | :--- |
82
+ | Required? | false |
83
+ | Position? | named |
84
+ | Default Value | |
85
+ | Accept Pipeline Input? | true \(ByPropertyName\) |
86
+ | Accept Wildcard Characters? | false |
87
+
88
+ ### -Enabled &lt;SwitchParameter&gt;
89
+
90
+ Specifies that the account should be enabled. When enabled, the Password parameter is required.
91
+
92
+ | Aliases | |
93
+ | :--- | :--- |
94
+ | Required? | false |
95
+ | Position? | named |
96
+ | Default Value | |
97
+ | Accept Pipeline Input? | true \(ByPropertyName\) |
98
+ | Accept Wildcard Characters? | false |
99
+
100
+ ### -ProfileItemId &lt;ID&gt;
101
+
102
+ Specifies the profile id to use for the user.
103
+
104
+ | Aliases | |
105
+ | :--- | :--- |
106
+ | Required? | false |
107
+ | Position? | named |
108
+ | Default Value | |
109
+ | Accept Pipeline Input? | true \(ByPropertyName\) |
110
+ | Accept Wildcard Characters? | false |
111
+
112
+ ## Inputs
113
+
114
+ The input type is the type of the objects that you can pipe to the cmdlet.
115
+
116
+ * System.String
117
+
118
+ Represents the identity of a role.
119
+
120
+ ## Outputs
121
+
122
+ The output type is the type of the objects that the cmdlet emits.
123
+
124
+ * None.
125
+
126
+ ## Notes
127
+
128
+ Help Author: Adam Najmanowicz, Michael West
129
+
130
+ ## Examples
131
+
132
+ ### EXAMPLE 1
133
+
134
+ ```powershell
135
+ PS master:\> New-User -Identity michael
136
+ ```
137
+
138
+ ### EXAMPLE 2
139
+
140
+ ```powershell
141
+ PS master:\> New-User -Identity michael -Enabled -Password b -Email michaellwest@gmail.com -FullName "Michael West"
142
+ ```
143
+
144
+ ### EXAMPLE 3
145
+
146
+ ```powershell
147
+ PS master:\> New-User -Identity michael -PassThru
148
+
149
+ Name Domain IsAdministrator IsAuthenticated
150
+ ---- ------ --------------- ---------------
151
+ sitecore\michael2 sitecore False False
152
+ ```
153
+
154
+ ## Related Topics
155
+
156
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
157
+ * [Get-User](get-user.md)
158
+ * [Set-User](set-user.md)
159
+ * [Remove-User](remove-user.md)
160
+ * [Unlock-User](unlock-user.md)
161
+