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
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
0answers
58 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
14 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
32 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
32 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
0answers
28 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
0answers
11 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
25 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
0answers
27 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
0answers
16 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
0answers
95 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
26 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
0answers
20 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
68 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
13 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
39 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
33 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
69 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
20 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
0answers
33 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
0answers
29 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
50 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 ...
0
votes
0answers
26 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
0answers
36 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
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
0answers
36 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
50 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
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 ...
0
votes
0answers
66 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
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
0answers
33 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
0answers
105 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
0answers
112 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 ...
0
votes
0answers
44 views

Download masterpage using CSOM (PowerShell)

I want to download the complete contents of the Master Page Gallery, but I'm getting stuck on downloading the Master Pages. I'm wondering.. is this even possible using CSOM? Using this: $fileInfo = ...
0
votes
0answers
30 views

Powershell to Find out who is following a SharePoint 2010 blog

Is there a PowerShell script to determine who is following a SharePoint 2010 blog? If not with PowerShell, is there another way? I tried to use the below article and it got me close but I need to ...
0
votes
0answers
28 views

Powershell to find out if a sharepoint site is public facing?

Is there a way to find out if a SharePoint 2013 site is Public facing or not using powershell?
0
votes
0answers
17 views

Windows Users Timing Out of SharePoint App

I have a SharePoint application which has Windows and FBA authentication. When a Windows User logs in their session is timing out quick. I want to say 5-10 mins. I have ran ...
0
votes
0answers
50 views

How to check if roleAssignment member is an AD group in powershell?

I created a powershell script to get all permissions from all site collections and filter on useraccounts which are not included in the UPS. I see alot of AD groups, but I would like to exclude them. ...
0
votes
0answers
38 views

Add OOTB Tasks List as web part in Wiki page using powershell or C#

I have like 100 subsites which are built on Teeam Site template. I would like to add Tasks lists as web part on the home page which is a wiki page residing in Site Pages library. ...
0
votes
0answers
64 views

There are no addresses available for this application

I have the following script to create the subscription settings service application but I get this error: There are no addresses available for this application #This service application provides ...
0
votes
0answers
42 views

What does Upgrade-SPFarm do?

Can anybody explain what the cmdlet Upgrade-SPFarm does. Technet is rather un-informative. Does it replace psconfig.exe -cmd upgrade -inplace b2b?
0
votes
0answers
38 views

How to tell if a person has modified any content on a SharePoint site programmatically?

We need to find out if a disgrunted employee has modified any content on any number of many SharePoint sites we have. Aside from how we are currently reviewing lists by modified date manually ...
0
votes
0answers
25 views

Adding a removed server to the farm again

Earlier, I was removing a server from a SharePoint 2010 farm via Central Administration by clicking the Remove server link. Nothing else that I have done. How I can re-add the server to the ...
0
votes
0answers
25 views

powershell to select a lot of files in folders and subfolders

First my problem : I started to move a big library into a document center in Sharepoint, everything went fine, except people couldn't see files in it. After a short research I discovered the check out ...
0
votes
0answers
58 views

sharepoint 2010 powershell to delete workflow history

I'm looking to put together a powershell for sharepoint 2010. I want to delete workflow history after 30 days, for everything in my farm/sites BUT I want it to exlucde certain lists that we need to ...
0
votes
0answers
168 views

Retrieve SharePoint 2013 Product key script

I've tried many scripts, but all of them retrieving another key then product key, that i wrote in start of installation (i remember first symbols). Is there any way to get the right Product key, that ...
0
votes
0answers
109 views

How to get documents within each document set from a document set library using powershell

I have to set a value of particular column for all documents in the ABC library. This library contains many Document Sets, within which there are different documents. #instance of Client Context ...
0
votes
0answers
91 views

PowerShell code to get managed navigation

I have written the below powershell code to get the managed navigation throughout the sites. ## SharePoint DLL [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") ...
0
votes
0answers
57 views

Version count not showing what it should do

$Upload = $DestinationFolder.Files.Add($FileCreationInfo) $Context.Load($Upload) $Context.ExecuteQuery() Write-host "Adding the meta data to the document in O365" $ListItem = ...