Assuming that the problem is that there are missing permissions for the admin group, you have two options for changing permissions in the Content Repository from the command line.
SnAdmin is a command line tool that is able to execute packages. A package can be a huge upgrade package (provided for Enterprise customers) or a small package that is assembled manually. It is actually a zip file, containing at least a manifest.xml and optionally other stuff (e.g. sql scripts to change the db or files to import).
SnAdmin is the recommended way to make technical modifications in the repository.
In your case it would be really easy:
- create a zip file (e.g. by the name "MyPermissionPackage.zip"), containing a single manifest.xml file (see contents below) that contains permissions setter steps.
- copy this zip to the web\Admin directory
- stop the IIS site
- check that the web\Tools\SnAdminRuntime.exe.config file contains the same connection string config value as the web.config (this is important, so that the tool works with the same repository!)
- execute the package from the command line (the main SnAdmin.exe resides in the web\Admin\bin folder, you can execute it from there)
SnAdmin.exe MyPermissionPackage
This is a sample manifest, you can add any number of steps (there is a whole library of them):
<Package type='Product' level='Tool'>
<Name>Sense/Net ECM</Name>
<ReleaseDate>2017-01-01</ReleaseDate>
<Steps>
<Phase>
<StartRepository startWorkflowEngine="false" />
<SetPermissions
path="/Root/Sites/Default_Site"
identity="/Root/IMS/BuiltIn/Portal/Administrators"
allow="Open,RunApplication,SeePermissions,SetPermissions"
/>
</Phase>
</Steps>
</Package>
If everything goes well, after you start the website you'll see the changes.
(in the near future this will be a lot easier when we release built-in tool packages, so that you do not have to create packages for these common operations every time, just execute one of the tools with some arguments)
In this case you execute a regular import. You'll have to find the '.Content' files in the original source package - or create them manually, but it is easier to copy the one you want to import (e.g. the default site's content file).
At the bottom of a .Content file you'll see the Permissions section, where you can define the imported permissions. In fact, you should remove the whole Fields section from the file, so that you do not overwrite any metadata fields, only import permissions.