Ask the Community
Groups
Could not assign profile because it is currently using Patch Management. - Connect IT Community | Kaseya
<main> <article class="userContent"> <p><strong>PROBLEM</strong></p> <p> When assigning a profile to a new machine in Software management you receive an error : </p> <p><em>Could not assign profile because it is currently using Patch Management.</em></p> <p><strong>CAUSE</strong></p> <p>The referenced machines are not disabled from Patch management.</p> <p><strong>RESOLUTION</strong></p> <p><strong>Disconnect from Patch management. </strong></p> <p><img src="https://us.v-cdn.net/6032361/uploads/migrated/05HHKRBVBMCQ/disconn.jpg" alt="disconn.jpg" width="1233" height="127" class="embedImage-img importedEmbed-img"></img></p> <p>If this step gives you the below error, you will have to remove the patch policies associated with it. </p> <div> <em>This machine cannot be disconnected from patch management until the machine's organization and machine group are</em><em> no longer referenced in a Patch Management Policy in Policy Management</em> </div> <p>This is found under <strong>Patch management> Patch Policy > Membership.</strong></p> <p>You can also run this sql query to find out the which patch management settings have been assigned to the machines.</p> <div><em>declare <a href="https://kaseya.vanillacommunities.com/profile/partitionId" rel="nofollow">@partitionId</a> numeric(26,0) = 1</em></div> <div><em>declare <a href="https://kaseya.vanillacommunities.com/profile/agentGuid" rel="nofollow">@agentGuid</a> numeric(26,0) = XXX</em></div> <div><em>declare <a href="https://kaseya.vanillacommunities.com/profile/adminId" rel="nofollow">@adminId</a> int = 76524894</em></div> <div><em>exec sm.spPatchManagementCheck <a href="https://kaseya.vanillacommunities.com/profile/partitionId" rel="nofollow">@partitionId</a>, <a href="https://kaseya.vanillacommunities.com/profile/agentGuid" rel="nofollow">@agentGuid</a>, <a href="https://kaseya.vanillacommunities.com/profile/adminId" rel="nofollow">@adminId</a></em></div> <div> </div> <div> </div> <div>Use this query to get the admin id :</div> <div> <em>select * from adminIdTab where adminName = '</em>yourlogonname<em>'</em> </div> <div> </div> <p> </p> </article> </main>