win_stat - returns information about a Windows file

Author:Chris Church

Synopsis

New in version 1.7.

Returns information about a Windows file

Options

parameter required default choices comments
get_md5 no True
    Whether to return the md5 sum of the file
    path yes
      The full path of the file/object to get the facts of; both forward and back slashes are accepted.

      Examples


      # Obtain information about a file
      
      - win_stat: path=C:\foo.ini
        register: file_info
      
      - debug: var=file_info

      Table Of Contents

      Previous topic

      win_service - Manages Windows services

      Next topic

      win_user - Manages local Windows user accounts