<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How do I use Conditional Enforcement to keep policy from being enforced on Win11. in Endpoint Privilege Manager (EPM) Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/how-do-i-use-conditional-enforcement-to-keep-policy-from-being/m-p/1372672#M4505</link>
    <description>&lt;P&gt;I'm new to EPM and I have an Elevate policy for installing some programs; however, I don't want these programs to install on Windows 11. I was thinking that Conditional Enforcement could help. Since it says, "Enforce when script returns 0", I made a simple PowerShell script that exits 0 when win10 is detected and exits 1 when win10 isn't detected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since these programs are only allowed by this policy, I would think that adding this script would break it for Windows 11 machines. Which is what I want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the policy still allows me to install these programs on my Win11 machine. Am I doing something wrong or missing something obvious?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My script:&lt;/P&gt;&lt;CODE&gt;[string]$osname = (Get-WmiObject Win32_OperatingSystem).Caption
if ($osname -like "*Windows 10*") { exit 0 } else { exit 1 }&lt;/CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 21:38:09 GMT</pubDate>
    <dc:creator>ZieglerCatDJ</dc:creator>
    <dc:date>2022-09-16T21:38:09Z</dc:date>
    <item>
      <title>How do I use Conditional Enforcement to keep policy from being enforced on Win11.</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/how-do-i-use-conditional-enforcement-to-keep-policy-from-being/m-p/1372672#M4505</link>
      <description>&lt;P&gt;I'm new to EPM and I have an Elevate policy for installing some programs; however, I don't want these programs to install on Windows 11. I was thinking that Conditional Enforcement could help. Since it says, "Enforce when script returns 0", I made a simple PowerShell script that exits 0 when win10 is detected and exits 1 when win10 isn't detected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since these programs are only allowed by this policy, I would think that adding this script would break it for Windows 11 machines. Which is what I want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the policy still allows me to install these programs on my Win11 machine. Am I doing something wrong or missing something obvious?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My script:&lt;/P&gt;&lt;CODE&gt;[string]$osname = (Get-WmiObject Win32_OperatingSystem).Caption
if ($osname -like "*Windows 10*") { exit 0 } else { exit 1 }&lt;/CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 21:38:09 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/how-do-i-use-conditional-enforcement-to-keep-policy-from-being/m-p/1372672#M4505</guid>
      <dc:creator>ZieglerCatDJ</dc:creator>
      <dc:date>2022-09-16T21:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use Conditional Enforcement to keep policy from being enforced on Win11.</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/how-do-i-use-conditional-enforcement-to-keep-policy-from-being/m-p/1372673#M4506</link>
      <description>&lt;P&gt;Seems like your idea should work. please make sure the policy arrived the endpoint. You can add few log file debug output to see that the script was indeed executed and return the correct result.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 08:26:43 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/how-do-i-use-conditional-enforcement-to-keep-policy-from-being/m-p/1372673#M4506</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2022-09-29T08:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use Conditional Enforcement to keep policy from being enforced on Win11.</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/how-do-i-use-conditional-enforcement-to-keep-policy-from-being/m-p/1372674#M4507</link>
      <description>&lt;P&gt;How do I get the extra debug output?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 21:00:33 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/how-do-i-use-conditional-enforcement-to-keep-policy-from-being/m-p/1372674#M4507</guid>
      <dc:creator>ZieglerCatDJ</dc:creator>
      <dc:date>2022-10-03T21:00:33Z</dc:date>
    </item>
  </channel>
</rss>

