ConfigMgr Permission Requirements for Patch My PC Publisher
Applies to: Patch My PC Publisher V3.x
Patch My PC (PMPC) Publisher has permission requirements for both:
Microsoft Configuration Manager (ConfigMgr) Permission Requirements
Publisher has the following Microsoft ConfigMgr permission requirements:
ConfigMgr Security Role
Publisher can create, manage, update, and delete applications in ConfigMgr as well as perform other functions like triggering a Software Update Point (SUP) sync.
In order to be able to perform these functions, Publisher requires the following permissions in ConfigMgr:
Application: Read, Modify, Delete, Set Security Scope, Create, Move Object, Modify Folder
Distribution Point: Read, Copy to Distribution Point
Distribution Point Group: Read, Copy to Distribution Point Group
Folder Class: Read, Modify, Create
Security Scopes: Read
Site: Read
Software Updates: Read, Modify
The PatchMyPCService service runs in the SYSTEM context by default.

If Publisher is installed on the ConfigMgr Site Server, no further action is required as the SYSTEM account has the required access.
However, if Publisher is installed on a remote server, the Computer$ account of that server will require the permissions detailed above.
More details can be found in the following KB, including how to create a custom Security Role to grant these permissions.
Content Source Folder
To create, manage, and update third-party application content in ConfigMgr, Publisher needs at least the Modify permission on both the SMB share and NTFS folder you specify as the Source Folder during configuration.
Publisher accesses the application source UNC path using the SYSTEM account. The identity used to authenticate to the source folder depends on where that folder is hosted:
If the source folder is hosted on a remote server, authentication uses the computer account of the server where Publisher is installed. That computer account must be granted Modify permissions on both the SMB share and the underlying NTFS folder.
If the source folder is hosted on the same server where Publisher is installed, authentication uses the local SYSTEM account instead. The SYSTEM account must be granted Modify permissions on both the SMB share and the underlying NTFS folder.
The minimum required permission is Modify. This allows Publisher to create folders, write application content, update files during application revisions, and remove content when applications are deleted.
In this example, Publisher is installed on BB-CM1, and the application source folder is hosted on BB-APP1. As Publisher accesses the content over SMB, all file operations authenticate as BB-CM1$.
To ensure application creation and management works correctly:
\\bb-app 1 \Packages\PMPC needs to be entered in Source folder field of the CONNECTION AND SOURCE section.
BB-CM1$ must be granted Modify permissions on the SMB share and the underlying NTFS folder on BB-APP1.
Without these permissions, application creation, updates, or cleanup operations will fail.

All application content generated by Publisher is stored beneath this folder, with vendor and product-specific subfolders created automatically as applications are published.

Microsoft SQL Permission Requirements
When Publisher is installed on the ConfigMgr site server, the Publisher service runs as SYSTEM and the site server’s computer account typically already has the required read permissions on the ConfigMgr site database. In this configuration, no additional SQL permissions are usually required.
If Publisher is installed on a different server, or if you choose to run the scan using a specific SQL or user account, the account used for the scan must be granted read access to the ConfigMgr database views used for application inventory.
To successfully scan the site database, the account needs SELECT permissions on the following SQL views in your ConfigMgr database:
v_Add_Remove_Programsv_GS_ADD_REMOVE_PROGRAMSv_GS_ADD_REMOVE_PROGRAMS_64v_GS_INSTALLED_SOFTWARE
To drill into an application count and view the devices on which the selected application is installed, grant Select permission on:
v_R_System
If collection filtering is used, also grant Select permission on:
v_FullCollectionMembershipv_Collection
These views contain the hardware inventory and collection membership data that the Publisher uses to determine which software is installed on which devices.
Manually Add SQL Permissions
To grant access, add the computer account (for example, DOMAIN\PUBLISHER01$) or the user/SQL account as a login in SQL Server, map it to the ConfigMgr site database, and grant SELECT permissions on the required inventory and collection views. This ensures Publisher can successfully query installed application data during the scan.
If the required SQL permissions are not already in place, you can provide the following SQL query to your SQL administrator to run against the ConfigMgr site database.
Alternatively, you can manually assign the required permissions using SQL Server Management Studio:
Launch SQL Server Management Studio.
Connect to the SQL Server hosting the ConfigMgr site database.
Authenticate using an account with permissions to manage logins and database security.

In Object Explorer, expand Security > Logins.
Check whether the login already exists:
Windows computer account:
DOMAIN\PUBLISHER01$Windows user account:
DOMAIN\UserNameSQL login: (as provided by your DBA)
If the login already exists, reuse it and continue to step 9.
If the login does not exist:
Right-click Logins and select New Login…
For Windows accounts, click Search… and select the account
For SQL logins, choose SQL Server authentication and enter the credentials
Click OK to create the login.
Right-click the newly created (or existing) login and select Properties.
Select User Mapping.
Check whether the login is already mapped to your ConfigMgr site database (for example,
CM_LA2).If the database is already selected, continue to step 16.
If it is not selected, check the box next to the site database to create the mapping.
In the database role membership section, leave all roles unchecked (no database roles are required).
Click OK to save the changes.

Expand Databases > CM_<SiteCode> > Views
For each required view:
Right-click the view
Select Properties
Go to Permissions
Add the login if not already listed
Grant SELECT permission
Required views:
v_Add_Remove_Programsv_GS_ADD_REMOVE_PROGRAMSv_GS_ADD_REMOVE_PROGRAMS_64v_GS_INSTALLED_SOFTWARE
Additional views (only if limiting scans to a collection):
v_FullCollectionMembershipv_Collection
Click OK to save permissions.
The example below shows how SELECT permission is granted on the v_Add_Remove_Programs view using SQL Server Management Studio.
In this case, the account LAB2\Administrator has been added to the view’s Permissions page. With the account selected, the SELECT permission is explicitly granted, allowing the Publisher to read data from this view during the scan.

Last updated
Was this helpful?