Windows PowerShell is Microsoft's task automation framework, consisting of a command-line shell and associated scripting language built on top of, and integrated with the .NET Framework. PowerShell provides full access to COM and WMI, enabling administrators to perform administrative tasks on both ...

learn more… | top users | synonyms (1)

1
vote
1answer
566 views

Retrieve all fields from a list using Powershell (CSOM)

I need to write a script which I can launch (for example) at specific time and which will make a save of all lists on the SharePoint. For now, the script is able to connect to SharePoint and retrieve ...
0
votes
1answer
124 views

How to export list to csv using PowerShell

I have a Powershell script that outputs data from all libraries in a site shown below: Add-PSSnapin Microsoft.sharepoint.powershell $url = "http://contoso.com" $site = New-Object ...
1
vote
1answer
78 views

Possible value for server role

I am trying to see what are possible values for Server Role property in SharePoint Farm Below is the command I am using to see all servers and their roles. Get-SPServer | Select Role What I am ...
0
votes
1answer
199 views

Powershell to upload files to SharePoint Online

I am trying to upload files to SharePoint Online using Powershell (created with help from online blogs) and I am somewhat successful too. The script uploads files and folders from local drive to SPO. ...
1
vote
1answer
42 views

Emtpy list with PowerShell

I am searching for a powershell script to empty a SharePoint list, can someone give me that? Or maybe there is an option in SharePoint / administration to empty a list with a click?
0
votes
3answers
43 views

Edit a list item in PowerPhell

foreach($list in $lists){ if ($list.title -eq 'PerformanceDevelopment'){ foreach($item in $list.items){ if ($item.title -like $Employee+'*'){ $OldLineManager = $item["Manager Name"] $item["Manager ...
5
votes
1answer
158 views

Powershell Delete only 1 item in Document Library

I have 300 files in my document library and I need to delete one of them, I cant use the delete out of box option and I though I can use PowerShell to force it. Can anyone have any idea about this: ...
0
votes
1answer
71 views

How to output all previous versions of a file using Powershell

I have a script that displays multiple columns and outputs to CSV file below: Add-PSSnapin Microsoft.sharepoint.powershell $url = "http://contoso.com" $site = New-Object ...
0
votes
3answers
94 views

unable to remove deleted site collection “Unable to find specified file”

I am facing a strange problem on my SharePoint Enterprise 2013. I have previously deleted some site collections from central administration. Now I want to remove them permanently. So I run the ...
1
vote
1answer
44 views

Copy entire list using Powershell

I need to export an entire list as a .csv file. I actually have this code which works great but I need to write each column I want to export: $listTitle = "Example" $list = ...
0
votes
1answer
56 views

UserProfile GetChanges method no longer returns any changes

I executed the PowerShell script below 2 days ago and it returned 3 results. When I run the script today it does not return any results. The script returns all changes made to the user's profile. Why ...
0
votes
1answer
39 views

Powershell script to copy subscriptions over

Wondering if there is a Powershell script to copy all subscriptions over from one list to another list. I've a situation where user re-created a list to under a subsite and would like to copy all old ...
0
votes
0answers
38 views

bulk update sharepoint online user profile from xml source using powershell

We have a SharePoint Online Tenant and want to update specific fields of all user profiles using PowerShell. We have the data in a XML file and all the fields that we need to update are Multi-value ...
0
votes
2answers
46 views

Update SPList.ImageUrl after migration from SP2007 to SP2013

After migration from 2007>2010>2013 for all lists ImageUrl property is still on 2007. If someone have powershell script which updates all lists on site SPList.ImageUrl property from SP2007 version to ...
0
votes
1answer
46 views

Rename Site collection after re creating it once after deletion :SP2010

Old Site Collection name = ABC delete the site collection Create a new Site COllection with same name = ABC but on UI the title of site collection shows ABC-2 I have tried updating the title ...
0
votes
0answers
24 views

How to send email to Owners Group using Powershell

I wanted to know how I can email, for example, a csv file to users who belong in the Owners group using PowerShell? I have found an example here and the code below is the sample provided: ...
0
votes
1answer
18 views

How to pull library location of files using PowerShell

I have a script that outputs checked out files in csv format below: Add-PSSnapin microsoft.sharepoint.powershell $url = "http://contoso.com/sites/Depts3/KDS" $site = New-Object ...
0
votes
0answers
38 views

How to use Site URL property available in Visual Studio during WSP deployment using PowerShell?

I have an application page based solution in Visual Studio 2013. The Web application has a site collection, under which we are doing the deployments during development from Visual studio by setting ...
0
votes
0answers
54 views

Yammer Configuration: Activate Yammer with PowerShell

I would like to activate Yammer with a PowerShell script. This is done in the UI on the http://{sharepointadmin}/_admin/yammerconfiguration.aspx page: As an alternative to using SharePoint ...
0
votes
1answer
31 views

How to populate a SharePoint list using SharePoint Mangement Shell?

Why does this code is working perfectly when I type it inside Sharepoint Management Shell and does not inside a PowerShell Script file (.ps1) ? Add-PSSnapin Microsoft.SharePoint.PowerShell -EA ...
0
votes
1answer
69 views

Upload and check-in file to 2010 document library without access to site, only to library from powershell

By using code similar to Upload file to SharePoint Document library using powershell I am able to upload file, but they are in checked out state then. This works without the SharePoint snapin. ...
0
votes
1answer
44 views

Alter account display name( i:0#.f|CustomMembershipProvider|) of claims custom membership provider

I found so many solution like replacing the display name of the user manually using PowerShell script Set-SPuser -identity "User name" -DisplayName "Display Name" -web Web url. Since I have more ...
0
votes
1answer
26 views

Powershell script duplicating files and displaying incorrect URL of the file's location

I have a powershell script that display a list of files that are checked out all users in a site and exports the output as a csv file: Add-PSSnapin Microsoft.Sharepoint.Powershell $url = ...
0
votes
0answers
24 views

How to email csv file to Owners group using powershell

I have a script that exports data to a csv file listed below: $url = "http://portal.contoso.com" $site = New-Object Microsoft.SharePoint.SPSite($url) $web = $site.OpenWeb() $list = $web.Lists ...
2
votes
4answers
269 views

Upload files to SharePoint intranet site using PowerShell

I'd like to upload files from my c drive on my computer to my SharePoint intranet site with url http://kmsbs. I would like the files to go to the documents library on that site. Does anyone know ...
0
votes
0answers
68 views

Sharepoint 2013 Online Site Collection Backup-Restore using CSOM in Powershell

i have created Publishing site collection on SharePoint Online. Now i am trying to create new Publishing Site Collection with same Contents So can anyone explain me how to go about backup and ...
0
votes
1answer
199 views

Retrieve Doc ID generated by Document ID services using CSOM PowerShell

Once we activate the Document ID Service from the Site Collection Features. Whenever a document is uploaded in a library a Unique Document ID is generated. And this ID looks something like ...
1
vote
1answer
49 views

Extract all data as files from a SharePoint instance using Powershell

I am searching for a good way to extract all uploaded files in SharePoint using PowerShell. I saw some options to extract all documents to .csv files, but that's not what I need. If a user uploaded ...
0
votes
3answers
31 views

How do I set Root Web properties

I decompiled Microsofts 'CRM 2015 List Component' sandbox solution because I have some strange issues with it and I noticed that it contains tracing code/logic (which can help me to pinpoint the ...
0
votes
0answers
26 views

Can not delete missing webpart

When I try to delete misisng webPart i got this : So how can I manage this, No information for the first WebPart no ID, no leafName .... Any idea
0
votes
0answers
13 views

PowerShell farm administration using local account

I have a 2 server setup, one frontend and one db. Is it possible to use local account from frontend to administer the farm through Powershell? Because it is a local FE account, I cannot simply add it ...
0
votes
1answer
29 views

How to upload document versions with keywords/metadata/etc changes included?

The situation is as follows: there is a document on two sites - on site A in versions 1-20 and on site B there are versions 20 - 27. Users are working only on the document located on site B - changing ...
5
votes
1answer
148 views

Change / rearrange / move user properties - Powershell

Is there a way with PowerShell to rearrange / change the order of user properties? If I create a custom user property and make it visible on the mysite I have to click like 100 times to get in to the ...
1
vote
1answer
34 views

MaxQueryLookupFields property in SPWebApplication Class

Can anyone tell what the MaxQueryLookupFields property in SPWebApplication class is for? Edit 1 Gets or sets the maximum number of lookup fields that may be included in a list item query. ...
1
vote
1answer
67 views

Trigger a Workflow for every item in a list using PowerShell

What's the best way to go about writing a PowerShell command to activate a workflow for each item in a list? There's a million articles out there and I'm wondering what the best way is.
0
votes
2answers
37 views

trigger power shell script on button click

we are having a requirement,when we click on a button in SharePoint page,we need to trigger workflow... Can any one help on this how we can achieve this functionality
1
vote
0answers
13 views

Find Which Sites Where Solutions Are In-Use

In SharePoint 2007, 2010, & 2013 how can I find out which sites the Features/Solutions that are installed in the Farm are actually in-use?
0
votes
0answers
34 views

Faster way to process 120K List Items in SharePoint 2013?

We have around 120K List Items in a SharePoint 2013 List. Now, we want to introduce an additional column and update the value based on the existing columns. It is a dedicated - SharePoint farm and ...
0
votes
1answer
33 views

Copy a document library within the same site using powershell

I've been looking on the internet and all I find are "how to move one document library from one site to another". My question is, is there a PowerShell script where I can copy a document library, ...
0
votes
1answer
65 views

Powershell hash tables and PSObjects - multiple values

I need help with the following for my project in SharePoint. I have an external list with values like: *ToolId* *ProductId* T001 ProductA T001 ...
1
vote
0answers
38 views

Duplicate site collection with Get-SPSite

I have the same problem as this question (Duplicate Site Collection) but unfortunately dismounting and re-mounting the database did not solve my problem. Just to clarify, if I run Get-SPSite, the ...
1
vote
0answers
128 views

how to attach document in custom list for sharepoint online using Powershell?

I have tried this code to attach a document in custom list for sharepoint online, but it is not working. $site = [Microsoft.SharePoint.SPSite]("Your site name") $web = $site.OpenWeb() $list = ...
1
vote
2answers
266 views

How to save a list in a csv file via Powershell

I have a SharePoint online list with more than 9000 items and 22 column. The list is being populated on daily basis. I am taking backup manually every morning by saving the list as excel file in the ...
0
votes
1answer
46 views

Enable-SPFeature Not firing event receiver

I have been trying to activate a custom feature with an event receiver by powershell, I am using the following command (I ran powershell as administrator) Enable-SPFeature -Identity ...
1
vote
0answers
229 views

Weird error in powershell script when adding Navigation node, requires accessing site via browser to fix

I am creating a new site in 2013 with powershell (New-SPWeb) and attempting to set some Search Navigation settings. The problem I encounter is that my Get-SPWeb call fails until I access the site via ...
2
votes
1answer
129 views

Get all documents from subsite with Powershell

I want to get all documents (and only documents) from a site with a Powershellscript and save the result in an .csv I need this because a lot of documents are stored in a bunch of subfolders in the ...
0
votes
0answers
106 views

SharePoint Quick Launch Target Audicence Property using Powershell

Below is the code which am using to get a link from Quick Launch CSOM and update the property Target Audience. $quickLaunchColl= $context.Web.Navigation.QuickLaunch ...
0
votes
1answer
53 views

Add Sharepoint 2013 document library “app” via powershell

I have an app that has been created and is available to be added to a site via the GUI ( Site Contents -> Your Apps. ) It is a simple document library (it was not created by me). I am attempting to ...
0
votes
0answers
124 views

Create list view powershell and create filter

I have the below script to create a list view in a specific library. I have a metadata field 'Country' that I wish to filter on. I have looked at the query needed and pasted it into my code and it ...
4
votes
1answer
293 views

Powershell: Populate a Multi-Value People Picker via CSOM

I'm currently working on a script to update a SharePoint list in a 2013 Dedicated environment. One of the fields on the list is a Multi-Valued 'People Picker' field and I can't figure out how to ...