Hi Josh, thank you for reply,

On 29-02-2012 19:12, Josh Cooper wrote:
Hi Marco,

On Wed, Feb 29, 2012 at 10:52 AM, Marco Parra D. <marco.parr...@gmail.com <mailto:marco.parr...@gmail.com>> wrote:

    Hi Josh,
    I'm runnig from cmd.exe, I'm using Administrator account on the
    windows box, this is the output for the command that you asked:

    C:\Users\Administrator>whoami /groups

    GROUP INFORMATION
    -----------------

Group Name Type SID Attributes
    ==================================== ================ ============
    ===============================================================
Everyone Well-known group S-1-1-0 Mandatory group, Enabled by default, Enabled group
    BUILTIN\Administrators               Alias            S-1-5-32-544
    Mandatory group, Enabled by default, Enabled group, Group owner


This shows that you are running elevated, which is good.

    BUILTIN\Users                        Alias            S-1-5-32-545
    Mandatory group, Enabled by default, Enabled group
NT AUTHORITY\INTERACTIVE Well-known group S-1-5-4 Mandatory group, Enabled by default, Enabled group CONSOLE LOGON Well-known group S-1-2-1 Mandatory group, Enabled by default, Enabled group NT AUTHORITY\Authenticated Users Well-known group S-1-5-11 Mandatory group, Enabled by default, Enabled group NT AUTHORITY\This Organization Well-known group S-1-5-15 Mandatory group, Enabled by default, Enabled group LOCAL Well-known group S-1-2-0 Mandatory group, Enabled by default, Enabled group NT AUTHORITY\NTLM Authentication Well-known group S-1-5-64-10 Mandatory group, Enabled by default, Enabled group
    Mandatory Label\High Mandatory Level Label            S-1-16-12288
    Mandatory group, Enabled by default, Enabled group

    C:\Users\Administrator>


    I found a page that talks about security on windows 2008, and I
    tried changing a configuration for the IIS, On the Ineternet
    Information Services Manager, under Management, Configuration
    Editor, selecting Providers, click on Edit Items, selecting
    DataProtectionConfigurationProvider, I change
    useMachineProtection, and save the change.

    On Windows 7 the scripts run perfect, but on Windows 2008 R2 still
    didn't work, still the execution said that the file was modified,
    but nothing happens on the file..... no errors it's showed....


Is your Windows 7 box 32-bit? If you're using 32-bit ruby on a 64-bit Windows 2008 R2 to edit C:\Windows\System32\inetsrv\config\applicationHost.config, Windows may be redirecting you to %windir%\syswow64\inetsrv instead: http://forums.iis.net/p/1150832/1875622.aspx


Yeah, I'm using a Windows 7 32 bits box, and it's works fine... in the other hand, I've testing on Windows 2008 R2 64 bits server, I checked on the path tha you said, and your right, the file is changed on c:\windows\SysWOW64\inetsrv\config\applicationHost.config, but IIS uses the file on c:\windows\system32\inetsrv\config\applicationHost.config

C:\Windows\SysWOW64\inetsrv\Config>dir applicationHost.config
 Volume in drive C has no label.
 Volume Serial Number is F4D5-2946

 Directory of C:\Windows\SysWOW64\inetsrv\Config

03/01/2012  06:01 AM            82,384 applicationHost.config
               1 File(s)         82,384 bytes
               0 Dir(s)   6,910,136,320 bytes free

C:\Windows\SysWOW64\inetsrv\Config>dir c:\Windows\System32\inetsrv\config\applicationHost.config
 Volume in drive C has no label.
 Volume Serial Number is F4D5-2946

 Directory of c:\Windows\System32\inetsrv\config

02/29/2012  11:01 AM            82,122 applicationHost.config
               1 File(s)         82,122 bytes
               0 Dir(s)   6,910,136,320 bytes free


How can I tell ruby that don't uses c:\windows\SysWOW64\inetsrv\config path? Is this posible?...

every time that I run puppet agent, only the SysWOW64 path is modified...


C:\Windows\SysWOW64\inetsrv\Config>puppet  agent --test
notice: Ignoring --listen on onetime run
info: Retrieving plugin
info: Caching catalog for cscltest01.office.comscore.com
info: Applying configuration version '1330592671'
notice: /Stage[main]/Iisconfig/File[C:\Windows\System32\inetsrv\config\applicationHost.config]/content:
info: FileBucket got a duplicate file {md5}6c1d34bc33754d5303a2a771a0d5483b
info: /Stage[main]/Iisconfig/File[C:\Windows\System32\inetsrv\config\applicationHost.config]: Filebucketed C:/Windows/System32/inetsrv/config/applicationHost.config to puppet with sum 6c1d34bc33754d5303a2a771a0d5483b notice: /Stage[main]/Iisconfig/File[C:\Windows\System32\inetsrv\config\applicationHost.config]/content: content changed '{md5}6c1d34bc33754d5303a2a771a0d5483b' to '{md5}fe0a4a948439c3cf4c2c5910fb72fafb'
notice: Finished catalog run in 0.35 seconds
notice: /File[C:/ProgramData/PuppetLabs/puppet/var/state/last_run_summary.yaml]/content:

this isn't works for me, the IIS needs c:\windows\system32 path...


Best Regards

Josh

--
Josh Cooper
Developer, Puppet Labs

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to