1
vote
2answers
43 views

SharePoint PowerShell Document Library properties

I'm pretty new to PowerShell and try to collect the following data about every document library in a site-collection: Document Library Name Created Date Content Type Are there any general ...
0
votes
2answers
18 views

Powershell - creating document libraries and wish to add an existing group

I have a powershell script I developed in order to create document libraries across multiple sites under a single site collection. I wish to now add the appropriate Site Administrators with ...
2
votes
2answers
765 views

Fetch list item properties using Powershell

I have document library. I want to replace some document properties using powershell. There are multiple properties associated with each document. First I'll need to check for all documents if that ...
0
votes
2answers
32 views

How can I find out if a column is unused powershell

I have noticed in some of my document libraries that I have a column that is unused. Is there a bit of code in powershell that will tell me which document libraries have the column in question but it ...
0
votes
2answers
108 views

How can I check if a Document Library is empty? powershell

How can I check if a Document Library is empty or not using powershell. $web = Get-SPWeb http://skynet ForEach($list in $web.Lists) { if($list.BaseType -eq "DocumentLibrary") { Write-Host ...
0
votes
2answers
115 views

Difference between SPWeb and SPSite

What is the difference between SPWeb and SPSite? I have this code using SPWeb $web = Get-SPWeb http://mysite ForEach($list in $web.Lists) { if($list.BaseType -eq "DocumentLibrary") { Write-Host ...
0
votes
0answers
41 views

Filter Document Libraries based on a column name

Get-SPWeb http://sharepoint/sites/training | Select -ExpandProperty Lists | Where { $_.GetType().Name -eq "SPDocumentLibrary" } | Select Title I have this code which outputs all of the document ...
0
votes
1answer
58 views

Determining Document Library to Upload Files PowerShell Script

I have a network folder that contains 50 documents. I need to upload the files to the specified SharePoint document library based on a csv filename and document library. CSV Example: filename1 ...
0
votes
2answers
230 views

Unattended downloading of files from Sharepoint Online

I want all users on my SharePoint Online 2013 (plan 2) to be able to 'drop' files in a SharePoint folder, after which an unattended process downloads these files onto a local folder on a Windows ...
0
votes
1answer
105 views

Powershell filter on a value

I am trying to setup a script to copy documents from a document library to a local file share. I have found a handful of ways to do this, but I have one caveat. I need script to look at a value in a ...
0
votes
0answers
52 views

SharePoint 2010 PowerShell Delete folders in Document Library - See SharePoint/event Log?

I wonder if its possible to see a log file of events (deleted folders in big document library) when actions are invoked by PowerShell? The PowerShell-script it self don't push anything to a log-file ...
0
votes
1answer
75 views

Powershell : Query Document Exclude Document Set

I have a Document Library contains multiple Document Sets, each of the Document Sets contains Files. Document Library ----> Document Set ----> Files My objective is to query all File Name only ...
0
votes
1answer
187 views

Documents / Library missing after migrating My Site to the new Content Database

I've moved some My Sites to new content database with the powershell cmdlet Move-SPSite. However, after moving them, it appears documents were "lost" on some of them (most of sites is just fine). When ...
0
votes
1answer
632 views

Powershell for downloading documents with versions

is there any PowerShell script which downloads all the documents with folder structure from document library maintaining version of each file?
2
votes
0answers
151 views

PowerShell script to update ContentType of existing records in Document Library

we are using Document Library in SharePoint 2010 environment. there are about 200 document present in the document library which have been identified (based on location - England and employee type - ...
0
votes
1answer
45 views

Changing URL / Moving document Libraries with Powershell

I have 100s of Document Libraries with documents in them. The path is: CustomerNumbers/Lists/Documents, I would like to move them 1 folder out; to CustomerNumbers/Documents. All metadata must be ...
1
vote
1answer
70 views

Break Role Inheritence Problem

I used following script provided by Nadeem for breaking permission inheritance of folder. but for me, when I tested ,it doesn't break inheritance at all. it is just assigning new group to the ...
6
votes
2answers
251 views

Script to automatically import documents from a network share on a regular schedule

I am new to SharePoint development. I am trying automate the task of: Uploading documents from a network share to a SharePoint document library. The related metadata for each of the files also need ...
1
vote
2answers
588 views

Move Documents - Update Modified date of Published document

I'm want to move documents between site collections retaining their version history(Major and Minor versions). I used this blog http://bit.ly/NPftRE as a reference and was able to move documents with ...
1
vote
4answers
690 views

Copy Document library from one site to another with metadata preserved?

Is there a way to to move all items from one document library in one site to another document library in another site where even the metadata like Created,Created Date,Modified,Modified Date,Assigned ...
2
votes
1answer
55 views

Check out to document owner using powershell

I have a document library with 200 + documents. I would like to check out all documents in the library to the document owner. I have seen a few powershell scripts that check in documents but not ...
1
vote
2answers
580 views

Using powershell, get the pagelayout name for a given aspx page in the Pages Library

I am writing a powershell script to list out all the pages in a given Pages library. But I would like to get only those pages with a given pagelayout. Is it possible to get this information from the ...
1
vote
2answers
120 views

How to set a powershell variable to a specific sharepoint page

I have a SharePoint 2010 documents library that contains about 50 .aspx pages. I want to break inheritance on about 6 pages and set them to specific permissions. I am able to get a page by numerical ...
1
vote
1answer
163 views

how to get back old modified user name and date in Sharepoint 2010 document library?

Is is possible to revert sharepoint back with old modified user and modified date information? Even restoring version history changes modified user and date. For ex: my file in sharepoint 2010 ...
0
votes
3answers
242 views

Create a document library from custom list definition with powershell

I have a question regarding the creating a Document Library based on the custom list definition, how can I do that using the PowerShell. Thanks
0
votes
1answer
75 views

How to send files from Shared Folder to SharePoint Library

We have a ticket system on the network that creates documents in a shared folder (Different computer on our network). Is there some way I could create a script to take files from the folder and add ...
2
votes
2answers
267 views

EnsureSiteAssetsLibrary throwing exception

The short story, when trying to execute SPListCollection.EnsureSiteAssetsLibrary I get: Exception calling "EnsureSiteAssetsLibrary" with "0" argument(s): "A list, survey, discussion board, or ...
1
vote
1answer
509 views

Working with taxonomies via PowerShell: Removing a tag from an item

So I have a term store created and populated with terms, and I'm writing a script to retroactively tag items. During preliminary poking around, I found I can successfully tag an item with simply ...
1
vote
2answers
687 views

Document Set Move

So far I have managed to move Document Sets using PowerShell from Document Library A to Document Library B. I found this article: ...
0
votes
2answers
422 views

Cannot export a Document Library with Powershell, but other Lists work

I'm trying to do an "export-spweb" command in Powershell to mass-transfer lists and libraries from one site to another. Now, it partially worked, in that all my Lists that were not Doc Libraries ...
0
votes
1answer
207 views

Every SPFile is null in a document library using PowerShell?

What the crap is this about? I whipped up a fairly simple run-once and discard PowerShell script to iterate through all of the files in a list and make a simple change. The problem is every SPFile I ...
1
vote
1answer
318 views

How create an index based on an internal list field?

I have a huge library and its documents don't have any metadata. They have only the name (FileLeafRef) filled (and FileRef -> file's path automatically filled). I'm trying to update their metadata ...
0
votes
1answer
456 views

How to remove specific file types (i.e. docx) from multiple specific Sharepoint libaries?

I am a newbie when it comes to Powershell so I'm asking for help. In Sharepoint 2010 I have several document libraries in a single site collection that all start with the name of 'PT-' and in those ...
1
vote
3answers
262 views

Move Files from a SharePoint Library into a Folder

I have a problem. I want to move files from a SharePoint library into a folder using PowerShell. To be more specific I need to move all the files in the library for whose a SharePoint field value ...
4
votes
3answers
5k views

Add group to Library permissions using powershell

I have written a script that created a document library called "Audit Logs" for every site collection in our environment. I then wanted to ensure that only Site Collection administrators and the ...
1
vote
3answers
973 views

How can I change Document library permissions for all site collections using powershell?

Total Powershell newbie here, but I have managed to write a couple scripts so far that have been working. We are using 2010 Enterprise edition, and I have been tasked with creating a script that will ...
3
votes
1answer
107 views

Hide SPContenType in use

I'm trying to hide (or remove it from the new button drop) a SPContentType that is already in use via Powershell scripting. Even if before: $SPContentType.Hidden = $true $SPContentType.Update() I ...
0
votes
1answer
50 views

User based document library

I have a request regarding document library, basically the library will store each person's record, so the security is at user level. Instead of using mysite, I am now having two choices in my head: ...
1
vote
1answer
236 views

Download Versions of a SharePoint 2007 Document?

Can anyone point me in the direction of downloading all the versions of a file in a SharePoint 2007 document library? Is this possible with PowerShell, C#, or another way?
0
votes
1answer
728 views

Synchronize Documents between SharePoint Farms

I need to synchronize certain documents between 2 Doclibs on different SharePoint Farms. This is a 'one-way-sync' meaning all changes should be replicated from A to B, not from B to A. You can ...
4
votes
2answers
934 views

Get the check out file based on users Name

My environment is SharePoint 2007. I have write a Power shell script to get the file names and checked out by username and their email id. I am successfully able to get these details. Now I want to ...
4
votes
1answer
965 views

powershell not finding shared document library?

There is a document library called "shared documents" in the site I type at the prompt when running this script. The script returns the titles of several document libraries, but not "shared ...
1
vote
2answers
2k views

use powershell to check whether or not a sharepoint list is a document library

I want to make some changes to all of the document libraries in a site collection, but not make changes to any other lists. In PowerShell, how can I check whether a list is a document library, or a ...
1
vote
1answer
2k views

PowerShell Script that modify items's value in SharePoint 2007 List/Library recurrently

Is it possible to have a PowerShell script that can modify some item's values in a SharePoint 2007 List or SharePoint Document Library on the last day at 2359 Hrs every month? (If it is possible, it ...
1
vote
2answers
1k views

How can I query all of the items which are inside a folder, which is in turn inside a document library?

I am trying to use Powershell to query my Sharepoint site so I can get a list of items to use as input in my migration script. I have a document library (Site Assets), which has a folder (Calendar ...
5
votes
3answers
9k views

Download and delete documents using Powershell

I'm looking to build a Powershell script that does the following to all documents in a SharePoint 2010 document library: Downloads the document to a network file share Deletes the original document ...
4
votes
1answer
4k views

Traverse through List of Documents using PowerShell

I am new to PowerShell and would like to achieve the following tasks on a SharePoint 2010 Document library: 1) Using PowerShell, how can I display the List of Documents in a simple Document Library. ...