<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Vadim Sohin , DevOps  Engineer</title>
    <description>The latest articles on DEV Community by Vadim Sohin , DevOps  Engineer (@vadimso).</description>
    <link>https://dev.to/vadimso</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F216465%2Fb629e36e-b77b-4326-b01c-f4296f11aa82.jpeg</url>
      <title>DEV Community: Vadim Sohin , DevOps  Engineer</title>
      <link>https://dev.to/vadimso</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vadimso"/>
    <language>en</language>
    <item>
      <title>windows cmd commands via puppet</title>
      <dc:creator>Vadim Sohin , DevOps  Engineer</dc:creator>
      <pubDate>Tue, 22 Jun 2021 18:54:33 +0000</pubDate>
      <link>https://dev.to/vadimso/windows-cmd-commands-via-puppet-2lli</link>
      <guid>https://dev.to/vadimso/windows-cmd-commands-via-puppet-2lli</guid>
      <description>&lt;p&gt;Hey everyone, i need to run cmd commands in windows&lt;br&gt;
i can achive it with exec blocks , but prefer to run it only once &lt;br&gt;
pls see below the code example,&lt;br&gt;
what is the best way  like function or with file block ?&lt;br&gt;
Thanks in advance!&lt;/p&gt;

&lt;p&gt;class disable_updates_available::windows (&lt;br&gt;
 ) {&lt;/p&gt;

&lt;p&gt;exec { 'enter system32 directory':&lt;br&gt;
     command =&amp;gt; "C:\Windows\System32\cmd.exe  =&amp;gt; cd /d '%Windir%\System32",&lt;br&gt;
   }&lt;/p&gt;

&lt;p&gt;exec { 'execute takeownership of musnotification.exe':&lt;br&gt;
     command =&amp;gt; "C:\Windows\System32\cmd.exe  =&amp;gt; takeown /f musnotification.exe",&lt;br&gt;
   }&lt;/p&gt;

</description>
      <category>puppet</category>
    </item>
  </channel>
</rss>
