I get my document with :
$doc = $web.GetFile($docUrl)
Can you tell me if there is a method to get specific metadata on document?
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
You can Access metadata very easily. Here is an example code:
Add-PSSnapin microsoft.sharepoint.powershell -ErrorAction SilentlyContinue $web = Get-SPWeb "UrlOfWeb" $doc = $web.GetFile("URLofFile") Write-Host $doc.Name Write-Host $doc.Author Write-Host $doc.ModifiedBy Write-Host $doc.Versions.Count
Or did you mean sth else with "metadata", for instance custom properties (Property Bag)?