Skip to content

100% Private Proxies – Fast, Anonymous, Quality, Unlimited USA Private Proxy!

Get your private proxies now!

Update document metadata in a library via PowerShell

I’d like to be able to update some files propreties via Powershell, so here the script I tried:

[System.Array]$  Words = 'Project Overview','Project from pervious Years'  foreach($  folder in $  list.RootFolder.SubFolders) { if ($  folder.Name -ne "Reports") {              foreach($  file in $  folder.Files)   if ($  Words –contains $  file.Name) {              $  file.CheckOut();             $  file.Properties['Status'] = "9. Old"             $  file.Properties.Update();             $  file.CheckIn('Test');                                                              }                             }                      }                     } 

the files I want to modify are stored in my Reports folder, so once I’m in this folder I loop all files until I find a files whose the name is included in my array, I update the files and then I continue I don’t know why but my code doesn’t work and as it’s the first I tried to do something via powershell, maybe something is wrong in my code Thank you

Author AdminPosted on July 22, 2019Categories buying proxiesTags Document, library, metadata, Powershell, Update

Post navigation

Previous Previous post: Problema para enviar datos de mysql a control select en jsp usando servlet
Next Next post: Which is the best way to deal with table, when we have more than 500 expandable list in a view page?
100% Private Proxies – Fast, Anonymous, Quality, Unlimited USA Private Proxy! Proudly powered by WordPress

DreamProxies - Cheapest USA Elite Private Proxies 100 Private Proxies 200 Private Proxies 400 Private Proxies 1000 Private Proxies 2000 Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive Proxies-free.com New Proxy Lists Every Day Proxies123