Hi @Kuronuma,
Yes, you need to use a site URL there instead of server URL as the parameter -Identity
specifies the URL or GUID of a site collection to get. For example:
Get-SPSite -Identity "http://sharepointserver/sites/contoso".
This command only applies to the specific site collection you specified in the -Identity
parameter, not to the entire SharePoint Server 2019 farm.
As per my knowledge, SP 2019 supports custom script by default. Generally, there is no need to apply the above PowerShell command unless you have problems when applying custom codes. So, in SharePoint 2019, there is no GUI to check script capability and also no interface to disable it.
If the answer is helpful, please click "Accept as Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.