2
votes
2answers
79 views

Powershell return properly the selected value from multi-choice field

In my powershell script I want to fetch the value of a mulit-choice-field in a sharepoint list. The problem is that although the value is returned, it is encased in ;# - for example, I would receive ...
0
votes
1answer
29 views

check if list has already been created

I've written a bit of powershell for creating a list just wondering how add say an if statement to check if its already been created. In Client side not server side here is my code : param( ...
0
votes
1answer
21 views

Export a list definition to text file or script?

Is there any reasonable way to export a list definition to a text file or script so it can be used to create a new list after some tweaks to the column names, and the addition of some additional ...
0
votes
1answer
45 views

Need help using powershell to create list items

I based my code from this example it stated it had the ability to create list items with attachments from existing list items in a new list. I liked this example because I would like to archive old ...
2
votes
1answer
38 views

Powershell - get all default values for a document library

I am attempting to write a powershell script that will iterate through all document libraries and provide me with the default values for specific columns. I am successfully iteration through the ...
3
votes
3answers
81 views

How do I create a list from a template and create all views with Powershell?

I am trying to imitate the process of creating a list from a template in the UI by using a Powershell script. When you create a list from a template with the UI, all of the original list's views are ...
1
vote
1answer
35 views

Make a column unique powershell CSOM

How can I Enforce unique values: in powershell? Client-side as well not server-side Here is the code that I have : $ListInfo = New-Object Microsoft.SharePoint.Client.ListCreationInformation ...
0
votes
2answers
32 views

Updating a view using powershell

I have created a list and added some new fields in my sharepoint site. I now want to add my new fields onto the All Items view using Powershell is this possible? I tried : $viewFields = New-Object ...
0
votes
2answers
42 views

powershell sharepoint item column

I am searching a list and I want to print out a certain part of the item. I can do it using select web | select list | Select items | select Name just wondering how can I do it like $site = get ...
2
votes
2answers
185 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
3answers
43 views

disable search / crawl by default for all new lists or library?

I'm looking for a way to disable new lists and libraries from being searchable. Ultimately, this site will be public facing and even though I can tell people to remember to disable lists and ...
0
votes
0answers
33 views

Url column fill with powershell how to disable link on a item

I have a list with custom columns. One column type is URL. I create an item like that : $new = $list.Items.Add() $new["Client"] = "http://google.fr/, $($i.client)" Is that possible to disable the ...
1
vote
0answers
49 views

Propagate Lists through variation sites by PowerShell

Is it possible to propagate a list to a variation site by powershell?
0
votes
2answers
85 views

Powershell to selectively copy attachments to a local drive

I am still learning Powershell and am having problems modifying to script below. I found this at http://bhatiaashish.blogspot.com/2012/08/powershell-script-to-download.html. This script works but I ...
0
votes
2answers
245 views

PowerShell - Iterate through all webs, then iterate through all lists , then add a column where a list is a certain name

I'm trying to put together a script that should iterate through all webs in a site collection, then iterate through all lists in those webs, then add a column where a list has a certain name. This is ...
0
votes
0answers
75 views

Import/refresh automatically a CSV file ? Powershell or not?

I have to import a CSV file into a list (put it in a tab). But this CSV will be updated (weel, in fact it will be regenerated), and I need SharePoint to refresh the list with new data. I don't know ...
0
votes
2answers
91 views

Powershell script to change locked for editing to sharepoint\system status, ID not found?

I am trying to target a file to change the check out status. So I can delete it. SharePoint Management does not work. Manage Content & Structure does not work. So I am trying PowerShell. ...
3
votes
3answers
155 views

Slow CSV writing for huge document libraries in powershell

by using below PowerShell script, i get all the items list from the document library including sub folders hierarchy in a CSV file. This script works very fine for small data but for huge data like ...
4
votes
1answer
203 views

how to iterate through all folders inside subfolders of root level folders

below is the code to iterate through root level folders which downloads folder starts with "a" and download sub folders from it starting with any letter. I want to download all the folder levels and ...
0
votes
2answers
501 views

Powershell - Function to retrieve all items from a list

I'm just getting started with Powershell and am trying to write a reusable script that lets me get all items from an arbitrary list: function Get-SPItems { <# .SYNOPSIS Get all ...
2
votes
2answers
205 views

List Template does not show up in PowerShell

I have about 15 List templates in the (gallery > List templates) and none of them show up when I run following script: $web.ListTemplates | ForEach{ write-host $_.Name } I think that is the reason ...
1
vote
1answer
415 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 ...
0
votes
1answer
172 views

Updating a username in a List - false positive

In my portal I have a list with a "person" field that contains usernames. I am using a powershell script to update this field. You can see my function below. I've already loaded the list, and am ...
0
votes
1answer
107 views

Update List Item with Powershell Begets Strange Return

On my portal I have a list with columns for First Name Last Name and Account where Account contains usernames. So I have this function which reads through my list (it connects fine, it reads the list ...
2
votes
1answer
507 views

Broken Lists Cannot Be Deleted

There are a few lists in a SharePoint Server 2010 development environment that are broken. Due to this situation, clicking the lists in the SharePoint Web interface throw .NET exceptions, and viewing ...
1
vote
1answer
303 views

Delete List Items Using PowerShells with Date Filtering

I've been trying to delete more than 10,000 list items in SharePoint using PowerShell. So far, this is what I've had [System.Reflection.Assembly]::Load("Microsoft.SharePoint, Version=12.0.0.0, ...
0
votes
1answer
251 views

how to change Catalog settings of a list by powershell

I would like to change catalog settings of Pages list to make it act like a Catalog by using powershell. It includes adding Title as "Catalog Item URL Fields" and choosing a Term Set for "Navigation ...
2
votes
3answers
421 views

Recreate a List in many subsites of a site collection using powershell

I have to recreate the same List in several subsites within a site collection. I saved my List as a template but it will be very time consuming to add the List manually to all of my subsites using the ...
0
votes
1answer
2k views

Powershell Script to generate site collection administrators, site URL, Site Name,Members in the group named 'owners'

I have a requirement currently to generate all the Sharepoint site in a Web application with the following information: Site URL Site Name Site Collection Administors : ID or name Members in the group ...
0
votes
0answers
102 views

List View Webpart is not getting added while activating feature using powershell

I created a feature and on activation of it I am trying to add list view webpart. Using powershell command activating feature and it gets activated but List View Web part it is not getting added on to ...
3
votes
1answer
4k views

Powershell to List GUIDs of Lists and Libraries but how to seperate

Working on a script that will dump out all of the lists and libraries in a site, I found the script on Mike Smith's Blog: ...
0
votes
0answers
100 views

Update KPI Lists Script

I have about 400 KPI lists, and an error in one of the KPIs on each list. Is there a way I can update all of the lists automatically? I cannot use .NET, but a shell script is within an acceptable ...
0
votes
1answer
2k views

Changing the order of columns in a list view - Powershell

I am trying to add a new column called "REF" to all existing views using powershell which I have succeeded in doing, however when adding the column it is automatically added to the end of the array ...
2
votes
1answer
240 views

Programatically update field/column name in a list on all sub sites [Powershell]

What I want to do is with a Powershell script programatically go through all subsites in a site collection and change a column name in a list from "Web" to "Site". So in easier words: Go through ...
1
vote
0answers
691 views

Why is my SPD 2010 workflow running twice?

I've got a support case for a client, and they have a super simple workflow on a list. It simply sends an email to a user from a person field, whenever an item is added to the list. The client ...
0
votes
1answer
463 views

Power Shell List Item Copy

I am trying to copy a list from one web app to another web application .All the list items are copying fine except for Contact Details (which is column of type person).This column is showing empty . ...
0
votes
0answers
203 views

Stop Powershell Script asociated with list sharepoint

I created the next script with powershell and it updates all the items in a list: Add-PSSnapin "Microsoft.Sharepoint.Powershell" $site = Get-SPWeb -identity "http://mywebsite" $list = ...
0
votes
1answer
970 views

Deleting all alerts on a sharepoint list using powershell?

I understand alerts will only be show to those who created them. However I am on a test site and would like to rid the list of all alerts. Is there a way to do this programatically. I can seem to ...
1
vote
2answers
343 views

check if versioning enabled on sharepoint 2010 list

I have a PowerShell script that updates document libraries to make sure that versioning is enabled: $list.EnableVersioning = $true How can I check whether versioning is enabled before making the ...
0
votes
1answer
127 views

How to identify if the list field come from web or site col?

I have a following task in sharepoint 2007 to identify if the list fields come from the parent web or site col, this i'm planning to do with a powershell script. So what I want to do is to iterate ...
0
votes
1answer
2k views

PowerShell to iterate through all SharePoint Lists

Is it possible to iterate through all the lists in a site collections and create a folder name "Test" using PowerShell? Fine Regards
2
votes
5answers
10k views

How to delete all items in aList using PowerShell

I am using following PowerShell script to delete all items of the List. It's working fine but take too long for huge lists. Is there any efficient way of clearing list items, something like truncate ...
2
votes
2answers
4k views

get Items from Sharepoint-list

I've created a list in sharepoint by using visualstudio. The List is based on a custom contenttype. Because I want to delete the title field I've switched off inheritation of the Contenttype: ...
0
votes
1answer
293 views

PowerShell or script to make all lists and libraries unsearchable?

I realize I can do this at the site or site collection level (can't remember which). However, I need every one turned off individually so that I can then go back and choose which libraries/lists are ...
0
votes
1answer
114 views

Trying to create list with ECT

I'm trying to create list from External content types with powershell. I'm trying to get the model, through this line : $Model = Get-SPBusinessDataCatalogMetadataObject -BdcObjectType Model -Name ...
0
votes
2answers
2k views

Using Import-SPweb -IncludeUserSecurity slow

I am quite often asked to move lists/document libraries etc. between Sharepoint sites and retain the Author, Modified by data and the like. Now I can do this fine using the -IncludeUserSecurity switch ...
0
votes
2answers
280 views

Is it possible to start a workflow instance on a list item when the workflow is not associated with the list?

I am writing a powershell script to find out all the In-Progress workflow instances in a site collection. Usually, the suggested way to do this is to find associated workflows to a list and check the ...
2
votes
1answer
1k views

Indexing sharepoint lists with ps

I would like to index a column in a list with powershell. I have a problem, when i retrieve the list how can i set what field should be put to index? Is there a special command, can anyone provide me ...
2
votes
2answers
972 views

PowerShell Scripts

Does anybody know if there's some way to delete items from an SPList using PowerShell scripting? If is this possible, has anybody any good tutorial? Thanks!!!
0
votes
1answer
2k views

Create a list with powershell

I need to create one list with powershell with the following columns Title Url (255 max length) Description (255 max length) It must be a custom list. There is no need to create site columns or ...