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)

0
votes
0answers
36 views

Content Organiser Rule creation via powershell running slow

I am using a variation on this script posted here How to create Content Organizer rules through powershell in sharepoint 2010? My script pulls from a CSV file because I have over 600 rules to add. ...
0
votes
1answer
25 views

Sharepoint Online Management Shell Functionality

I am trying to script the deployment of multiple site collections online. This will enable us to create site collections from powershell. I have previously used the dll's (shown in the image) and ...
0
votes
0answers
89 views

How to update existing list lookup column reference through powershell

How to update existing list lookup column reference through powershell. I wrote the following code to add lookup column. Now I need to update column reference. $myCustomList =$_.Lists["Test A"] $...
0
votes
0answers
21 views

Export Crawlog and filter it

I wrote a script that exports the crawl log, in order to get everyday an excel file contains the errors and warning in the last day crawling. I used : $ssa = Get-SPEnterpriseSearchServiceApplication -...
0
votes
0answers
22 views

Sharepoint 2013 Rename Profile Photos

For some reason, all my user profile photos have something added in front of them. We just migrated from 2010 to 2013 and now they don't show up because the MySite is looking for something and it's ...
0
votes
2answers
50 views

workflow that sends a reminder 10 days before start date field

I am trying to create a workflow that sends a reminder to the director approver in case he does not approve it 10 days before start date field. Here is how I initially though it: If current item ...
0
votes
0answers
50 views

using Item.Update() will not create a new version and will not modify the “Modified” & “Modifed by” fields

I wrote the following power-shell script to create an exact copy of an item inside another list:- $web = get-spweb "****" $list = $web.lists["Source"] $list2 = $web.lists["Destination"] ...
0
votes
1answer
69 views

Error when adding calculated column to list through powershell

I have two almost identical calculated fields that I want to add to a list on several sites through Powershell . "Calculated risk" formula: =Konsekvens*Sandsynlighed "Revised calculated risk" ...
0
votes
0answers
78 views

I am trying to consume a webservice method of a sharepoint online site from powershell,it gives web exception

below is the code.. Add-Type -Path "D:\dll\Microsoft.SharePoint.Client.dll" Add-Type -Path "D:\dll\Microsoft.SharePoint.Client.Runtime.dll" $plainpassword = "xxx" $Securepassword = $plainpassword | ...
0
votes
0answers
31 views

Can i add a new version for my Issue tracking list items using powershell, and pass the system generated info to it

I want to add a new version for an issue tracking list items using powershell. now i have the following case:- I have 5 issue tracking list. and i want to merge these lists' items inside one list. ...
0
votes
0answers
111 views

Get xml data using GetWebpart2 from Webpartpages.asmx in powershell in sharepoint online site

I am trying to get the xml of the webpart from SharePoint Online site using webservice Webpartpages.asmx Below is the code Add-Type -Path "D:\dll\Microsoft.SharePoint.Client.dll" Add-Type -Path "D:\...
0
votes
0answers
21 views

Multithreading - activate / reactivate feature on 1500 personal sites - powershell

Need some help to do a re-activation of a feature on 1500 personal sites. My script are to slow and need some performance boost. Anyone with some multi thread expertise? I've looked at some examples ...
0
votes
0answers
68 views

How to change content organizer settings via powershell in SharePoint 2013

I have been able to programmatically, via powershell, activate the "Content Organizer" feature. I can also create rules via powershell. However I am struggling to find out how to alter the default ...
0
votes
0answers
97 views

Connect WebParts Programatically using powershell in sharepoint 2010 is not working for Data Form webpart with querystring webpart

In Sharepoint 2010 using powershell trying to connect webparts. I have to connect query string filter webpart with the DataFormWebpart through powershell Its always connecting to the first field in ...
0
votes
1answer
63 views

This solution contains resources scoped for a Web application and must be deployed to one or more Web applications

Hi don't mark this question as duplicate or replicated. Because I have googled a lot for this error and I have found solutions which can work my Install-SPSolution command. However what I am looking ...
0
votes
0answers
62 views

How to get newsfeed entries with powershell?

Is it possible to use powershell to get the latest newsfeed posts for a user? How can this be done?
0
votes
1answer
211 views

Remove Workflow Manager scopes?

Is there any way to remove additional scope that get's created when you create a connection to multiple SharePoint Farms from a Workflow Manager service server? Register-SPWorkflowService -SPSite ...
0
votes
0answers
17 views

Unable to view Designer 2013 WF associations in list via powershell

I am trying to set the AutoCleanUp values on WF that have been deployed to a SP list via SharePoint Designer 2013. The workflows are all 2013 workflows and list workflows. When I access the list and ...
0
votes
0answers
73 views

Script Output Displays Inconsistent Time for Modified Date Column Powershell

I have a script that outputs to CSV all items and all files from a site shown below. This script also displays current and previous versions of a file: Add-PSSnapin Microsoft.Sharepoint.Powershell -...
0
votes
1answer
44 views

Export-SPWeb: Unable to export some lists

I'm using the following script to export some lists: foreach($spListUrl in $deploymentXml.Configuration.Lists.ListUrl) { Export-SPWeb -Identity $pwaSiteUrl -ItemUrl $spListUrl -Path $...
0
votes
2answers
38 views

I am getting Cannot find an SPSite that contains the following…Error

I have a PowerShell script below: Add-PSSnapin Microsoft.SharePoint.PowerShell function Get-DocInventory([string]$siteUrl) { $web = Get-SPWeb "http://contoso.com/sites/Test10" ...
0
votes
0answers
81 views

Submitting files to OfficialFile.asmx using powershell

We have SharePoint 2013 on prem. I'd like to use powershell to submit files to a the content organizer on a site. Most of the examples I'm finding on the web are in C# instead of powershell. Does ...
0
votes
1answer
98 views

delete specific user from user profile db - powershell

I have some user accounts in the user profile db that I need to delete using powershell. user accounts are jsmith; bsimmons; boilers; nholmber, bburton
0
votes
0answers
385 views

Query Sharepoint Audit Log Powershell

I have written the following script to query audit logs, for getting when a particular document accessed and what was the event: cls Start-SPAssignment -Global $var = 1 Write-Progress -Activity "...
0
votes
0answers
50 views

Project Server 2013 CSOM cannot change ProjectData page size for specific EntitySet

I am trying to increase the default page sizes so that I can get 500 results instead of 200 results when showing ResourceTimephasedDataSet entries. I am having trouble setting the correct setting in ...
0
votes
1answer
21 views

Enable Health Data Collection via PowerShell (SharePoint 2010)

I'm trying to automate as much of our SharePoint builds as possible, but there is currently one part I'm getting hung up on. Right now, my event log is filled with error 6398 and error 5586, which ...
0
votes
1answer
263 views

Please help Import-SPWeb Error

I am getting error when importing a publishing site. from production to my development server. following is the error. Import-SPWeb : Requested value 'PublishingPages' was not found. At line:1 ...
0
votes
0answers
25 views

How to speed up feature re-activation?

Upgrading my solution in production takes forever and I'm looking for ways to improve the typical feature reactivation upgrade scenario. What actually goes on in the features vary greatly and I'm ...
0
votes
0answers
306 views

How to programmatically cancel a workflow with a specific history using powershell or SharePoint.Client api

The context is as follow: We are using SP 2010 and I have a large number of workflows associated to list items that are at "Running" state. Some are waiting for an event to happen (normal behavior) ...
0
votes
0answers
14 views

Webtemplate PowerShell Sharepoint online

How to upload my own template.wsp on default WebTemplate, where is $ST#0, $BLOG#, etc.. ? Is it that possible?
0
votes
0answers
68 views

Sharepoint Online, PowerShell, Site Collection, error 404

I have problem with creating Site Collection from PowerShell. I am creating new SPOSite. It's working and exists. Connect on my new site. I upload .wsp (good template) from my disk on PC and still ...
0
votes
0answers
114 views

Sharepoint Global navigation updating the link under navigation node type

Is there any way where we can update links under Global navigation in sharepoint 2013. I have also pinned the Termset to some of the Termset Groups. Now under pinned termset, When i updated the URL ...
0
votes
0answers
117 views

Delete old Backup Files in SharePoint

I want to use PowerShell script which delete old Backup Files in SharePoint2010 Backup Folder. I've found this script: # Location of spbrtoc.xml $spbrtoc = "\\XXX\spbrtoc.xml" # Days of backup that ...
0
votes
0answers
33 views

SharePoint List with associated Library attachments - Extract to Excel with PowerShell

I'm attempting a filtered extract to Excel from a list with columns that allow for embedded attachments which are stored in an associated Library folder [on the same site]. I'm trying to get the ...
0
votes
1answer
20 views

List out of custom web parts deployed in all site pages using power shell

Need some help to list out all custom web parts deployed in all sites pages in an site collection using power shell. Any help appreciated. am able to list out all web parts in all site pages Custom ...
0
votes
0answers
48 views

function to export mappings and crawled / managed properties

I’m running this script I found on sharepointspace.com. http://andersrask.sharepointspace.com/Lists/Posts/Post.aspx?ID=36 Why am I receiving the following error below? .\FuncRunExportSPESMM.ps1 ...
0
votes
2answers
23 views

Import Document from SQL to SharePoint 2010

Is there any out of the box way by which I can import the documents from Sql database to SharePoint 2010 document libraries ? I googled for this but I got only programmatic approaches which states to ...
0
votes
1answer
558 views

Read sharepoint field list using CSOM in powershell

I have created 2 column in sharepoint list. One field called owner is person or group type column and the other one is website template using choice type column. The question how to read the value ...
0
votes
0answers
40 views

Set Doc Set Thumbnail Url?

I would like to change the thumbnail of a Document Set and I'm having trouble figuring out if this is possible. Currently the code below tells me that field is read only... $weburl = "http://web" $...
0
votes
0answers
119 views

PowerShell backup script leaves open files and fails the next day: spbrtoc.xml is being used by another process

TL;DR: My backup script is failing because the last time it ran it left Open Files in use by open Sessions that didn't close. If I close the open Sessions before running the script (via Task Scheduler)...
0
votes
1answer
162 views

Same Content Type Display Name, Different Internal name

I know that you can have internal names and display names for columns but can you also do that for Content Types? For example, we have the following with our current powershell script: ...
0
votes
2answers
115 views

Retreive all Items from All Lists from a site - Powershell

I have a PowerShell script that outputs all documents from all Libraries within a Site (web) scope to a CSV file listed below: function Get-DocInventory([string]$siteUrl) { $site = New-Object ...
0
votes
1answer
290 views

ERROR: Exception calling “SaveAs” with “2” argument(s): “SaveAs method of Workbook class failed”

I am using SharePoint 2010 and I get following error when I try to save an Excel file via Power Shell: ERROR: Exception calling "SaveAs" with "2" argument(s): "SaveAs method of Workbook class failed" ...
0
votes
0answers
30 views

What does “QueryExpanded” stand for?

I have some search scopes in my SP 2010 farm (not fast): Name ID Count LastCompilationTime CompilationState ---- -- ----- ------------------- ...
0
votes
1answer
282 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 Microsoft....
0
votes
1answer
173 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 Microsoft.SharePoint.SPSite($...
0
votes
3answers
147 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 ...
0
votes
1answer
125 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
60 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
71 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 ...