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

0
votes
0answers
42 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
98 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
86 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 ...
7
votes
4answers
4k views

Automatically add pssnapin Microsoft.Sharepoint.Powershell

I am developing in Sharepoint and I like more Windows Powershell than Sharepoint Management Shell. Every time I restart the development machine, I have to run Add-PSSnapin ...
2
votes
1answer
84 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
0answers
27 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
25 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
16 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
77 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
2answers
54 views

SPCopyDestinationCollection.Add() Method Does Not Persist to the Database

I'm attempting to run a basic PowerShell script to fix a lot of broken "Send To" destination links that resulted from a site migration from one farm to another. I wanted to proof-of-concept this on ...
0
votes
1answer
80 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 ...
1
vote
1answer
496 views

Set group as secondary owner of a Site Collection

All is in the subject. Is it possible to use an AD group (instead of a user) as the secondary owner of a Site collection ? Both in graphical mode and with powershell (New-SPSite ... ...
3
votes
2answers
58 views

Access Denied from Migrated SP2010 -> 2013 Web App

I've migrated a web application's content database from SP2010 to SP2013. After the migration was complete, I am completely locked out of the web application. Navigating to the root site collection ...
0
votes
2answers
31 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
79 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
0answers
23 views

Need to get only items which have never checkdin

I am using this code to get ownership of the list items which are never checkedin, this works great. I need to get the items which have no version history. How do I specify in my Caml Query please? ...
0
votes
1answer
47 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
0answers
23 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
27 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
67 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 ...
1
vote
3answers
1k views

Export all the columns from Sharepoint list via Powershell

While exporting the data from Sharepoint via Powershell into a txt/csv file, I started to think, is there a way to choose all of the columns than writing all of the columns down to the code? because ...
1
vote
2answers
4k views

upload master page using powershell

What i am trying to acchieve is to write a script that will automatically update all master pages on all site collections in a certain web application. The only problem i am having is that when i ...
5
votes
2answers
490 views

SharePoint 2010 Documentor

Is there already existing a tool , I think "documentor" can be his name for Sharepoint 2010 that can output a form of documentation with a description of all db, web application , sites, sub sites , ...
1
vote
1answer
79 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
33 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
81 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
28 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: ...
11
votes
4answers
5k views

How to automate entry of external column data in BCS?

I have a document library, Resumes, that has a large number of resumes in it. There is a regular column on that library, called EmployeeID, that is already populated. I have an external content type ...
1
vote
1answer
102 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
36 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 ...
0
votes
0answers
38 views

Is it possible to restore a site collection using Import-SPWeb [duplicate]

I've exported a Site Collection from a content database using Backup and Restore > Recover data from an unattached content database: Site Collection: http://abc/sites/BS Site: No Selection List: No ...
0
votes
0answers
55 views

Subscription settings service application won't install with PS

Ran this script once on one farm with success but now on a new farm it won't run. I got this same error the first time I ran it. It doesn't matter if I run it again to remove it. Here is the ...
0
votes
2answers
68 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 ...
1
vote
1answer
96 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
1answer
346 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 ...
0
votes
2answers
33 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 ...
0
votes
1answer
39 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
45 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.
1
vote
1answer
61 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 ...
4
votes
0answers
38 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 ...
1
vote
2answers
137 views

SharePoint 2010 backup: differential size almost as big as full

My question is similar to this one except my full and differentials do not happen as often. I do a full once a week and a differential on weekday evenings. My differential backups at the beginning ...
1
vote
1answer
49 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 ...
2
votes
2answers
109 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
114 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
3answers
478 views

Make timerjob runs on specific server?

I have an already developed timer job that is running on front end servers, but I want to set it to run on application servers only. Can I do this with PowerShell without modifying any code of the ...
2
votes
9answers
1k views

“Specified Cast is Not Valid” in PowerShell When Getting a Display Group for Search

When run, this code returns an error on the last line "Error Calling GetDisplayGroup with 2 arguments, Specified cast is not valid". $site=get-spsite http://xxx/sites/xxx ...
2
votes
1answer
86 views

SP2010 - Scopes.GetDisplayGroup error, page visit required first?

I'm having a very strange problem with the Scopes.GetDisplayGroup() method returning a "Specified cast is not valid" error. This is a cut-down version of the code I've been using: $SPWebApp = ...
2
votes
0answers
37 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
1answer
51 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
55 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 ...