Forum Discussion

Denis1305's avatar
Denis1305
Copper Contributor
Apr 22, 2024

display Versionnumber in Files (Word ...)

Hello everyone, I hope someone can help me with my problem.

 

I have been given the task of displaying the version number in Word documents. Without Powershell this works without any problems.

  • Activated the Library and Folder Based Retention Site Collection feature

  • Checked "Enable Labels" in the Information Management Policy Settings for the Document Content Type, and entered "{Version}" into the Label format field

  • Created a Word document in my library

  • Opened the document in Word, and inserted a Quick Part (Document Property > Label)

 

 

But I have to roll it out to all SharePoint sites in the tenant, so I have to implement it programmatically somehow.

 

Does anyone have any idea how I can do it with Powershell, unfortunately I can't find anything on the internet after a long search.

No RepliesBe the first to reply

Resources