![]() The parent item "Publishing Target" was created based on "PowerShell Script Library" templateĬreate corresponding Sitecron Jobs under /sitecore/system/Modules/Sitecron/. Your default antivirus application appears at the top of the Virus & threat protection screen. Select Virus & threat protection in the left panel. Start typing javascript, select Disable JavaScript, and then press Enter to run the command. Click the Windows Start button, start typing windows defender to open the search field, then select Windows Defender Security Center from the search results. Press Ctrl + Shift + P (Windows, Linux) or Command + Shift + P (macOS) to open the Command Menu. Or, press Ctrl + Shift + I (Windows, Linux) or Command + Option + I (macOS). I have created these items based on "PowerShell Script" template. To open DevTools, right-click the webpage, and then select Inspect. More automated way would be to combine SiteCron and these Powershell scripts mentioned above.Ĭreate corresponding Powershell Script items under /sitecore/system/Modules/PowerShell/Script Library/Sitecron/Publishing Targets/. SPE script to disable Publishing Target: $acl = New-ItemAcl -AccessRight item:write -PropagationType Any -SecurityPermission DenyAccess -Identity "" | Set-ItemAcl -AccessRules $acl -PassThru This will still show those publishing targets but enable/disable them as needed. ![]() You can achieve this by Sitecore Powershell Extensions (SPE).Īs your requirement is to enable/disable publishing targets, I would set Write permissions and keep Read permissions enabled. A) Manual way through Sitecore PowerShell IDE ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |