Just another WordPress site

PWS obtener autor de un docx,xlsx …

$shell = New-Object -com shell.application
gci | select name,
    @{N='Author';E={$shell.NameSpace(($_.DirectoryName)).ParseName(($_.Name)).ExtendedProperty("System.Author")}},
    @{N='Owner';E={ If ($_.PSIsContainer) {
        $Shell.NameSpace(($_.FullName)).Self.ExtendedProperty("System.FileOwner")
    } Else {
        $shell.NameSpace(($_.DirectoryName)).ParseName(($_.Name)).ExtendedProperty("System.FileOwner")
    }}}

También es interesante ver estas lineas de : https://superuser.com/questions/1732588/powershell-how-to-get-file-owner-author

codigo propietario fichero

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *