@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.
- package/README.md +3 -0
- package/dist/bundle.js +106 -12
- package/dist/register.js +7 -0
- package/dist/register.js.map +1 -1
- package/dist/tools/powershell/documentation/add-basetemplate.md +137 -0
- package/dist/tools/powershell/documentation/add-itemacl.md +254 -0
- package/dist/tools/powershell/documentation/add-itemversion.md +231 -0
- package/dist/tools/powershell/documentation/add-placeholdersetting.md +410 -0
- package/dist/tools/powershell/documentation/add-rendering.md +217 -0
- package/dist/tools/powershell/documentation/add-rolemember.md +88 -0
- package/dist/tools/powershell/documentation/clear-itemacl.md +131 -0
- package/dist/tools/powershell/documentation/close-window.md +32 -0
- package/dist/tools/powershell/documentation/commands-list.md +134 -0
- package/dist/tools/powershell/documentation/convertfrom-clixml.md +67 -0
- package/dist/tools/powershell/documentation/convertfrom-itemclone.md +118 -0
- package/dist/tools/powershell/documentation/convertto-clixml.md +66 -0
- package/dist/tools/powershell/documentation/disable-user.md +89 -0
- package/dist/tools/powershell/documentation/enable-user.md +89 -0
- package/dist/tools/powershell/documentation/expand-token.md +144 -0
- package/dist/tools/powershell/documentation/export-item.md +165 -0
- package/dist/tools/powershell/documentation/export-package.md +129 -0
- package/dist/tools/powershell/documentation/export-role.md +150 -0
- package/dist/tools/powershell/documentation/export-updatepackage.md +111 -0
- package/dist/tools/powershell/documentation/export-user.md +147 -0
- package/dist/tools/powershell/documentation/find-item.md +718 -0
- package/dist/tools/powershell/documentation/get-archive.md +73 -0
- package/dist/tools/powershell/documentation/get-archiveitem.md +138 -0
- package/dist/tools/powershell/documentation/get-cache.md +62 -0
- package/dist/tools/powershell/documentation/get-database.md +96 -0
- package/dist/tools/powershell/documentation/get-domain.md +75 -0
- package/dist/tools/powershell/documentation/get-item.md +186 -0
- package/dist/tools/powershell/documentation/get-itemacl.md +168 -0
- package/dist/tools/powershell/documentation/get-itemclone.md +100 -0
- package/dist/tools/powershell/documentation/get-itemclonenotification.md +95 -0
- package/dist/tools/powershell/documentation/get-itemfield.md +182 -0
- package/dist/tools/powershell/documentation/get-itemreference.md +152 -0
- package/dist/tools/powershell/documentation/get-itemreferrer.md +154 -0
- package/dist/tools/powershell/documentation/get-itemtemplate.md +152 -0
- package/dist/tools/powershell/documentation/get-itemworkflowevent.md +133 -0
- package/dist/tools/powershell/documentation/get-layout.md +142 -0
- package/dist/tools/powershell/documentation/get-layoutdevice.md +97 -0
- package/dist/tools/powershell/documentation/get-package.md +63 -0
- package/dist/tools/powershell/documentation/get-placeholdersetting.md +477 -0
- package/dist/tools/powershell/documentation/get-preset.md +70 -0
- package/dist/tools/powershell/documentation/get-rendering.md +248 -0
- package/dist/tools/powershell/documentation/get-renderingparameter.md +84 -0
- package/dist/tools/powershell/documentation/get-role.md +134 -0
- package/dist/tools/powershell/documentation/get-rolemember.md +131 -0
- package/dist/tools/powershell/documentation/get-scriptsession.md +128 -0
- package/dist/tools/powershell/documentation/get-searchindex.md +92 -0
- package/dist/tools/powershell/documentation/get-session.md +107 -0
- package/dist/tools/powershell/documentation/get-sitecorejob.md +102 -0
- package/dist/tools/powershell/documentation/get-spemodule.md +134 -0
- package/dist/tools/powershell/documentation/get-spemodulefeatureroot.md +113 -0
- package/dist/tools/powershell/documentation/get-taskschedule.md +136 -0
- package/dist/tools/powershell/documentation/get-updatepackagediff.md +110 -0
- package/dist/tools/powershell/documentation/get-user.md +193 -0
- package/dist/tools/powershell/documentation/get-useragent.md +38 -0
- package/dist/tools/powershell/documentation/import-function.md +83 -0
- package/dist/tools/powershell/documentation/import-item-1.md +180 -0
- package/dist/tools/powershell/documentation/import-item.md +180 -0
- package/dist/tools/powershell/documentation/import-role.md +137 -0
- package/dist/tools/powershell/documentation/import-user.md +137 -0
- package/dist/tools/powershell/documentation/initialize-item.md +87 -0
- package/dist/tools/powershell/documentation/initialize-searchindex.md +116 -0
- package/dist/tools/powershell/documentation/initialize-searchindexitem.md +85 -0
- package/dist/tools/powershell/documentation/install-package.md +95 -0
- package/dist/tools/powershell/documentation/install-updatepackage.md +90 -0
- package/dist/tools/powershell/documentation/invoke-javascript.md +22 -0
- package/dist/tools/powershell/documentation/invoke-script.md +111 -0
- package/dist/tools/powershell/documentation/invoke-shellcommand.md +144 -0
- package/dist/tools/powershell/documentation/invoke-workflow.md +142 -0
- package/dist/tools/powershell/documentation/lock-item.md +157 -0
- package/dist/tools/powershell/documentation/login-user.md +56 -0
- package/dist/tools/powershell/documentation/logout-user.md +30 -0
- package/dist/tools/powershell/documentation/merge-layout.md +102 -0
- package/dist/tools/powershell/documentation/new-domain.md +72 -0
- package/dist/tools/powershell/documentation/new-explicitfilesource.md +104 -0
- package/dist/tools/powershell/documentation/new-explicititemsource.md +146 -0
- package/dist/tools/powershell/documentation/new-filesource.md +128 -0
- package/dist/tools/powershell/documentation/new-itemacl.md +175 -0
- package/dist/tools/powershell/documentation/new-itemclone.md +139 -0
- package/dist/tools/powershell/documentation/new-itemsource.md +171 -0
- package/dist/tools/powershell/documentation/new-itemworkflowevent.md +140 -0
- package/dist/tools/powershell/documentation/new-package.md +81 -0
- package/dist/tools/powershell/documentation/new-placeholdersetting.md +255 -0
- package/dist/tools/powershell/documentation/new-rendering.md +243 -0
- package/dist/tools/powershell/documentation/new-role.md +56 -0
- package/dist/tools/powershell/documentation/new-securitysource.md +176 -0
- package/dist/tools/powershell/documentation/new-user.md +161 -0
- package/dist/tools/powershell/documentation/new-usingblock.md +95 -0
- package/dist/tools/powershell/documentation/out-download.md +123 -0
- package/dist/tools/powershell/documentation/protect-item.md +120 -0
- package/dist/tools/powershell/documentation/publish-item.md +224 -0
- package/dist/tools/powershell/documentation/read-variable.md +252 -0
- package/dist/tools/powershell/documentation/receive-file.md +244 -0
- package/dist/tools/powershell/documentation/receive-itemclonenotification.md +116 -0
- package/dist/tools/powershell/documentation/receive-scriptsession.md +108 -0
- package/dist/tools/powershell/documentation/remove-archiveitem.md +125 -0
- package/dist/tools/powershell/documentation/remove-basetemplate.md +137 -0
- package/dist/tools/powershell/documentation/remove-domain.md +70 -0
- package/dist/tools/powershell/documentation/remove-itemversion.md +209 -0
- package/dist/tools/powershell/documentation/remove-layout.md +151 -0
- package/dist/tools/powershell/documentation/remove-placeholdersetting.md +478 -0
- package/dist/tools/powershell/documentation/remove-rendering.md +253 -0
- package/dist/tools/powershell/documentation/remove-renderingparameter.md +83 -0
- package/dist/tools/powershell/documentation/remove-role.md +70 -0
- package/dist/tools/powershell/documentation/remove-rolemember.md +79 -0
- package/dist/tools/powershell/documentation/remove-scriptsession.md +72 -0
- package/dist/tools/powershell/documentation/remove-searchindexitem.md +79 -0
- package/dist/tools/powershell/documentation/remove-session.md +77 -0
- package/dist/tools/powershell/documentation/remove-user.md +97 -0
- package/dist/tools/powershell/documentation/reset-itemfield.md +149 -0
- package/dist/tools/powershell/documentation/reset-layout.md +130 -0
- package/dist/tools/powershell/documentation/restart-application.md +30 -0
- package/dist/tools/powershell/documentation/restore-archiveitem.md +126 -0
- package/dist/tools/powershell/documentation/resume-searchindex.md +84 -0
- package/dist/tools/powershell/documentation/send-file.md +160 -0
- package/dist/tools/powershell/documentation/send-sheermessage.md +66 -0
- package/dist/tools/powershell/documentation/set-hostproperty.md +90 -0
- package/dist/tools/powershell/documentation/set-itemacl.md +158 -0
- package/dist/tools/powershell/documentation/set-itemtemplate.md +156 -0
- package/dist/tools/powershell/documentation/set-layout.md +166 -0
- package/dist/tools/powershell/documentation/set-rendering.md +213 -0
- package/dist/tools/powershell/documentation/set-renderingparameter.md +97 -0
- package/dist/tools/powershell/documentation/set-user.md +221 -0
- package/dist/tools/powershell/documentation/set-userpassword.md +109 -0
- package/dist/tools/powershell/documentation/show-alert.md +53 -0
- package/dist/tools/powershell/documentation/show-application.md +150 -0
- package/dist/tools/powershell/documentation/show-confirm.md +61 -0
- package/dist/tools/powershell/documentation/show-fieldeditor.md +231 -0
- package/dist/tools/powershell/documentation/show-input.md +129 -0
- package/dist/tools/powershell/documentation/show-listview.md +276 -0
- package/dist/tools/powershell/documentation/show-modaldialog.md +137 -0
- package/dist/tools/powershell/documentation/show-result.md +158 -0
- package/dist/tools/powershell/documentation/show-yesnocancel.md +92 -0
- package/dist/tools/powershell/documentation/start-scriptsession.md +230 -0
- package/dist/tools/powershell/documentation/start-taskschedule.md +124 -0
- package/dist/tools/powershell/documentation/stop-scriptsession.md +78 -0
- package/dist/tools/powershell/documentation/stop-searchindex.md +84 -0
- package/dist/tools/powershell/documentation/suspend-searchindex.md +84 -0
- package/dist/tools/powershell/documentation/switch-rendering.md +248 -0
- package/dist/tools/powershell/documentation/test-account.md +74 -0
- package/dist/tools/powershell/documentation/test-basetemplate.md +97 -0
- package/dist/tools/powershell/documentation/test-itemacl.md +182 -0
- package/dist/tools/powershell/documentation/test-rule.md +111 -0
- package/dist/tools/powershell/documentation/unlock-item.md +124 -0
- package/dist/tools/powershell/documentation/unlock-user.md +84 -0
- package/dist/tools/powershell/documentation/unprotect-item.md +124 -0
- package/dist/tools/powershell/documentation/update-itemreferrer.md +234 -0
- package/dist/tools/powershell/documentation/update-listview.md +139 -0
- package/dist/tools/powershell/documentation/update-searchindexitem.md +79 -0
- package/dist/tools/powershell/documentation/wait-scriptsession.md +100 -0
- package/dist/tools/powershell/documentation/write-log.md +82 -0
- package/dist/tools/powershell/get-powershell-documentation.d.ts +2 -0
- package/dist/tools/powershell/get-powershell-documentation.js +47 -0
- package/dist/tools/powershell/get-powershell-documentation.js.map +1 -0
- package/dist/tools/powershell/run-powershell-script.d.ts +3 -0
- package/dist/tools/powershell/run-powershell-script.js +13 -0
- package/dist/tools/powershell/run-powershell-script.js.map +1 -0
- package/dist/tools/sitecore-cli/get-sitecore-cli-documentation.d.ts +3 -0
- package/dist/tools/sitecore-cli/get-sitecore-cli-documentation.js +24 -0
- package/dist/tools/sitecore-cli/get-sitecore-cli-documentation.js.map +1 -0
- package/dist/tools/sitecore-cli/sitecore-cli-documentation.md +70 -0
- package/package.json +8 -8
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# Remove-User
|
|
2
|
+
|
|
3
|
+
Removes the Sitecore user.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
Remove-User \[-Identity\] <AccountIdentity>
|
|
8
|
+
|
|
9
|
+
Remove-User -Instance <User>
|
|
10
|
+
|
|
11
|
+
## Detailed Description
|
|
12
|
+
|
|
13
|
+
The Remove-User command removes a user from Sitecore.
|
|
14
|
+
|
|
15
|
+
The Identity parameter specifies the Sitecore user to remove. 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
|
+
### -Identity <AccountIdentity>
|
|
22
|
+
|
|
23
|
+
Specifies the Sitecore user by providing one of the following values.
|
|
24
|
+
|
|
25
|
+
```powershell
|
|
26
|
+
Local Name
|
|
27
|
+
Example: admin
|
|
28
|
+
Fully Qualified Name
|
|
29
|
+
Example: sitecore\admi
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
| Aliases | |
|
|
33
|
+
| :--- | :--- |
|
|
34
|
+
| Required? | true |
|
|
35
|
+
| Position? | 1 |
|
|
36
|
+
| Default Value | |
|
|
37
|
+
| Accept Pipeline Input? | true \(ByValue\) |
|
|
38
|
+
| Accept Wildcard Characters? | false |
|
|
39
|
+
|
|
40
|
+
### -Instance <User>
|
|
41
|
+
|
|
42
|
+
| Aliases | |
|
|
43
|
+
| :--- | :--- |
|
|
44
|
+
| Required? | true |
|
|
45
|
+
| Position? | named |
|
|
46
|
+
| Default Value | |
|
|
47
|
+
| Accept Pipeline Input? | true \(ByValue\) |
|
|
48
|
+
| Accept Wildcard Characters? | false |
|
|
49
|
+
|
|
50
|
+
## Inputs
|
|
51
|
+
|
|
52
|
+
The input type is the type of the objects that you can pipe to the cmdlet.
|
|
53
|
+
|
|
54
|
+
* System.String
|
|
55
|
+
|
|
56
|
+
Represents the identity of a user.
|
|
57
|
+
|
|
58
|
+
Sitecore.Security.Accounts.User Represents the instance of a user.
|
|
59
|
+
|
|
60
|
+
## Outputs
|
|
61
|
+
|
|
62
|
+
The output type is the type of the objects that the cmdlet emits.
|
|
63
|
+
|
|
64
|
+
* None.
|
|
65
|
+
|
|
66
|
+
## Notes
|
|
67
|
+
|
|
68
|
+
Help Author: Adam Najmanowicz, Michael West
|
|
69
|
+
|
|
70
|
+
## Examples
|
|
71
|
+
|
|
72
|
+
### EXAMPLE 1
|
|
73
|
+
|
|
74
|
+
```powershell
|
|
75
|
+
PS master:\> Remove-User -Identity michael
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### EXAMPLE 2
|
|
79
|
+
|
|
80
|
+
```powershell
|
|
81
|
+
PS master:\> "michael","adam","mike" | Remove-User
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### EXAMPLE 3
|
|
85
|
+
|
|
86
|
+
```powershell
|
|
87
|
+
PS master:\> Get-User -Filter sitecore\m* | Remove-User
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Related Topics
|
|
91
|
+
|
|
92
|
+
* [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
|
|
93
|
+
* [Get-User](get-user.md)
|
|
94
|
+
* [New-User](new-user.md)
|
|
95
|
+
* [Set-User](set-user.md)
|
|
96
|
+
* [Unlock-User](unlock-user.md)
|
|
97
|
+
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# Reset-ItemField
|
|
2
|
+
|
|
3
|
+
Resets item fields, specified as either names, fields or template fields.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
```powershell
|
|
8
|
+
Reset-ItemField [-Item] <Item> [-IncludeStandardFields] [-Name <String[]>]
|
|
9
|
+
Reset-ItemField [-Path] <String> [-IncludeStandardFields] [-Name <String[]>]
|
|
10
|
+
Reset-ItemField -Id <String> [-Database <String>] [-IncludeStandardFields] [-Name <String[]>]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Detailed Description
|
|
14
|
+
|
|
15
|
+
Resets item fields, specified as either names, fields or template fields.
|
|
16
|
+
|
|
17
|
+
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
|
|
18
|
+
|
|
19
|
+
## Parameters
|
|
20
|
+
|
|
21
|
+
### -IncludeStandardFields <SwitchParameter>
|
|
22
|
+
|
|
23
|
+
Includes fields that are defined on "Standard template"
|
|
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
|
+
### -Name <String\[\]>
|
|
34
|
+
|
|
35
|
+
Array of field names to include - supports wildcards.
|
|
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
|
+
### -Item <Item>
|
|
46
|
+
|
|
47
|
+
The item to be analysed.
|
|
48
|
+
|
|
49
|
+
| Aliases | |
|
|
50
|
+
| :--- | :--- |
|
|
51
|
+
| Required? | true |
|
|
52
|
+
| Position? | 1 |
|
|
53
|
+
| Default Value | |
|
|
54
|
+
| Accept Pipeline Input? | true \(ByValue, ByPropertyName\) |
|
|
55
|
+
| Accept Wildcard Characters? | false |
|
|
56
|
+
|
|
57
|
+
### -Path <String>
|
|
58
|
+
|
|
59
|
+
Path to the item to be analysed.
|
|
60
|
+
|
|
61
|
+
| Aliases | |
|
|
62
|
+
| :--- | :--- |
|
|
63
|
+
| Required? | true |
|
|
64
|
+
| Position? | 1 |
|
|
65
|
+
| Default Value | |
|
|
66
|
+
| Accept Pipeline Input? | false |
|
|
67
|
+
| Accept Wildcard Characters? | false |
|
|
68
|
+
|
|
69
|
+
### -Id <String>
|
|
70
|
+
|
|
71
|
+
Id of the item to be analysed.
|
|
72
|
+
|
|
73
|
+
| Aliases | |
|
|
74
|
+
| :--- | :--- |
|
|
75
|
+
| Required? | true |
|
|
76
|
+
| Position? | named |
|
|
77
|
+
| Default Value | |
|
|
78
|
+
| Accept Pipeline Input? | false |
|
|
79
|
+
| Accept Wildcard Characters? | false |
|
|
80
|
+
|
|
81
|
+
### -Database <String>
|
|
82
|
+
|
|
83
|
+
Database containing the item to be reset - can work with Language parameter to narrow the publication scope.
|
|
84
|
+
|
|
85
|
+
| Aliases | |
|
|
86
|
+
| :--- | :--- |
|
|
87
|
+
| Required? | false |
|
|
88
|
+
| Position? | named |
|
|
89
|
+
| Default Value | |
|
|
90
|
+
| Accept Pipeline Input? | false |
|
|
91
|
+
| Accept Wildcard Characters? | false |
|
|
92
|
+
|
|
93
|
+
## Inputs
|
|
94
|
+
|
|
95
|
+
The input type is the type of the objects that you can pipe to the cmdlet.
|
|
96
|
+
|
|
97
|
+
* Sitecore.Data.Items.Item
|
|
98
|
+
|
|
99
|
+
## Outputs
|
|
100
|
+
|
|
101
|
+
The output type is the type of the objects that the cmdlet emits.
|
|
102
|
+
|
|
103
|
+
* None
|
|
104
|
+
|
|
105
|
+
## Notes
|
|
106
|
+
|
|
107
|
+
Help Author: Adam Najmanowicz, Michael West, Alex Washtell
|
|
108
|
+
|
|
109
|
+
## Examples
|
|
110
|
+
|
|
111
|
+
### EXAMPLE 1
|
|
112
|
+
|
|
113
|
+
Reset all item fields, excluding standard fields.
|
|
114
|
+
|
|
115
|
+
```powershell
|
|
116
|
+
PS master:\> Reset-ItemField -Path master:\content\home
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### EXAMPLE 2
|
|
120
|
+
|
|
121
|
+
Reset all item fields, including standard fields.
|
|
122
|
+
|
|
123
|
+
```powershell
|
|
124
|
+
PS master:\> Reset-ItemField -Path master:\content\home -IncludeStandardFields
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### EXAMPLE 3
|
|
128
|
+
|
|
129
|
+
Reset all item fields with names beginning with "a", excluding standard fields.
|
|
130
|
+
|
|
131
|
+
```powershell
|
|
132
|
+
PS master:\> Get-Item master:\content\home | Reset-ItemField -Name "a*"
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### EXAMPLE 4
|
|
136
|
+
|
|
137
|
+
The following resets one of the Standard Values fields for all versions and languages.
|
|
138
|
+
|
|
139
|
+
```powershell
|
|
140
|
+
Get-ChildItem -Path "master:" -ID "{110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9}" -Version * -Language * -Recurse |
|
|
141
|
+
Reset-ItemField -Name "__Workflow State" -IncludeStandardFields
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
## Related Topics
|
|
145
|
+
|
|
146
|
+
* [Get-ItemTemplate](get-itemtemplate.md)
|
|
147
|
+
* [Get-ItemField](get-itemfield.md)
|
|
148
|
+
* [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
|
|
149
|
+
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
# Reset-Layout
|
|
2
|
+
|
|
3
|
+
Resets the SharedLayout or FinalLayout field for the specified item.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
```powershell
|
|
8
|
+
Reset-Layout [-Item] <Item> [-FinalLayout] [-Language <String[]>]
|
|
9
|
+
|
|
10
|
+
Reset-Layout [-Path] <String> [-FinalLayout] [-Language <String[]>]
|
|
11
|
+
|
|
12
|
+
Reset-Layout -Id <String> [-Database <String>] [-FinalLayout] [-Language <String[]>]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Detailed Description
|
|
16
|
+
|
|
17
|
+
The Reset-Layout command resets the layout for the specified item.
|
|
18
|
+
|
|
19
|
+
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
|
|
20
|
+
|
|
21
|
+
## Parameters
|
|
22
|
+
|
|
23
|
+
### -FinalLayout <SwitchParameter>
|
|
24
|
+
|
|
25
|
+
Targets the Final Layout. If not provided, the Shared Layout will be targeted. Applies to Sitecore 8.0 and higher only.
|
|
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
|
+
### -Language <String\[\]>
|
|
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
|
+
### -Item <Item>
|
|
46
|
+
|
|
47
|
+
The item to be processed.
|
|
48
|
+
|
|
49
|
+
| Aliases | |
|
|
50
|
+
| :--- | :--- |
|
|
51
|
+
| Required? | true |
|
|
52
|
+
| Position? | 1 |
|
|
53
|
+
| Default Value | |
|
|
54
|
+
| Accept Pipeline Input? | true \(ByValue, ByPropertyName\) |
|
|
55
|
+
| Accept Wildcard Characters? | false |
|
|
56
|
+
|
|
57
|
+
### -Path <String>
|
|
58
|
+
|
|
59
|
+
Path to the item to be processed.
|
|
60
|
+
|
|
61
|
+
| Aliases | |
|
|
62
|
+
| :--- | :--- |
|
|
63
|
+
| Required? | true |
|
|
64
|
+
| Position? | 1 |
|
|
65
|
+
| Default Value | |
|
|
66
|
+
| Accept Pipeline Input? | false |
|
|
67
|
+
| Accept Wildcard Characters? | false |
|
|
68
|
+
|
|
69
|
+
### -Id <String>
|
|
70
|
+
|
|
71
|
+
Id of the item to be processed.
|
|
72
|
+
|
|
73
|
+
| Aliases | |
|
|
74
|
+
| :--- | :--- |
|
|
75
|
+
| Required? | true |
|
|
76
|
+
| Position? | named |
|
|
77
|
+
| Default Value | |
|
|
78
|
+
| Accept Pipeline Input? | false |
|
|
79
|
+
| Accept Wildcard Characters? | false |
|
|
80
|
+
|
|
81
|
+
### -Database <String>
|
|
82
|
+
|
|
83
|
+
Database containing the item to be processed.
|
|
84
|
+
|
|
85
|
+
| Aliases | |
|
|
86
|
+
| :--- | :--- |
|
|
87
|
+
| Required? | false |
|
|
88
|
+
| Position? | named |
|
|
89
|
+
| Default Value | |
|
|
90
|
+
| Accept Pipeline Input? | false |
|
|
91
|
+
| Accept Wildcard Characters? | false |
|
|
92
|
+
|
|
93
|
+
## Inputs
|
|
94
|
+
|
|
95
|
+
The input type is the type of the objects that you can pipe to the cmdlet.
|
|
96
|
+
|
|
97
|
+
* Sitecore.Data.Items.Item
|
|
98
|
+
|
|
99
|
+
## Outputs
|
|
100
|
+
|
|
101
|
+
The output type is the type of the objects that the cmdlet emits.
|
|
102
|
+
|
|
103
|
+
* None.
|
|
104
|
+
|
|
105
|
+
## Notes
|
|
106
|
+
|
|
107
|
+
Help Author: Adam Najmanowicz, Michael West, Alex Washtell
|
|
108
|
+
|
|
109
|
+
## Examples
|
|
110
|
+
|
|
111
|
+
### EXAMPLE 1
|
|
112
|
+
|
|
113
|
+
The following resets the layout information on the SharedLayout.
|
|
114
|
+
|
|
115
|
+
```powershell
|
|
116
|
+
Reset-Layout -Path master:\content\home
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## Related Topics
|
|
120
|
+
|
|
121
|
+
* [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
|
|
122
|
+
* [Add-Rendering](add-rendering.md)
|
|
123
|
+
* [New-Rendering](new-rendering.md)
|
|
124
|
+
* [Set-Rendering](set-rendering.md)
|
|
125
|
+
* [Get-Rendering](get-rendering.md)
|
|
126
|
+
* [Get-LayoutDevice](get-layoutdevice.md)
|
|
127
|
+
* [Remove-Rendering](remove-rendering.md)
|
|
128
|
+
* [Set-Layout](set-layout.md)
|
|
129
|
+
* [Get-Layout](get-layout.md)
|
|
130
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Restart-Application
|
|
2
|
+
|
|
3
|
+
Restarts the Sitecore Application pool.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
## Detailed Description
|
|
8
|
+
|
|
9
|
+
Restarts the Sitecore Application pool.
|
|
10
|
+
|
|
11
|
+
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
## Notes
|
|
16
|
+
|
|
17
|
+
Help Author: Adam Najmanowicz, Michael West
|
|
18
|
+
|
|
19
|
+
## Examples
|
|
20
|
+
|
|
21
|
+
### EXAMPLE
|
|
22
|
+
|
|
23
|
+
```powershell
|
|
24
|
+
PS master:\> Restart-Application
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Related Topics
|
|
28
|
+
|
|
29
|
+
* [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
|
|
30
|
+
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# Remove-ArchiveItem
|
|
2
|
+
|
|
3
|
+
Restores items to the original database from the specified archive.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
```powershell
|
|
8
|
+
Restore-ArchiveItem -Archive <Archive> [-WhatIf] [-Confirm] [<CommonParameters>]
|
|
9
|
+
Restore-ArchiveItem -Archive <Archive> [-ItemId <ID>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
|
10
|
+
Restore-ArchiveItem -Archive <Archive> [-Identity <AccountIdentity>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
|
11
|
+
Restore-ArchiveItem -ArchiveItem <ArchiveEntry[]> [-WhatIf] [-Confirm] [<CommonParameters>]
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Detailed Description
|
|
15
|
+
|
|
16
|
+
The Restore-ArchiveItem command restores entries from specified archive back to the original database.
|
|
17
|
+
|
|
18
|
+
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
|
|
19
|
+
|
|
20
|
+
## Parameters
|
|
21
|
+
|
|
22
|
+
### -Archive <Archive>
|
|
23
|
+
|
|
24
|
+
Specifies the archive to use when determining which ArchiveEntry items to process. Use Get-Archive to find the appropriate archive.
|
|
25
|
+
|
|
26
|
+
| Aliases | |
|
|
27
|
+
| :--- | :--- |
|
|
28
|
+
| Required? | true |
|
|
29
|
+
| Position? | named |
|
|
30
|
+
| Default Value | |
|
|
31
|
+
| Accept Pipeline Input? | false|
|
|
32
|
+
| Accept Wildcard Characters? | false |
|
|
33
|
+
|
|
34
|
+
### -ItemId <ID>
|
|
35
|
+
|
|
36
|
+
Specifies the ID for the original item that should be processed. This is NOT the ArchivalId.
|
|
37
|
+
|
|
38
|
+
| Aliases | |
|
|
39
|
+
| :--- | :--- |
|
|
40
|
+
| Required? | false |
|
|
41
|
+
| Position? | named |
|
|
42
|
+
| Default Value | |
|
|
43
|
+
| Accept Pipeline Input? | false |
|
|
44
|
+
| Accept Wildcard Characters? | false |
|
|
45
|
+
|
|
46
|
+
### -Identity <AccountIdentity>
|
|
47
|
+
|
|
48
|
+
Specifies the user responsible for moving the item to the archive.
|
|
49
|
+
|
|
50
|
+
| Aliases | |
|
|
51
|
+
| :--- | :--- |
|
|
52
|
+
| Required? | false |
|
|
53
|
+
| Position? | named |
|
|
54
|
+
| Default Value | |
|
|
55
|
+
| Accept Pipeline Input? | true \(ByValue\) |
|
|
56
|
+
| Accept Wildcard Characters? | false |
|
|
57
|
+
|
|
58
|
+
### -ArchiveItem <ArchiveEntry\[\]>
|
|
59
|
+
|
|
60
|
+
Specific items from the archive may be restored when using this parameter.
|
|
61
|
+
|
|
62
|
+
| Aliases | |
|
|
63
|
+
| :--- | :--- |
|
|
64
|
+
| Required? | false |
|
|
65
|
+
| Position? | named |
|
|
66
|
+
| Default Value | |
|
|
67
|
+
| Accept Pipeline Input? | true \(ByValue\) |
|
|
68
|
+
| Accept Wildcard Characters? | false |
|
|
69
|
+
|
|
70
|
+
## Inputs
|
|
71
|
+
|
|
72
|
+
* AccountIdentity
|
|
73
|
+
* Sitecore.Data.Archiving.ArchiveEntry
|
|
74
|
+
|
|
75
|
+
## Outputs
|
|
76
|
+
|
|
77
|
+
The output type is the type of the objects that the cmdlet emits.
|
|
78
|
+
|
|
79
|
+
* None.
|
|
80
|
+
|
|
81
|
+
## Notes
|
|
82
|
+
|
|
83
|
+
Help Author: Adam Najmanowicz, Michael West
|
|
84
|
+
|
|
85
|
+
## Examples
|
|
86
|
+
|
|
87
|
+
### EXAMPLE 1
|
|
88
|
+
|
|
89
|
+
The following restores items matching the ItemId found in the specified archive.
|
|
90
|
+
|
|
91
|
+
```powershell
|
|
92
|
+
$database = Get-Database -Name "master"
|
|
93
|
+
$archiveName = "recyclebin"
|
|
94
|
+
$archive = Get-Archive -Database $database -Name $archiveName
|
|
95
|
+
Restore-ArchiveItem -Archive $archive -ItemId "{1BB32980-66B4-4ADA-9170-10A9D3336613}"
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### EXAMPLE 2
|
|
99
|
+
|
|
100
|
+
The following restores items from the recycle bin by the user found in the specified archive.
|
|
101
|
+
|
|
102
|
+
```powershell
|
|
103
|
+
$database = Get-Database -Name "master"
|
|
104
|
+
$archiveName = "recyclebin"
|
|
105
|
+
$archive = Get-Archive -Database $database -Name $archiveName
|
|
106
|
+
Restore-ArchiveItem -Archive $archive -Identity "sitecore\admin"
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### EXAMPLE 3
|
|
110
|
+
|
|
111
|
+
The following restores all items from the recycle bin found in the specified archive.
|
|
112
|
+
|
|
113
|
+
```powershell
|
|
114
|
+
$database = Get-Database -Name "master"
|
|
115
|
+
$archiveName = "recyclebin"
|
|
116
|
+
$archive = Get-Archive -Database $database -Name $archiveName
|
|
117
|
+
Get-ArchiveItem -Archive $archive | Restore-ArchiveItem
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## Related Topics
|
|
121
|
+
|
|
122
|
+
* Get-ArchiveItem
|
|
123
|
+
* Restore-ArchiveItem
|
|
124
|
+
* Remove-Item
|
|
125
|
+
* Remove-ItemVersion
|
|
126
|
+
* [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Resume-SearchIndex
|
|
2
|
+
|
|
3
|
+
Resumes the suspended \(paused\) Sitecore index.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
Resume-SearchIndex -Index <ISearchIndex>
|
|
8
|
+
|
|
9
|
+
Resume-SearchIndex \[-Name <String>\]
|
|
10
|
+
|
|
11
|
+
Resume-SearchIndex \[-Name <String>\]
|
|
12
|
+
|
|
13
|
+
## Detailed Description
|
|
14
|
+
|
|
15
|
+
The Resume-SearchIndex command resumes the suspended \(paused\) Sitecore index.
|
|
16
|
+
|
|
17
|
+
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
|
|
18
|
+
|
|
19
|
+
## Parameters
|
|
20
|
+
|
|
21
|
+
### -Index <ISearchIndex>
|
|
22
|
+
|
|
23
|
+
| Aliases | |
|
|
24
|
+
| :--- | :--- |
|
|
25
|
+
| Required? | true |
|
|
26
|
+
| Position? | named |
|
|
27
|
+
| Default Value | |
|
|
28
|
+
| Accept Pipeline Input? | true \(ByValue\) |
|
|
29
|
+
| Accept Wildcard Characters? | false |
|
|
30
|
+
|
|
31
|
+
### -Name <String>
|
|
32
|
+
|
|
33
|
+
The name of the index to resume.
|
|
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
|
+
## Inputs
|
|
44
|
+
|
|
45
|
+
The input type is the type of the objects that you can pipe to the cmdlet.
|
|
46
|
+
|
|
47
|
+
* Sitecore.ContentSearch.ISearchIndex or System.String
|
|
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 1
|
|
62
|
+
|
|
63
|
+
```powershell
|
|
64
|
+
The following stops the indexing process from running.
|
|
65
|
+
|
|
66
|
+
PS master:\> Resume-SearchIndex -Name sitecore_master_index
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### EXAMPLE 2
|
|
70
|
+
|
|
71
|
+
```powershell
|
|
72
|
+
The following stops the indexing process from running.
|
|
73
|
+
|
|
74
|
+
PS master:\> Get-SearchIndex -Name sitecore_master_index | Resume-SearchIndex
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Related Topics
|
|
78
|
+
|
|
79
|
+
* [Initialize-SearchIndex](initialize-searchindex.md)
|
|
80
|
+
* [Suspend-SearchIndex](suspend-searchindex.md)
|
|
81
|
+
* [Stop-SearchIndex](stop-searchindex.md)
|
|
82
|
+
* [Get-SearchIndex](get-searchindex.md)
|
|
83
|
+
* [https://github.com/SitecorePowerShell/Console/](https://github.com/SitecorePowerShell/Console/)
|
|
84
|
+
|