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
4answers
3k views

Copy Document library from one site to another with metadata preserved?

Is there a way to to move all items from one document library in one site to another document library in another site where even the metadata like Created,Created Date,Modified,Modified Date,Assigned ...
1
vote
0answers
17 views

How can I upload multiple Forms into Forms Library and set some values?

I have a forms Library with over 6k Forms in it and I created a new one. As I cant move them directly because almost everything has been changed in the new form (new fields, etc) I need to create a ...
1
vote
2answers
929 views

powershell to export list in sharepoint 2010

Please provide me powershell script to export the list from one web application to another web application. Only list structure need to copy like list name, columns etc not data
1
vote
2answers
48 views

Use of powershell with sharepoint

I was wandering what were the possibility of interaction between powershell and sharepoint. Almost all our documentation at work is on sharepoint and was wandering if I could access the metadata ...
1
vote
1answer
608 views

Cannot validate argument on parameter 'SBClientConfiguration'. The Service Bus connection string contains invalid property.

I am trying install workflow manager using powershell. I first downloaded the offline package using these steps: ...
2
votes
3answers
5k views

No Connection between SP2013 and Workflow manger

Goal: Install Workflow manager in order to use SharePoint 2013 workflow. Problem: When I try registrating between SP2013 och WorkFlow manager based on the code: Give this command ...
0
votes
0answers
33 views

Powershell copy a View from database and insert to existing Sharepoint list

I got a View, and a List of Sharepoint with same more of column. In Powershell at every Time Job I wan't add only this records, which are new, and add them to a list. Did You know any of scripts which ...
0
votes
1answer
233 views

people picker. It doesn't shows any AD users!

I have created a BCS instance successfully but when I try to search for a user or group to grant permissions or add an administrator for this instance,the people picker can't find users from Active ...
6
votes
2answers
5k views

How to return all user profiles

I need to query the entire user profile store and do multiple operations such as filtering based on one user profile property, sorting by another, and grouping on yet another. Is this possible using ...
0
votes
1answer
173 views

SharePoint CAML/PowerShell Not Updating or Deleting Items

I am using Nessus XML RPC to update a SharePoint site. I can add items to a list, but cannot update or delete. No error is returned. Variables: $strSharePointSite = ...
0
votes
2answers
72 views

Copy site collection without duplicating guids

On our DEV farm I've got a site collection containing a variety of sites and subsites within. Many of them came from our PROD farm. Now, I'd like to copy this site collection on our DEV farm back to ...
0
votes
0answers
159 views

Cannot convert 'System.Object[]' to the type 'Microsoft.SharePoint.PowerShell.SPSolutionPipeBind'

Getting this error when i try to deploy a .wsp to a SharePoint 2013 portal. Someone have any idea? Get-SPSolution : Cannot convert 'System.Object[]' to the type ...
0
votes
1answer
1k views

Approve Workflow Task With PowerShell [closed]

We have over a thousand approval workflows running and I would like to write a PowerShell script to go through and approve the items from the system account. I already wrote the script to get the ...
0
votes
1answer
1k views

Running script with powershell of Sharepoint Server without connecting to the Sharepoint Server

I have a folder in Sharepoint Server. In the folder, there is a script(.ps1 file), that I can run with powershell. It works fine with powershell, if I run it when I'm in Sharepoint Server. But I ...
3
votes
1answer
130 views

Powershell Command builder

I am trying make a c# application which runs sharepoint cmdlets in management shell 2010. I have tried below code: protected void ExecuteCode_Click(object sender, EventArgs e) { ...
5
votes
4answers
956 views

Deploying and Installing Sharepoint apps into App catalog using CSOM

Can anyone suggest me on how to use SP.AppCatalog() in JSOM or CSOM and get the all apps in AppCatalog, Not AppInstances..
1
vote
0answers
54 views

SharePoint 2013 Central Administration vs PowerShell Scripting

Which are the admin jobs that can only be done trough PowerShell scripts and not in Central Administration?
0
votes
1answer
169 views

powershell to check web template in sharepoint

I want to check on which webtemplate site is created. Like for site "xyz/abc.default.aspx" , I want to check on which web templated it was created. Can anyone provide me the powershell command to ...
1
vote
0answers
79 views

Rename metadata property in bulk

I have a document library with documents that are tagged with Metadata from the term store. I want to delete the term and rename all the documents with the tag 1.3 for example to 1.0. Deleting the ...
0
votes
1answer
4k views

Looking for a Powershell script to enable SharePoint Server Publishing on all sites in a site collection

I'm looking for a Powershell script to enable the SharePoint Server Publishing site feature on all sites in a single site collection or all site collections.
0
votes
1answer
1k views

how to get with powershell the list items which have old versions of a workflow running Part 2

After trying for several hours I am struggling with powershell to do this: Please see my previos question here: how to get with powershell the list items which have old versions of a workflow running ...
0
votes
2answers
87 views

Which of the foll. powershell script is correct way to install a timer job into SharePoint?

1: install-spsolution Solution.wsp -webapplication "webapplication" -GACDeployment –force 2: install-spsolution Solution.wsp -GACDeployment –force Which of above is best practice?
0
votes
1answer
1k views

how to export/import managed properties and mapping to align them accross environments

I have backed up a content db from prod to dev environments. Everything works fine, but I noticed the managed properties are not aligned across environments Obviosly I dont want to do this manually ...
0
votes
1answer
368 views

how to get with powershell the list items which have old versions of a workflow running

I have in the following screenshot many workflows, but some of them are abandoned by the users and I need to identify which ones. As I cant install sharepoint designer, then I need to do this with ...
2
votes
1answer
184 views

Check out to document owner using powershell

I have a document library with 200 + documents. I would like to check out all documents in the library to the document owner. I have seen a few powershell scripts that check in documents but not ...
0
votes
1answer
30 views

How to create setup for Sharepoint 2010 web application

I have patch 1 until 3. To do the installation for each solution package may take a long time which is it is needed a long step. So, is there any solution or tools that I can simplify the ...
2
votes
1answer
281 views

Upload user profile images from desktop to sharepoint using a windows service

All, I was so glad to find this community. I am sharepoint newbie and just started working on Sharepoint 2013. My task is to upload and set user profile images which are saved in a local disk (share ...
2
votes
1answer
752 views

Set SPNavigationNode to open in a new window using PowerShell in SharePoint 2013

Based off of several blog posts I attempted the code below: $n1 = New-Object -TypeName "Microsoft.SharePoint.Navigation.SPNavigationNode" -ArgumentList "People", "http://myURL", $true ...
1
vote
1answer
786 views

SharePoint Doc Library Batch Delete

I am trying to write a batch Powershell script to delete the items from Sharepoint Document Library. I could not delete them because I have to reference owsfileRef field in batch command as per the ...
0
votes
0answers
96 views

Powershell Script to get UPN of O365 Users from thier emails?

Has anyone developed a Powershell script to get UPN of the O365 Users, provided we have their email address? Suggestions are welcome!
0
votes
1answer
603 views

The following exception occurred while trying to enumerate the collection: "Access is denied

I have the following powershellscript, and I would like to rewrite it so if it finds this exception it should continue to the next web. $webapplication = Get-SPWebApplication ...
0
votes
1answer
66 views

Unable to remove site collection: Operation failed due to an error in Identity Mangement

I've restored a site collection to a different SharePoint farm. Now i am trying to delete the site collection: Using Powershell: Remove-SPSite http://farm/sites/Site_Collection Error: ...
0
votes
1answer
51 views

Does a sharepoint administrator have to be a server administrator?

Specifically, I am looking at giving a user the permissions to run PowerShell commands, on a SharePoint 2013 server, remotely from their PC. The user was a sharepoint administrator on sharepoint 2010 ...
1
vote
2answers
2k views

Using powershell, get the pagelayout name for a given aspx page in the Pages Library

I am writing a powershell script to list out all the pages in a given Pages library. But I would like to get only those pages with a given pagelayout. Is it possible to get this information from the ...
4
votes
1answer
1k views

Disable site collection health check rule

Is there anyway of disabling/bypassing a site collection health check rule. For example, I want to bypass Missing Site Templates rule when I upgrade a site collection in SP 2010 mode to SP 2013. For ...
0
votes
2answers
50 views

How to find how many site colections are active in a web application using console application

I need to retreive how many sites are active in a web application using either powershell code or console application. Require the code ( also need how many users have accessed the active site ...
1
vote
1answer
194 views

PowerShell command to get list of documents where users x and y has permissions?

I would like to get a list of documents where user x and y has permissions. Can someone help me? I would like to do it in either PowerShell or C# code.
0
votes
1answer
53 views

How to retreive last 10 users who have logged in a site using Power shell script?

I need to retreive last 10 users who have logged in a site.(I need to chek in each site under a webapp who are the last 10 users to log in). and export it to a csv file.Require code in powershell.
1
vote
1answer
5k views

2013 Content Index Reset Timeout

I'm having a problem when I try to reset the content index in SharePoint 2013. When I try to reset the index from the 'Search Administration Page', the page hangs for about a half-hour then returns ...
1
vote
1answer
345 views

Get-SPShellAdmin doesn't work

Tried to create a new SharePoint 2013 farm with a ps script and got this error. The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered. Found the resolution was to ...
1
vote
0answers
247 views

How can I count the number of posts & comments in a SharePoint 2013 newsfeed?

I need to count the number of posts & comments in a SharePoint 2013 newsfeed webpart on a page in a site. At the moment I can't see how to do this via Site Settings -> Report or Site Settings -> ...
4
votes
1answer
69 views

Any way to figure out whether a site was created via Self-Service Site Creation or “regularly”?

Is there any way to figure out whether a site was created by a user, using self-service site creation or by an admin by Central Administration or PowerShell? I tried looking through the ...
2
votes
2answers
464 views

List Template does not show up in PowerShell

I have about 15 List templates in the (gallery > List templates) and none of them show up when I run following script: $web.ListTemplates | ForEach{ write-host $_.Name } I think that is the reason ...
1
vote
1answer
158 views

PowerShell Metadata Navigational Menu of Simple Links from a Table stuck in Second Gear

Currently I have it working for 2 levels of simple links. Actually no links are in this version. I have been able to create a submenu but not a sub-sub-menu. I believe it has to do with the way I ...
1
vote
1answer
637 views

Cannot iterate over users in site collection with powershell; unspecified error

I am using this fine script to build a script, which iterates over all sitecollections in a web application. The purpose of this is, to list all users, with their permissions, and from which objected ...
2
votes
0answers
48 views

How to speed up saving a list as template

I want to save a library as a template. For this I use the following PowerShell code $id = [Guid]::NewGuid() $templateName = [String]::Format("{0}-{1}",$list.Title,$id.ToString()); ...
2
votes
2answers
362 views

PowerShell Script To Find Where SharePoint 2010 Features Are Activated

I want a PowerShell script to find where Features are activated in a site collection and its sites/subsites Like for example feature "Enterprise feature"
1
vote
1answer
888 views

Suppress PowerShell Warning

How can I get rid of these warning? If these warning cannot be eliminated how can I suppress them? For instance, the warnings happen at this line: $sourceWebSite = Get-SPWeb -Limit All -Identity ...
6
votes
3answers
3k views

Problem with SP2013 solution scope: WebApplication vs GAC

I have a SP2013 solution that contains a custom WCF service, custom Timer Job and a Feature Event Reciever. Because of these the solution Assembly Deploying Target is set to GlobalAssemblyCache. The ...
0
votes
1answer
109 views

Can't get any SharePoint services thru PowerShell

I'm trying to grab the Distributed Cache service using PowerShell so I can change the managed account that runs it. This cannot be changed through the CA UI. I am not able to get the service using ...