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
2answers
105 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
260 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
231 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 ...
0
votes
1answer
140 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
134 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
107 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
55 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
69 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
45 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
54 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
97 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
34 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
90 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
0answers
29 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
89 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
29 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
14 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
31 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 ...
0
votes
0answers
50 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
40 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
147 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 ...
0
votes
1answer
79 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 ...
0
votes
0answers
162 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
88 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
368 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
71 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
1answer
43 views

Change filter value on a view on multiple libraries

Is it possible to change a value on all libraries within a site. I have multiple libraries where the term name in the store has been changed. However in libraries I have documents tagged with the ...
0
votes
1answer
83 views

System.SecurityString

I have a function requiring a secure password as a parameter: function Create-List { param ( [Parameter(Mandatory=$true)] [string]$Username, [Parameter(Mandatory=$True)] ...
0
votes
0answers
36 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
29 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
1answer
52 views

Tenant level configuration changes using SPOL Powershell

We can import the search configuration for a site collection to replicate the search settings. Can we do the same for tenant level search settings? Or can we change individual property of search ...
0
votes
1answer
47 views

SPWebPartManager.SaveChanges throws an error

I a getting the following exception when I try to update the view of a web part. Exception calling "SaveChanges" with "1" argument(s): "Object reference not set to an instance of an object This is ...
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
92 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
1answer
85 views

Register-SPWorkflowService in SharePoint Foundation 2013

When I am using management shell(admin) the error "SPWorkflowService is not register with cmdlet" is showing up. Is it possible to configure SP Workflow Manager in SP Foundation 2013?
0
votes
0answers
55 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
1answer
135 views

Calling userprofileservice.asmx using Powershell

I need to update a property for a user in SharePoint User Profile Service but cannot to do this through the UI in Central Admin. So I want to perform the update using Powershell and the ...
0
votes
0answers
103 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
62 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
56 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
1answer
249 views

Update User Value in List Item with Powershell

I have a column in a list that holds the Sharepoint ID of a user (as a string.) I have a script that takes that ID and grabs the SPUser object. I would like to update the value of another column as ...
0
votes
0answers
30 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
1answer
48 views

How to find out per PowerShell Script if a Solution is activated and where it is activated

i have a Solution with the name My.Solutionname as the result of it i have a WSP with the name My.Solutionname.wsp It includes one Site and one Web scoped Feature. I have a SharePoint 2013 Farm ...
0
votes
1answer
34 views

Setting Managed Propety Refinable Option with PS

I'm trying to configure managed properties through PowerShell but there's one particular parameter that I can't figure out. I want to make a certain property refinable but none of the commands listed ...
0
votes
1answer
77 views

Determine via code if workflow is stuck in error state

There is a workflow (Visual Studio and SP 2010 style WF) that seems to be getting stuck every so often when it errors. I see the item in the WF history for the list item saying something like "An ...
0
votes
0answers
46 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
85 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
450 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
177 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 ...