This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # default ids | |
| $sensuId = (Get-Process sensu-client).id | |
| $rubyId = (gwmi win32_process | ? {$_.ParentProcessId -eq $sensuId}).ProcessId | |
| # define execution in minutes | |
| $initialTime = Get-Date | |
| $execTime = $initialTime + [timespan]"0:05:00" | |
| # create an empty hashtable | |
| $procCount = @{} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .Synopsis | |
| Plesk Licensing script | |
| .DESCRIPTION | |
| Plesk Licensing script | |
| This script intend to create a new license key in Plesk via API and | |
| retrieve the XML content of created key in a plesk node. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Select all service plans with Presence Builder enable: | |
| select t.name, td.element, td.value | |
| from templates t, TmplData td | |
| where td.tmpl_id = t.id | |
| and td.element = 'max_site_builder' | |
| and td.value <> 0; | |
| -- Select all domains with Presence Builder enable: | |
| select c.login, d.name as domain, t.name as subscription, l.value as limit_value | |
| from subscriptions su, subscriptionproperties sp, domains d, planssubscriptions p, templates t, clients c, limits l |