@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,166 @@
1
+ # Set-Layout
2
+
3
+ Sets item layout for a device.
4
+
5
+ ## Syntax
6
+
7
+ ```powershell
8
+ Set-Layout [-Item] <Item> -Device <DeviceItem> [-Layout <Item>] [-FinalLayout] [-Language <String[]>]
9
+
10
+ Set-Layout [-Path] <String> -Device <DeviceItem> [-Layout <Item>] [-FinalLayout] [-Language <String[]>]
11
+
12
+ Set-Layout -Id <String> [-Database <String>] -Device <DeviceItem> [-Layout <Item>] [-FinalLayout] [-Language <String[]>]
13
+ ```
14
+
15
+ ## Detailed Description
16
+
17
+ Sets item layout for a specific device provided
18
+
19
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
20
+
21
+ ## Parameters
22
+
23
+ ### -Device &lt;DeviceItem&gt;
24
+
25
+ Device for which to set layout.
26
+
27
+ | Aliases | |
28
+ | :--- | :--- |
29
+ | Required? | true |
30
+ | Position? | named |
31
+ | Default Value | |
32
+ | Accept Pipeline Input? | false |
33
+ | Accept Wildcard Characters? | false |
34
+
35
+ ### -Layout &lt;Item&gt;
36
+
37
+ Sitecore item defining the layout.
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
+ ### -FinalLayout &lt;SwitchParameter&gt;
48
+
49
+ Targets the Final Layout. If not provided, the Shared Layout will be targeted. Applies to Sitecore 8.0 and higher only.
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
+ ### -Language &lt;String\[\]&gt;
60
+
61
+ | Aliases | |
62
+ | :--- | :--- |
63
+ | Required? | false |
64
+ | Position? | named |
65
+ | Default Value | |
66
+ | Accept Pipeline Input? | false |
67
+ | Accept Wildcard Characters? | false |
68
+
69
+ ### -Item &lt;Item&gt;
70
+
71
+ The item to be processed.
72
+
73
+ | Aliases | |
74
+ | :--- | :--- |
75
+ | Required? | true |
76
+ | Position? | 1 |
77
+ | Default Value | |
78
+ | Accept Pipeline Input? | true \(ByValue, ByPropertyName\) |
79
+ | Accept Wildcard Characters? | false |
80
+
81
+ ### -Path &lt;String&gt;
82
+
83
+ Path to the item to be processed - can work with Language parameter to narrow the publication scope.
84
+
85
+ | Aliases | |
86
+ | :--- | :--- |
87
+ | Required? | true |
88
+ | Position? | 1 |
89
+ | Default Value | |
90
+ | Accept Pipeline Input? | false |
91
+ | Accept Wildcard Characters? | false |
92
+
93
+ ### -Id &lt;String&gt;
94
+
95
+ Id of the item to be processed - can work with Language parameter to narrow the publication scope.
96
+
97
+ | Aliases | |
98
+ | :--- | :--- |
99
+ | Required? | true |
100
+ | Position? | named |
101
+ | Default Value | |
102
+ | Accept Pipeline Input? | false |
103
+ | Accept Wildcard Characters? | false |
104
+
105
+ ### -Database &lt;String&gt;
106
+
107
+ Database containing the item to be processed - can work with Language parameter to narrow the publication scope.
108
+
109
+ | Aliases | |
110
+ | :--- | :--- |
111
+ | Required? | false |
112
+ | Position? | named |
113
+ | Default Value | |
114
+ | Accept Pipeline Input? | false |
115
+ | Accept Wildcard Characters? | false |
116
+
117
+ ## Inputs
118
+
119
+ The input type is the type of the objects that you can pipe to the cmdlet.
120
+
121
+ * Sitecore.Data.Items.Item
122
+
123
+ ## Notes
124
+
125
+ Help Author: Adam Najmanowicz, Michael West
126
+
127
+ ## Examples
128
+
129
+ ### EXAMPLE 1
130
+
131
+ ```powershell
132
+ # where my test page will go
133
+ $path = 'master:\content\Sample'
134
+
135
+ # wipe and re-create it if exists
136
+ if(Test-Path $path){
137
+ Remove-Item $path
138
+ }
139
+ $item = New-Item -Path $path -ItemType "Sample/Sample Item"
140
+
141
+ # select default layout
142
+ $device = Get-LayoutDevice -Default
143
+
144
+ # and a layout we will change to
145
+ $layout = Get-Item -Path 'master:\layout\Layouts\System\Simulated Device Layout'
146
+
147
+ # change the layout from what is in Standard values to the new one.
148
+ Set-Layout -Item $item -Device $device -Layout $layout | Out-Null
149
+
150
+ # verify
151
+ Get-Layout $item
152
+ ```
153
+
154
+ ## Related Topics
155
+
156
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
157
+ * [Add-Rendering](add-rendering.md)
158
+ * [New-Rendering](new-rendering.md)
159
+ * [Set-Rendering](set-rendering.md)
160
+ * [Get-Rendering](get-rendering.md)
161
+ * [Get-LayoutDevice](get-layoutdevice.md)
162
+ * [Remove-Rendering](remove-rendering.md)
163
+ * [Get-Layout](get-layout.md)
164
+ * [Reset-Layout](reset-layout.md)
165
+ * [#579](https://github.com/SitecorePowerShell/Console/issues/579)
166
+
@@ -0,0 +1,213 @@
1
+ # Set-Rendering
2
+
3
+ Updates rendering with new values.
4
+
5
+ ## Syntax
6
+
7
+ ```powershell
8
+ Set-Rendering [-Item] <Item> -Instance <RenderingDefinition> [-Parameter <Hashtable>] [-PlaceHolder <String>] [-DataSource <String>] [-Index <Int32>] [-FinalLayout] [-Device <DeviceItem>] [-Language <String[]>]
9
+
10
+ Set-Rendering [-Path] <String> -Instance <RenderingDefinition> [-Parameter <Hashtable>] [-PlaceHolder <String>] [-DataSource <String>] [-Index <Int32>] [-FinalLayout] [-Device <DeviceItem>] [-Language <String[]>]
11
+
12
+ Set-Rendering -Id <String> [-Database <String>] -Instance <RenderingDefinition> [-Parameter <Hashtable>] [-PlaceHolder <String>] [-DataSource <String>] [-Index <Int32>] [-FinalLayout] [-Device <DeviceItem>] [-Language <String[]>]
13
+ ```
14
+
15
+ ## Detailed Description
16
+
17
+ Updates rendering instance with new values. The instance should be earlier obtained using Get-Rendering.
18
+
19
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
20
+
21
+ ## Parameters
22
+
23
+ ### -Instance &lt;RenderingDefinition&gt;
24
+
25
+ Instance of the Rendering to be updated.
26
+
27
+ | Aliases | |
28
+ | :--- | :--- |
29
+ | Required? | true |
30
+ | Position? | named |
31
+ | Default Value | |
32
+ | Accept Pipeline Input? | false |
33
+ | Accept Wildcard Characters? | false |
34
+
35
+ ### -Parameter &lt;Hashtable&gt;
36
+
37
+ Rendering Parameters to be overriden on the Rendering that is being updated - if not specified the value provided in rendering definition specified in the Instance parameter will be used.
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
+ ### -PlaceHolder &lt;String&gt;
48
+
49
+ Placeholder path the Rendering should be added to - if not specified the value provided in rendering definition specified in the Instance parameter will be used.
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
+ ### -DataSource &lt;String&gt;
60
+
61
+ Data source of the Rendering - if not specified the value provided in rendering definition specified in the Instance parameter will be used.
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
+ ### -Index &lt;Int32&gt;
72
+
73
+ If provided the rendering will be moved to the specified index.
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
+ ### -FinalLayout &lt;SwitchParameter&gt;
84
+
85
+ Targets the Final Layout. If not provided, the Shared Layout will be targeted. Applies to Sitecore 8.0 and higher only.
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
+ ### -Device &lt;DeviceItem&gt;
96
+
97
+ Specifies the target device when applying the rendering changes.
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
+ ### -Language &lt;String\[\]&gt;
108
+
109
+ | Aliases | |
110
+ | :--- | :--- |
111
+ | Required? | false |
112
+ | Position? | named |
113
+ | Default Value | |
114
+ | Accept Pipeline Input? | false |
115
+ | Accept Wildcard Characters? | false |
116
+
117
+ ### -Item &lt;Item&gt;
118
+
119
+ The item to be processed.
120
+
121
+ | Aliases | |
122
+ | :--- | :--- |
123
+ | Required? | true |
124
+ | Position? | 1 |
125
+ | Default Value | |
126
+ | Accept Pipeline Input? | true \(ByValue, ByPropertyName\) |
127
+ | Accept Wildcard Characters? | false |
128
+
129
+ ### -Path &lt;String&gt;
130
+
131
+ Path to the item to be processed - can work with Language parameter to narrow the publication scope.
132
+
133
+ | Aliases | |
134
+ | :--- | :--- |
135
+ | Required? | true |
136
+ | Position? | 1 |
137
+ | Default Value | |
138
+ | Accept Pipeline Input? | false |
139
+ | Accept Wildcard Characters? | false |
140
+
141
+ ### -Id &lt;String&gt;
142
+
143
+ Id of the item to be processed - can work with Language parameter to narrow the publication scope.
144
+
145
+ | Aliases | |
146
+ | :--- | :--- |
147
+ | Required? | true |
148
+ | Position? | named |
149
+ | Default Value | |
150
+ | Accept Pipeline Input? | false |
151
+ | Accept Wildcard Characters? | false |
152
+
153
+ ### -Database &lt;String&gt;
154
+
155
+ Database containing the item to be processed - can work with Language parameter to narrow the publication scope.
156
+
157
+ | Aliases | |
158
+ | :--- | :--- |
159
+ | Required? | false |
160
+ | Position? | named |
161
+ | Default Value | |
162
+ | Accept Pipeline Input? | false |
163
+ | Accept Wildcard Characters? | false |
164
+
165
+ ## Inputs
166
+
167
+ The input type is the type of the objects that you can pipe to the cmdlet.
168
+
169
+ * Sitecore.Data.Items.Item
170
+
171
+ ## Notes
172
+
173
+ Help Author: Adam Najmanowicz, Michael West
174
+
175
+ ## Examples
176
+
177
+ ### EXAMPLE 1
178
+
179
+ Change all rendering's placeholder from main to footer.
180
+
181
+ ```powershell
182
+ $item = Get-Item -Path master:\content\home
183
+ Get-Rendering -Item $item -PlaceHolder "main" |
184
+ Foreach-Object {
185
+ $_.Placeholder = "footer";
186
+ Set-Rendering -Item $item -Instance $_
187
+ }
188
+ ```
189
+
190
+ ### EXAMPLE 2
191
+
192
+ Clear the datasource value for a rendering.
193
+
194
+ ```powershell
195
+ $item = Get-Item -Path master:\content\home
196
+ Get-Rendering -Item $item -PlaceHolder "main" |
197
+ Foreach-Object {
198
+ $_.DataSource = $null
199
+ Set-Rendering -Item $item -Instance $_
200
+ }
201
+ ```
202
+
203
+ ## Related Topics
204
+
205
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
206
+ * [Add-Rendering](add-rendering.md)
207
+ * [New-Rendering](new-rendering.md)
208
+ * [Get-Rendering](get-rendering.md)
209
+ * [Get-LayoutDevice](get-layoutdevice.md)
210
+ * [Remove-Rendering](remove-rendering.md)
211
+ * [Get-Layout](get-layout.md)
212
+ * [Set-Layout](set-layout.md)
213
+
@@ -0,0 +1,97 @@
1
+ # Set-RenderingParameter
2
+
3
+ Adds and updates the specified rendering parameter from the rendering.
4
+
5
+ ## Syntax
6
+
7
+ ```powershell
8
+ Set-RenderingParameter -Instance <RenderingDefinition> -Parameter <IDictionary> [-Overwrite]
9
+ ```
10
+
11
+ ## Detailed Description
12
+
13
+ Adds and updates the specified rendering parameter from the rendering.
14
+
15
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
16
+
17
+ ## Parameters
18
+
19
+ ### -Instance &lt;RenderingDefinition&gt;
20
+
21
+ Rendering definition containing the rendering parameters.
22
+
23
+ | Aliases | |
24
+ | :--- | :--- |
25
+ | Required? | true |
26
+ | Position? | named |
27
+ | Default Value | |
28
+ | Accept Pipeline Input? | false |
29
+ | Accept Wildcard Characters? | false |
30
+
31
+ ### -Parameter &lt;IDictionary&gt;
32
+
33
+ The hashtable or dictionary of key/value pairs used to add/update rendering parameters.
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
+ ### -Overwrite &lt;SwitchParameter&gt;
44
+
45
+ Specifying this parameter will remove all existing rendering parameters and use the new collection provided.
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
+ ## Inputs
56
+
57
+ The input type is the type of the objects that you can pipe to the cmdlet.
58
+
59
+ * Sitecore.Layouts.RenderingDefinition
60
+
61
+ ## Outputs
62
+
63
+ The output type is the type of the objects that the cmdlet emits.
64
+
65
+ * Sitecore.Layouts.RenderingDefinition
66
+
67
+ ## Notes
68
+
69
+ Help Author: Adam Najmanowicz, Michael West
70
+
71
+ ## Examples
72
+
73
+ ### EXAMPLE
74
+
75
+ The following updates the specified rendering parameter and updates the item.
76
+
77
+ ```powershell
78
+ $item = Get-Item -Path "master" -ID "{110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9}"
79
+
80
+ # Accepts Hashtable, Ordered Dictionaries, etc.
81
+ $parameters = [ordered]@{"SampleKey2"="SampleValue2"}
82
+ Get-Rendering -Item $item -FinalLayout |
83
+ Set-RenderingParameter -Parameter $parameters |
84
+ Set-Rendering -Item $item -FinalLayout
85
+ ```
86
+
87
+ ## Related Topics
88
+
89
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
90
+ * [New-Rendering](new-rendering.md)
91
+ * [Set-Rendering](set-rendering.md)
92
+ * [Get-Rendering](get-rendering.md)
93
+ * [Get-LayoutDevice](get-layoutdevice.md)
94
+ * [Remove-Rendering](remove-rendering.md)
95
+ * [Get-Layout](get-layout.md)
96
+ * [Set-Layout](set-layout.md)
97
+
@@ -0,0 +1,221 @@
1
+ # Set-User
2
+
3
+ Sets the Sitecore user properties.
4
+
5
+ ## Syntax
6
+
7
+ Set-User \[-Identity\] &lt;AccountIdentity&gt; \[-IsAdministrator &lt;Boolean&gt;\] \[-Portrait &lt;String&gt;\] \[-Email &lt;String&gt;\] \[-FullName &lt;String&gt;\] \[-Comment &lt;String&gt;\] \[-ProfileItemId &lt;ID&gt;\] \[-StartUrl &lt;String&gt;\] \[-Enabled\] \[-CustomProperties &lt;Hashtable&gt;\]
8
+
9
+ Set-User -Instance &lt;User&gt; \[-IsAdministrator &lt;Boolean&gt;\] \[-Portrait &lt;String&gt;\] \[-Email &lt;String&gt;\] \[-FullName &lt;String&gt;\] \[-Comment &lt;String&gt;\] \[-ProfileItemId &lt;ID&gt;\] \[-StartUrl &lt;String&gt;\] \[-Enabled\] \[-CustomProperties &lt;Hashtable&gt;\]
10
+
11
+ ## Detailed Description
12
+
13
+ The Set-User command sets a user profile properties in Sitecore.
14
+
15
+ The Identity parameter specifies the Sitecore user to set. You can specify a user by its local name or fully qualified name.
16
+
17
+ © 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
18
+
19
+ ## Parameters
20
+
21
+ ### -IsAdministrator &lt;Boolean&gt;
22
+
23
+ Specifies whether the Sitecore user should be classified as an Administrator.
24
+
25
+ | Aliases | |
26
+ | :--- | :--- |
27
+ | Required? | false |
28
+ | Position? | named |
29
+ | Default Value | |
30
+ | Accept Pipeline Input? | false |
31
+ | Accept Wildcard Characters? | false |
32
+
33
+ ### -Portrait &lt;String&gt;
34
+
35
+ Specifies the Sitecore user portrait image.
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 Sitecore user by providing one of the following values.
48
+
49
+ ```powershell
50
+ Local Name
51
+ Example: admin
52
+
53
+ Fully Qualified Name
54
+ Example: sitecore\admi
55
+ ```
56
+
57
+ | Aliases | |
58
+ | :--- | :--- |
59
+ | Required? | true |
60
+ | Position? | 1 |
61
+ | Default Value | |
62
+ | Accept Pipeline Input? | true \(ByValue\) |
63
+ | Accept Wildcard Characters? | false |
64
+
65
+ ### -Instance &lt;User&gt;
66
+
67
+ | Aliases | |
68
+ | :--- | :--- |
69
+ | Required? | true |
70
+ | Position? | named |
71
+ | Default Value | |
72
+ | Accept Pipeline Input? | true \(ByValue\) |
73
+ | Accept Wildcard Characters? | false |
74
+
75
+ ### -Email &lt;String&gt;
76
+
77
+ Specifies the Sitecore user email address. The value is validated for a properly formatted address.
78
+
79
+ | Aliases | |
80
+ | :--- | :--- |
81
+ | Required? | false |
82
+ | Position? | named |
83
+ | Default Value | |
84
+ | Accept Pipeline Input? | false |
85
+ | Accept Wildcard Characters? | false |
86
+
87
+ ### -FullName &lt;String&gt;
88
+
89
+ | Aliases | |
90
+ | :--- | :--- |
91
+ | Required? | false |
92
+ | Position? | named |
93
+ | Default Value | |
94
+ | Accept Pipeline Input? | false |
95
+ | Accept Wildcard Characters? | false |
96
+
97
+ ### -Comment &lt;String&gt;
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
+ ### -ProfileItemId &lt;ID&gt;
108
+
109
+ Specifies the profile id to use for the user.
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
+ ### -StartUrl &lt;String&gt;
120
+
121
+ Specifies the url to navigate to once the user is logged in. The values are validated with a pretermined set.
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
+ ### -Enabled &lt;SwitchParameter&gt;
132
+
133
+ Specifies whether the Sitecore user should be enabled.
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
+ ### -CustomProperties &lt;Hashtable&gt;
144
+
145
+ Specifies a hashtable of custom properties to assign to the Sitecore user profile.
146
+
147
+ | Aliases | |
148
+ | :--- | :--- |
149
+ | Required? | false |
150
+ | Position? | named |
151
+ | Default Value | |
152
+ | Accept Pipeline Input? | false |
153
+ | Accept Wildcard Characters? | false |
154
+
155
+ ## Inputs
156
+
157
+ The input type is the type of the objects that you can pipe to the cmdlet.
158
+
159
+ * System.String
160
+
161
+ Represents the identity of a user.
162
+
163
+ Sitecore.Security.Accounts.User Represents the instance of a user.
164
+
165
+ ## Outputs
166
+
167
+ The output type is the type of the objects that the cmdlet emits.
168
+
169
+ * None.
170
+
171
+ ## Notes
172
+
173
+ Help Author: Adam Najmanowicz, Michael West
174
+
175
+ ## Examples
176
+
177
+ ### EXAMPLE 1
178
+
179
+ ```powershell
180
+ PS master:\> Set-User -Identity michael -Email michaellwest@gmail.com
181
+ ```
182
+
183
+ ### EXAMPLE 2
184
+
185
+ ```powershell
186
+ PS master:\> "michael","adam","mike" | Set-User -Enable $false
187
+ ```
188
+
189
+ ### EXAMPLE 3
190
+
191
+ ```powershell
192
+ PS master:\> Get-User -Filter * | Set-User -Comment "Sitecore user"
193
+ ```
194
+
195
+ ### EXAMPLE 4
196
+
197
+ ```powershell
198
+ PS master:\> Set-User -Identity michael -CustomProperties @{"Date"=(Get-Date)}
199
+ PS master:\>(Get-User michael).Profile.GetCustomProperty("Date")
200
+
201
+ 7/3/2014 4:40:02 PM
202
+ ```
203
+
204
+ ### EXAMPLE 5
205
+
206
+ ```powershell
207
+ PS master:\> Set-User -Identity michael -IsAdministrator $true -CustomProperties @{"HireDate"="03/17/2010"}
208
+ PS master:\>$user = Get-User -Identity michael
209
+ PS master:\>$user.Profile.GetCustomProperty("HireDate")
210
+
211
+ 03/17/2010
212
+ ```
213
+
214
+ ## Related Topics
215
+
216
+ * [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
217
+ * [Get-User](get-user.md)
218
+ * [New-User](new-user.md)
219
+ * [Remove-User](remove-user.md)
220
+ * [Unlock-User](unlock-user.md)
221
+