<?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 Re: Script to apply SAS 9.4 Recommended Operating System Protections for Windows Machines in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Script-to-apply-SAS-9-4-Recommended-Operating-System-Protections/m-p/624366#M18187</link>
    <description>&lt;P&gt;I don't have a script but I do use Powershell to quickly apply a set of permissions manually defined on a single folder to others.&lt;/P&gt;
&lt;P&gt;For example I can manually set the permissions for&amp;nbsp;ConnectSpawner as follows&lt;/P&gt;
&lt;P&gt;SYSTEM FC&lt;BR /&gt;Administrators FC&lt;BR /&gt;Everyone Remove&lt;/P&gt;
&lt;P&gt;Then quickly apply the same to 4 other folders.&amp;nbsp; You will see there are not many different combinations&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$ConnectSpawner_ACL = Get-ACL D:\SAS\Config\Lev1\ConnectSpawner&lt;BR /&gt;Set-ACL -path D:\SAS\Config\Lev1\ObjectSpawner -AclObject $ConnectSpawner_ACL&lt;BR /&gt;Set-ACL -path D:\SAS\Config\Lev1\SASApp\OLAPServer -AclObject $ConnectSpawner_ACL&lt;BR /&gt;Set-ACL -path D:\SAS\Config\Lev1\SASMeta\MetadataServer -AclObject $ConnectSpawner_ACL&lt;BR /&gt;Set-ACL -path D:\SAS\Config\Lev1\ShareServer -AclObject $ConnectSpawner_ACL&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Also to check my permissions are consistent between environments you can run this command and compare the output with a diff tool&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;dir -Recurse -Directory D:\SAS | %{$file=$_;get-acl $($_.FullName)} | %{$_.GetAccessRules($True,$False,[Security.Principal.SecurityIdentifier]) | Get-Unique -OnType | %{Get-Acl -Path $($file.FullName) | Format-Table -Wrap}}&lt;/P&gt;</description>
    <pubDate>Wed, 12 Feb 2020 23:31:52 GMT</pubDate>
    <dc:creator>angian</dc:creator>
    <dc:date>2020-02-12T23:31:52Z</dc:date>
    <item>
      <title>Script to apply SAS 9.4 Recommended Operating System Protections for Windows Machines</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Script-to-apply-SAS-9-4-Recommended-Operating-System-Protections/m-p/623796#M18177</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 12 Application Server Contexts that I have to apply the&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=biig&amp;amp;docsetTarget=p0eqop8dtbe081n1xl4tgs69a15z.htm&amp;amp;docsetVersion=9.4" target="_self"&gt;SAS 9.4 Recommended Operating System Protections for Windows Machines&lt;/A&gt; to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have a script that does this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 09:51:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Script-to-apply-SAS-9-4-Recommended-Operating-System-Protections/m-p/623796#M18177</guid>
      <dc:creator>bheinsius</dc:creator>
      <dc:date>2020-02-11T09:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Script to apply SAS 9.4 Recommended Operating System Protections for Windows Machines</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Script-to-apply-SAS-9-4-Recommended-Operating-System-Protections/m-p/624012#M18181</link>
      <description>&lt;P&gt;Hi Bart,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you considered Ansible for this? I do not have scripts for this specific use case as we have Linux servers. But having lots of (Windows or Linux) machines that all need to undergo the same treatment is something that Ansible does very well. That's why the Viya deployment relies heavily upon it for anything OS related.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;- Jan.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 20:46:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Script-to-apply-SAS-9-4-Recommended-Operating-System-Protections/m-p/624012#M18181</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2020-02-11T20:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Script to apply SAS 9.4 Recommended Operating System Protections for Windows Machines</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Script-to-apply-SAS-9-4-Recommended-Operating-System-Protections/m-p/624366#M18187</link>
      <description>&lt;P&gt;I don't have a script but I do use Powershell to quickly apply a set of permissions manually defined on a single folder to others.&lt;/P&gt;
&lt;P&gt;For example I can manually set the permissions for&amp;nbsp;ConnectSpawner as follows&lt;/P&gt;
&lt;P&gt;SYSTEM FC&lt;BR /&gt;Administrators FC&lt;BR /&gt;Everyone Remove&lt;/P&gt;
&lt;P&gt;Then quickly apply the same to 4 other folders.&amp;nbsp; You will see there are not many different combinations&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$ConnectSpawner_ACL = Get-ACL D:\SAS\Config\Lev1\ConnectSpawner&lt;BR /&gt;Set-ACL -path D:\SAS\Config\Lev1\ObjectSpawner -AclObject $ConnectSpawner_ACL&lt;BR /&gt;Set-ACL -path D:\SAS\Config\Lev1\SASApp\OLAPServer -AclObject $ConnectSpawner_ACL&lt;BR /&gt;Set-ACL -path D:\SAS\Config\Lev1\SASMeta\MetadataServer -AclObject $ConnectSpawner_ACL&lt;BR /&gt;Set-ACL -path D:\SAS\Config\Lev1\ShareServer -AclObject $ConnectSpawner_ACL&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Also to check my permissions are consistent between environments you can run this command and compare the output with a diff tool&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;dir -Recurse -Directory D:\SAS | %{$file=$_;get-acl $($_.FullName)} | %{$_.GetAccessRules($True,$False,[Security.Principal.SecurityIdentifier]) | Get-Unique -OnType | %{Get-Acl -Path $($file.FullName) | Format-Table -Wrap}}&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 23:31:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Script-to-apply-SAS-9-4-Recommended-Operating-System-Protections/m-p/624366#M18187</guid>
      <dc:creator>angian</dc:creator>
      <dc:date>2020-02-12T23:31:52Z</dc:date>
    </item>
  </channel>
</rss>

