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
37 views

Upload and add a content editor web part in Search Center sub site using PowerShell

How to upload and add a Content Editor web part in Search Center sub site using PowerShell?I am having a .dwp file in my filesystem and I want to upload this into the results.aspx page of my search ...
0
votes
0answers
13 views

The content type “Excel based Status Indicator” is part of an application feature

I have written a small poweshell script to delete all the content types except some custom content types, But i am getting error while deleting "Excel based Status Indicator" feature. Is it possible ...
0
votes
0answers
68 views

SPWeb.GetFolder() with browser folder url failed

I am using powershell script and when I call SPWeb.GetFolder() with (short url) it works fine and when I used (browser url) it's not working. However it refers to the same folder e.g short url ...
0
votes
0answers
18 views

SharePoint 2013 Page Status Message

Is there a way to add status to a page(suppose home page) of a SharePoint site using PowerShell? I found ways to do it using javascript (SP.UI.Status) and server side code using c# ...
0
votes
0answers
35 views

Workflow “Error Occurred” After Task Reassignment Using Powershell

I had a task assigned to the wrong person in a custom visual studio workflow. Previously I have been able to reassign these types of tasks using Powershell and the following lines: $web = Get-SPWeb ...
0
votes
0answers
18 views

How to add specified web application to DNS by pinging it

I have created a sharepoint web application using powershell. I want to add my web application to default DNS. How i add it using powershell?
0
votes
0answers
88 views

Execute file Javascript with Powershell

I would like to schedule a script powershell that runs a js file, someone has an idea to realize it? I use Sharepoint 2013 Online. Thank you for your help var page = new WebPage(), testindex = 0, ...
0
votes
0answers
24 views

Updating scripts for creating Scopes + rules to create Result Sources + rule

I have a powershell script which was created to create Scopes and scope rules for a SP2010 environment. Now I have to create a similar script but for SP2013. It should create the same Scopes and scope ...
0
votes
0answers
40 views

What PowerShell script can I use to inventory all my lists, calendars, etc. for a SharePoint 2013 site

I have used the cmdlet Get-DocInventory within a PowerShell script which gave me every single document on my SitePoint 2013 site which was great ! However, I need everything above this level to be ...
0
votes
0answers
25 views

Programatically filtering SharePoint 2010 lists that may have files by base templates

I have identified the following list types and their respective BaseTemplates (see text in quotes) as those type of lists where users can upload files to: Documents Library: "DocumentLibrary" Asset ...
0
votes
0answers
224 views

Cannot find type [Microsoft.SharePoint.SPSite]: make sure the assembly containing this type is loaded

I'm trying yo Run this script ps1 from C# code but it returns me the following error where trigger "pipeline.Invoke()"; InitialSessionState iss = InitialSessionState.CreateDefault(); ...
0
votes
0answers
21 views

How am I supposed to get object Id for diff objects to be used for diff webservices in Sharepoint 2013?

Please refer to this documentation. It says that Ids are assigned to objects. How am I supposed to get these Ids? I see Powershell getting these for constructing xmls for diff operations. How is it ...
0
votes
0answers
55 views

Manage Powerpivot Data Refresh using Powershell

I have looked around quite a bit and haven't found anything on managing the powerpivot data refresh settings / schedule using powershell. Is this even possible? I would like to bulk update some of ...
0
votes
0answers
35 views

Working of PowerShell Import-SPWeb command with UpdateVersion Overwrite

As per technet site the 'Overwrite' value for UpdateVersions parameter does following : "Overwrite to overwrite the current file and all of its versions (delete then insert)". But my question is does ...
0
votes
0answers
82 views

PS1 Script Clone user permission , Exception on You cannot call a method on a null-valued expression

This script clones Users permissions given a Source user and a target User. It works perfectly in my test environment but not in production. #Function to copy user permissions Function ...
0
votes
0answers
196 views

Grant permission on multiple folders using PowerShell

Can you please help me to grant permission to different folders ? I used the following article : Grant folder permission(SharePoint) using powershell script but when I tried to grant permission for ...
0
votes
0answers
90 views

Iterate through items inside folders and sub folders in SharePoint Library

I have a SharePoint library with document sets on level 1. Then inside document sets I have Folders and some documents(word,excel,text) on level 2. Then again inside folders in level 2 I have some ...
0
votes
0answers
58 views

How to set default value to CT column using powershell

I want to set the default value to a Content Type managed metadata column, I want to set the default value using powershell and want to set it to hidden. How to accomplish this?
0
votes
0answers
92 views

Problem Starting 2013 Workflow from Powershell

I have a scenario where I need to kick off a 2013 SPD workflow from a powershell script. This should be possible using the StartWorkflowOnListItem method. My script is as follows: Add-PSSnapin ...
0
votes
0answers
30 views

How to add a Custom List to website using Powershell?

I am creating a custom list via powershell. After the creation I have to open IE go to a page and add the list manually. Is there a script that will add a list into a page?
0
votes
0answers
34 views

Adding custom SPGroup to all lists in Site using powershell

I want to add custom SPGroup as contribute permission to all the lists in a sharepoint site using powershell. all the lists are at root web of the root site collection. Need possible script to ...
0
votes
0answers
19 views

How to add SP Group to Managed Metadata Term Group using Powershell

I want to add Active Directory Group to Term Group using Powershell. I have found script to add AD Group to Term Group, but i want to add AD group to multiple Term Groups. Need powershell script to ...
0
votes
0answers
76 views

How to change text encoding when inserting values inside a sharepoint list using powershell?

I'm using french words with special characters like "é" "à" etc. When I trying to insert text in my list fields using powershell, it does insert the values but the characters aren't well encoded. For ...
0
votes
0answers
54 views

Ignore/Exclude file when using Export/Import-SPWeb

I'm using the Export-SPWeb and Import-SPWeb Cmdlets to migrate a few libraries between SharePoint servers. However, one of the files being migrated is a shared data source which is only valid on the ...
0
votes
0answers
447 views

Error: “Cannot index into null array”

I am getting this error while trying to get the list name Cannot index into a null array. + $clientlist = $web.Lists["Shared Documents"]; + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ...
0
votes
0answers
57 views

How to find sharepoint 2013 foundation site collection broken links?

How to find all broken links in a site collection in SharePoint 2013? Preferably with PowerShell
0
votes
0answers
15 views

Does STSADMIN support workflow migration?

I've been tasked to move several SP2013 sites/collections from our National farm to the International Farm. From what I can tell, STSADMIN backup/restore can handle this pretty easily. However, I ...
0
votes
0answers
51 views

open pdf in browser sharepoint 2013

I have a library of pdf file, I need to open those file in browser and not to download them. I tried to set permission to web application using those steps : ...
0
votes
0answers
15 views

How to delete all user profiles of users that are not group members

I have to delete all user profiles of users that are not in a specific ad group. How can I do that (with powershell)?
0
votes
0answers
31 views

Delete user properties under specific section - list all user properties in a section

I'm trying to delete all user properties under a section in user properties. How do I list all user properties in a specific section? Add-Type -Path "c:\program files\common files\microsoft ...
0
votes
0answers
41 views

List url property missing

We have 3 environments PRD, TST and DEV. Each environment is pretty much a clone as both TST & DEV were built from PRD. The other day I was testing a Powershell script and when I moved to PRD I ...
0
votes
0answers
52 views

SharePoint Online Management shell to add o365 Tenant Cloud group to Admin Group?

Is there any way to add an existing o365 Tenant Cloud group as System Admin to all Sites on our o365 SPO Tenant via power shell? I know we can do it with accounts. But apparently since o365 Tenant ...
0
votes
0answers
30 views

Configure peoplepicker across domians having two way trust

Hi I have a farm of 2 app servers 2 search servers and 2 front ends. Steps taken till now 1) Installed User profiles and crawled the successfully imported user profiles. 2) Ran the STSADM.EXE -o ...
0
votes
0answers
14 views

whats the best approach to copy andn sync lists - sharepoint 2013

I Have a list A and would create List B. I would like to copy List A to List B and then keep it synced. Any ideas? Thanks in Advance
0
votes
0answers
75 views

Generate PowerShell Tree View Report of SharePoint Folder Structure

I'm looking for a way to use PowerShell to iterate through all folders in all sites of the SharePoint farm and dump it out to a file that shows the folder structure in tree view. I've made several ...
0
votes
0answers
111 views

How to re-register Workflow Service in workflow manager 1.0?

I am using SharePoint 2013 Management Shell to re-register my Workflow Service due the following error I am having in Sharepoint Designer 2013: Microsoft.Workflow.Client.ActivityValidationException: ...
0
votes
0answers
41 views

Powershell, design manager, uploading html file not creating associated master page file

I am uploading a xyz.html file through powershell for 2 site collections, when .html file is uploaded and published it automatically creates xyz.master file. It is working fine for first site ...
0
votes
0answers
430 views

Unable to update the User Information list using Powershell

I am using the following Powershell script for updating User Information List in SP2013 environment. I am a member of Administrators group and also Site collection administrator. $Site = Get-SPSite ...
0
votes
0answers
31 views

Memory Leak for Update-SPSolution using Powershell Remoting and Sharepoint 2010

I use PowerShell remoting to deploy scripts ps1 for SharePoint 2010. I get Memory Leak in any cases using Update-SPSolution cmdlet. I get timeout error for deployment. And powershell.exe process in ...
0
votes
0answers
326 views

SP2013 - <nativehr>0x80070003</nativehr><nativestack></nativestack>

I successfully restored a backup from another farm a few of weeks ago using restore-spsite. I had to delete that site collection, now I want to restore it again with that same backup file. The 2 ...
0
votes
0answers
52 views

SharePoint 2013 Online: Adding webparts to a page with PowerShell

SharePoint 2007 --> SharePoint Online migration. Moving from teamsites that have web part pages as thier default.aspx location to SPO ones that use Wiki Pages. We're using a third party to do the ...
0
votes
0answers
214 views

How to iterate list items from two list using where in powershell script

I have two list from where i want to collect common items. I am not able to make use of $caml in my script. My script: Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue ...
0
votes
0answers
150 views

The profile synchronization status stuck stopping?

How to stop this stopping immediately in my SharePoint user profile, using powershell.
0
votes
0answers
298 views

Uninstalling farm solutions, will not remove the related site collection features

I am facing a problem which I cannot understand how to fix it. Now I have installed third party tools inside my SharePoint 2013 server. Then I wanted to remove them, so i went to "Central ...
0
votes
0answers
241 views

Export-SPWeb 'These columns don't currently have unique values' fatal error

I'm trying to export some webs via Export-SPWeb in powershell and I'm receiving: FatalError: These columns don't currently have unique values. The webs have been added to SharePoint 2013 but ...
0
votes
0answers
120 views

Last updated information in User Profile with time date in SharePoint 2013?

Is it possible to get the last updated date with time in user profile,if user updated their information,is there any default Columns available to get this type of information using power shell.
0
votes
0answers
140 views

How do you get Group/Permissions information for a subsite (that breaks inheritance) on a SharePoint Online Site Collection using Powershell

tl;dr version: Ultimately I can get a list of all Groups for a given Site Collection, but I can't tell which groups give access to which sites. Which is to say that, for a given subsite that has ...
0
votes
0answers
38 views

When cloning the search index component in SharePoint 2013, where should the root directory be placed?

I've got an index component in my search service application listed as "Degraded" status and they say the solution is to create a new one and replace the old one. But when using the ...
0
votes
0answers
100 views

BDC: cannot logon with credentials obtained from secure store provider

Hmm.. When I manually create a new contentsource, point it to the single sql database-bcs everything works OK (no probs) (via Central Admin) but... When i try the same via a powershell script I get ...
0
votes
0answers
144 views

How to retrieve BDC Identity from External List programmatically?

I need to do a lookup on an External List (in SharePoint Online - Office 365) to retrieve the value of the BDC Identity. BCS is talking to an OData web service. (I'm not a Visual Studio guy), so ...