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)

3
votes
0answers
315 views

Update Custom Forms with Powershell

I'm trying to update custom forms of SharePoint lists in a large amount of SharePoint 2010 subsites with powershell. I'm not quite sure what the correct approach is. The form itself can be found as ...
2
votes
0answers
27 views

How to use kerberos for remoting powershell

I am trying to set up a remote powershell session to a sharepoint server in order to do remote management. I am running as a user with full mgmt rights at the sharepoint server If I use Credssp and ...
2
votes
0answers
32 views

Scheduling tasks for SharePoint Online

As we are venturing into the Office 365/SharePoint Online world, there will be the need to run some routine maintenance scripts on schedule. For example, adding a service account as an administrator ...
2
votes
0answers
41 views

SharePoint microfeed cant be migrated?

I just used a 3rd party software to migrate Project sites data from 1 SharePoint site to another. Worked like a charm except for the microfeed. The tool doesn't support migration of microfeed. Anybody ...
2
votes
0answers
341 views

Unable to remove app from SharePoint 2013 site

I've seen this problem in several places in our dev and test implementation of SharePoint 2013. Especially in sites where there has been a lot of testing where people uninstall and install apps. The ...
2
votes
0answers
183 views

Usage and Health Data Collection using SQL Authentication

I'm having an issue with trying to set my Usage and Health Data Collection to use SQL Authentication. I have tried setting my database credentials to SQL Authentication using both Powershell and ...
2
votes
0answers
473 views

How to delete a Task that is associated to an item and workflow that have been deleted

I have a task that is associated with an item (in another list) that has a running workflow. However, the item was deleted over a year ago and therefore it is no longer recoverable from the recycle ...
2
votes
0answers
198 views

PowerShell script to update ContentType of existing records in Document Library

we are using Document Library in SharePoint 2010 environment. there are about 200 document present in the document library which have been identified (based on location - England and employee type - ...
2
votes
0answers
70 views

update GeoCodes latitude and longitude in sharepoint 2013 with powershell

I am trying to update the latitude/longitude via powershell but can't get it to work. I am basically hitting the bing service with an address retrieving the longitude/latitude then trying to assign ...
2
votes
0answers
223 views

Copying Modified Date in Window Explorer from Powershell

I have the PowerShell script which download Documents from SharePoint Document Library.i want to copy the modified date of documents including folders to the window explorer. Where I am going wrong ...
2
votes
0answers
107 views

Download Root level folders starting with A to J

I have the following script to download documents from document library. Is there any way I can download folders starting with A to J from root level which should include all of their sub folders from ...
2
votes
0answers
107 views

Powershell list.workflowassociation not working right

I encountered recently a weird problem. I'm using a powershell script to : - save all workflows autostart properties (from all lists/webs/sites) - make modifications to items in the lists - restore ...
2
votes
0answers
57 views

Managed Metadata import/export in subsites

I am attempting to export/import the managed data in a library of a subsite on my intranet. When I attempt to use the taxonomy tools that are up on Codeplex, or when I use code such as this, I am ...
2
votes
0answers
47 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
0answers
92 views

Not able to connect to service with windows account in mix mode authentication

I am trying to connect web service in mix mode/claim based environment with powershell, Below is the sample code for your reference, $WebSrverUrl = "sharepoint:2013/_vti_bin/authentication.asmx" ...
2
votes
0answers
81 views

Is it possible to read the contents of deleted folders in the RecyclingBin?

I've been playing around with scripts that read deleted files from the recycling bin such as the one below but I can't figure out how to read the files within a deleted folder without restoring it ...
2
votes
0answers
102 views

How to assign the metadata for folders and sub folders

I am migrating the SharedFolders and files from Windows to SharePoint Library. So here i am able to add metadata for only files, but not for folders. Here the below is the code i tried for adding ...
2
votes
0answers
379 views

Configure welcome pages on sites and subsites with powershell

I have to configure the welcome page for all my sites, and sub-sites. Is it possible to add content in the welcome page ? I mean : a little text, a calendar, and sections on the page's right side ...
2
votes
0answers
993 views

Move-SPUser : pixels

Migrating users from one domain to another, I get this error on a couple of users. The migration still seems to occur. Move-SPUser : pixels At D:\UserMigration\MigrateUsers.ps1:10 char:28 + ...
2
votes
0answers
651 views

New-SPSite gives ERROR: Failed to OpenThreadToken, LastError=1008 in Timer job

I have a timer job that is running some powershell. The script creates a content database and then attempts to create a site collection. If run from powershell prompt the script works fine. If I ...
2
votes
0answers
1k views

Workflow failed to run after pause - SP2010

I am trying to fix a paused workflow issue following this KB Article from Microsoft. http://support.microsoft.com/kb/2674684 However, when I try to run the powershell command I get this error as ...
2
votes
0answers
569 views

Getting Null returned from taxonomy field in PowerShell?

I am trying to update a metadata field when adding an item to document library. All the other columns are updating. The error is on this line and basically $taxfield is returning null. $taxField = ...
1
vote
0answers
23 views

Problem when running PowerShell

I've a PowerShell script file to create results source. It works well on staging, but has some problems on UAT. First of all is the trouble with Get-SPSite. I've managed to resolve it. However, when I ...
1
vote
0answers
16 views

GetListItems isnt working for library with metadata - PowerShell

So after searching over and over on the net for a reason for my problem. I decided to post it here. I'm trying to get all the items in my list that are in a subsite. In that subsite there are 3 ...
1
vote
0answers
25 views

Create document library with look up and multi line text box feilds using powershell

Remove-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue #To which site u want to create the list ...
1
vote
0answers
23 views

Disadvantages of starting a remote powershell session and doing deployment

Are there any disadvantages in starting a New-PSSession from dev machine and deploying the wsp to QA machine remotely rather than going to QA machine and deploying the wsp?
1
vote
0answers
50 views

New-SMBShare : No mapping between account names and security IDs was done

I am creating Shared folder and want to set permissions on it with SharePoint farm account and App_Pool Account as below: $FullAccessAccounts = "domain\farm,domain\app_pool" $ReadAccount = ...
1
vote
0answers
19 views

Remove Replicating directory changes on a user - AD - powershell

I'm having problem in my production environment with User Profile Synchronization Service that is stuck on starting. I'm not able to reach the AD but the hosting company does. I think they might have ...
1
vote
0answers
48 views

SharePoint Online 2013 - How to upload a new page layout into master page gallery using powershell

I have created a new custom page layout with custom content type using SharePoint designer 2013 and downloaded a copy of it. Now I have to upload that to another environment using PowerShell. The ...
1
vote
0answers
51 views

How to set “ShowField” in peoplepicker using powershell

Does anyone know how to set "ShowField" in people picker using powershell ? For ex.x, to set the "Required" property, we can user $SiteColumn.required="true" , but for showfield, ...
1
vote
0answers
23 views

Editting a Search Results Web part changing the result source CSOM

I am doing some CSOM powershell to edit a search results web part and change the result source. Don't really know where to start with this as I am new to the world of CSOM powershell. Any help would ...
1
vote
0answers
26 views

Update Workflow with PowerShell

I have a MOSS 2007 environment which we are upgrading to SharePoint 2013. I have a lot of Designer Workflows in 2007 that usually involve simple activities like sending mail. However some of the mail ...
1
vote
0answers
42 views

Unable to add link in the Summary Links web part by power shell script

I want to add links to the summary link web part using the power shell script. I have found a script for it on this link, but is it not working as per the requirement. I have a publishing website and ...
1
vote
0answers
92 views

Install app for SharePoint using PowerShell - permissions on user profiles

I'm trying to install our app using the PowerShell and after running the application I get an error while accessing the user profile data. We are using the following permissions in our app: ...
1
vote
0answers
34 views

Deploy a file to the “Forms” folder of a Document Library using Powershell

I am dynamically building up a file that I then want to upload to SharePoint 2013 using PowerShell. I want to upload this file into the "Forms" folder of a Document Library - So not into the Document ...
1
vote
0answers
140 views

Executing PowerShell script from SharePoint 2013 WebPart

I've been trying to execute my powershell code from a button click on a SharePoint Webpart. I came across this solution on a forum post. private string RunScript(string scriptText){ Runspace ...
1
vote
0answers
96 views

Activate Site Publishing Features via Powershell for SharePoint 2010 throws exception

We are having trouble activating the Publishing Site Features via Powershell. The 2 features we are trying to activate are: PublishingSite PublishingWeb We are executing the following Powershell: ...
1
vote
0answers
73 views

Powershell Script to Stopfollowing not work

I found this script at MSDN forum [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Server") $web = Get-SPWeb https://www.contoso.com/teams/yourteam $context = ...
1
vote
0answers
74 views

SharePoint 2010 Powershell unable to get the title of SSRS Report viewer webpart

In SharePoint2010, I dragged and dropped two webparts on the page "Performance point filter(PPS)" webpart and "SSRS Report viewer" webpart. I am trying to connect the two webparts programmatically. ...
1
vote
0answers
72 views

How can I retrieve permission levels for site and list using powershell?

Sharepoint 2007 Powershell. I have a powershell script that checks the permissions of a 2007 site collection and outputs it to an xml file. The script is taken and modified from here: ...
1
vote
0answers
64 views

How to Hide default Authentication Providers in SharePoint 2013

I am using Claim Provider authentication and I tried to hide default authentication provider based from People picker using powershell. I copied the following powershell script from Steve Peschka blog ...
1
vote
0answers
64 views

Unable to add the webpart in web part page in sharepoint 2013

I am Unable to add the webpart in web part page in sharepoint 2013 below is the error message: An unexpected error has occurred. Technical Details Troubleshoot issues with Microsoft SharePoint ...
1
vote
0answers
28 views

How do you create a PageFieldFilterWebPart by PowerShell?

I'm trying to create a PageFieldFilterWebPart by PowerShell. If I use the PageContextFilterWebPart I success to create it, but I can't configure it. Anyone who have done this? If I success with this I ...
1
vote
0answers
46 views

PowerShell code to check if the document have IRM

It's possible check with PowerShell if a document have IRM?
1
vote
0answers
42 views

Can we disable /Hide Skydrive from SharePoint Farm On premises

Is there a way that we can use power shell (Not custom delegate control) to hide/disable the Suitelinks from the complete SharePoint farm .We achieved that in one site collection using CSS but as we ...
1
vote
0answers
60 views

Get master page object in Powershell / Update master page containts using Powershell

I have to create one Powershell script. This will iterate though all the sites/subsites in one site collection and access master page used by the site. Once i get it, i have to update that master page ...
1
vote
0answers
74 views

How to compare field changes using powershell to iterate thru the version history

I need to be able to to notify users daily whenever an update to a list item has changed, and give them a list of fields that have been changed. I am using powershell to do this, and send out an ...
1
vote
0answers
330 views

Can't update SPField through PowerShell - object has been updated by another user since it was last fetched

I get the following error when trying to update the choices for a Site Column: "The object has been updated by another user since it was last fetched." I get this error if I try to add a new choice ...
1
vote
0answers
338 views

Update managed metadata Multi Value

I have a list which uses a managed metadata column, that is configured to have multiple values. I need to update the particular items in the list which have a specific term, and change it. For ...
1
vote
0answers
165 views

Missing server side dependencies and MissingSetupFile error with missing Site

A while ago I deployed a feature to my site that included a JavaScript file. I have since removed the file from the feature. I have also deleted and recreated sites within the mysite webapp. I have ...