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
1answer
44 views

Migrating from Rich Text Column to Plain Text Column with Powershell

I have a sharepoint list with a few rich text columns. I am recreating the list in a new site (for a number of reasons such as column names, etc) and am changing all rich text columns to just plain ...
0
votes
0answers
28 views

can I change the password of claim based Ax user

I have created claimed based user for AX sharepoint site(Enterprise portal) using given script New-AXUser -AccountType ClaimsUser -AXUserId har -UserName amit-UserDomain PortalAuth -CreateInProvider ...
0
votes
1answer
43 views

How to create a new SharePoint list with data from existing list using PowerShell?

For a university project, I have to create a new list with data from existing lists in SharePoint 2013. From my little experience in this field, I would use PowerShell with SharePoint's REST API to ...
0
votes
1answer
39 views

Powershell foreach alternative for item update

It takes forever to update items using foreach loop. Any other idea? if((Get-PSSnapin | Where {$_.Name -eq "Microsoft.SharePoint.PowerShell"}) -eq $null) { Add-PSSnapin ...
0
votes
0answers
36 views

Creating folders in Document Sets with PowerShell

I have a document library with only document sets at the top level. In every document set I would like to create a set of standard folders with PowerShell. I have connected the document library to ...
0
votes
0answers
27 views

Raise limit on Database Connector and BCS in SharePoint Online

I have found a way to increase the limit for on-premise SharePoint, but is there any way to increase the 2000-row limit on the Database Connector for SharePoint Online? I am connecting an external ...
0
votes
0answers
25 views

Powershell script to check duplicate field value

I need a PowerShell script that loops through a form library and checks if a certain field has duplicates, and if so it should send out an email to a specified recipient. This field is called Frm Int ...
0
votes
0answers
71 views

Getting User from Active Directory through PowerShell and updating SharePoint List

I have created Windows 2012 R2 as a domain controller as bellow Server Name :- Server Domain :- milind.intra I have all users in user container only and not all user have manager in active directory ...
0
votes
0answers
20 views

Powershell for workflow not recognizing URL

I have a powershell that kicks off a workflow but my system is not allowing me to run it. The error I'm getting is as follows: Get-SPWeb: Cannot find an SPWeb object with id or URL: xxx.com and site ...
0
votes
0answers
34 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
24 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
59 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
20 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
21 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
43 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
45 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
61 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
46 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
28 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
1answer
74 views

HowTo Add an Alias to a Search Managed Property using Powershell

How can I add an Alias to a SharePoint Search Managed Property using PowerShell? I can see it using the GUI, but I cannot find anywhere where I can add an alias to a SharePoint Search Managed ...
0
votes
0answers
90 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 ...
0
votes
0answers
19 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
52 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
66 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
54 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
51 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
132 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
13 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
52 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
40 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
30 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
50 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
62 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
236 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
39 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
18 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
196 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
23 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
224 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
57 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
76 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
95 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
30 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
15 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
44 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
20 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
338 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
36 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
85 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 ...