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)

6
votes
0answers
455 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 ...
4
votes
0answers
67 views

SharePoint Online Apps

I need automate deployment of apps from repository to SharePoint Online(Office 365). Is there any scripts for PowerShell or another way for automate deployment of Apps?
3
votes
0answers
27 views

Method GetAppInfoByName does not exist?

I am trying out the tenant APIs towards an on-premise SharePoint 2013 Server install. This server is up to the October 2015 CU. I following the guidance on Vesa's post: I registered the server-stub ...
3
votes
0answers
32 views

Access Crawled Property values using PowerShell

Is it possible to retrieve a list of values for a given crawled property? If so, how would this be achieved using PowerShell? For example, I have a crawled property called 'Forename' and I would ...
3
votes
0answers
286 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: ...
3
votes
0answers
1k 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
11 views

How I Export some managed meta data column of sharepoint Document Library using PowerShell

I am getting the value for my text field as i need but for my taxonamy column it also give guid id and my taxonomy column are multivalued so i want to export like as store in sharepoint document ...
2
votes
0answers
25 views

How can a document with version “1.0” have a status of “Draft”?

I have a set of documents which appear to have no problems in the browser, but when I inspect the properties of the document in PowerShell, it reveals that it is actually a Draft document: PS ...
2
votes
0answers
32 views

CheckIn large amount Items in overloaded Library

I have a O365 client that has 85,000 items in a folder structure in a library in their SharePoint online. Also they have hundreds of items that were never checked in and invisible for other users. I ...
2
votes
0answers
71 views

Adding a custom lookup field to new list doesnt add it to all associated content types

Ive searched for answers to this, and cant seem to pinpoint my problem here elsewhere. Basically what Im doing is that I have a PowerShell script which that, 1) creates a Content Type ...
2
votes
0answers
25 views

Can I get overall click count for entire SP2013 farm?

We are using SP2013 on-premise standard. There are over 50 site collections. By checking each site collection's popularity trend we can see each site collection's click count. However it is too time ...
2
votes
0answers
29 views

How to move search result source with powershell?

I have two development environments. I created search result source. I want to move result source from first environment to second environment. How can I do with PowerShell script ?
2
votes
0answers
82 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 ...
2
votes
0answers
91 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
107 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 ...
2
votes
0answers
154 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
325 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
20 views

How to rename a list-associated SPD2013 WF?

I have 20 sites that all have the same SPD2013 WF - it is a WF that executes on a specific list when an item is added or changed. We goofed on the naming of the WF and would like to rename the WF. Is ...
2
votes
0answers
678 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
303 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
544 views

DTD Error with Connect-SPOService

Just recently I cannot connect to my tenant admin with PowerShell. When I call Connect-SPOService -Url https://<tenant>-admin.sharepoint.com I get the following error: Connect-SPOService ...
2
votes
0answers
99 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
285 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
137 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
151 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
76 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
49 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
122 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
94 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
134 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
486 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
815 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
669 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
24 views

How to find total number of pages in a site and count of words in SharePoint site?

I am requested to generate a report that illustrates the number of pages and their corresponding URLs, plus the count of words on a page, and the number of files in that site (word, PDF, ...
1
vote
0answers
9 views

Can not deploy SharePoint app to SharePoint Online dev site using Powershell

$url = "https://TestSite.sharepoint.com" $username = "Testuser@testsite.sharepoint.com" $password = "Lidf$ijsd@f$" $appfilepath = "C:\temp\app.app" $Password = $password |ConvertTo-SecureString ...
1
vote
0answers
29 views

Changing Workflow Status from Error Occurred to Completed using Powershell

I have tried to Cancel and Restart Error Occurred Workflows using powershell script and it works fine. But, now I want to change the status from Error Occurred to Completed. I tried to search a lot ...
1
vote
0answers
23 views

Save a SharePoint 2013 workflow as template using code behind

We have around 100 SharePoint 2013 workflows in our Farm. We need to save these workflows. It is tedious to manually open Sites in Designer and go to each workflow and store it as a template. Is there ...
1
vote
0answers
31 views

Configure a Term Set to be used for this property

I am creating user profile properties by using powershell, on SP 2013 on prem. Some of the properties need to be configured with termsets, and I don't want to have multi value option. I am ...
1
vote
0answers
34 views

Powershell Query - Columns are missing While selecting Items from List

I am trying to get records from Office 365 SharePoint list using Powershell Script, through "Microsoft.SharePoint.Client.CamlQuery" query. It fetches all the items and the values. However, there are ...
1
vote
0answers
53 views

How to install app from app catalog using PowerShell?

Does anybody know a way of installing app from app catalog using PowerShell? There is an article on MSDN about adding apps: Add apps for SharePoint to a SharePoint 2013 site. It describes the way of ...
1
vote
0answers
14 views

Find out, if managed property is user generated or created by SharePoint via Powershell

We have a solution where several developers (from different companies) are working on the system and need to create a deployment solution. Now we finally have naming conventions (thank god), but at ...
1
vote
0answers
31 views

How does sharepoint deal with the column internal names as defined inside the site level Vs. as defined inside the list level

I want to move my lists items from one list "SourceList" to another List "Destinationist", so i write the following script:- $web = get-spweb "http://*****/teamsites/SoftwareDevelopment/" $list = ...
1
vote
0answers
31 views

Column 'TaskDueDate' does not exist. It may have been deleted by another user

I have the following Power-Shell script to copy an item from one list named "Action" to another list named "Risk Issue":- $web = get-spweb "http://***/businessfunctions/UserSupportDelivery/" $list = ...
1
vote
0answers
40 views

Sharepoint 2010 powershell applywebtemplate returns error

I want to create a site from site templates. I use this code: 1 $MainWeb = Get-SPWeb "http://sitecollection" 2 $SiteTemplates = $MainWeb.GetAvailableWebTemplates(1033) 3 $SiteTemplate = ...
1
vote
0answers
28 views

PowerShell to get all Managed Properties parameters

Get-SPEnterpriseSearchMetadataManagedProperty -SearchApplication $ssa | fl Name, Type, Description, FullTextQueriable, NoWordBreaker, Queryable, Retrievable, Sortable, RespectPriority, ...
1
vote
0answers
53 views

Get Internal Name of Item using CSOM in Powershell 2013 SharePoint Online

[Microsoft.SharePoint.Client.List]$list=$web.Lists.GetByTitle($listName); $qry=[Microsoft.SharePoint.Client.CamlQuery]::CreateAllItemsQuery() $items=$list.GetItems($qry) ...
1
vote
0answers
21 views

Wait for AddIn uninstallation

I'm in the process of writing some PowerShell script to do some work with SharePoint Online AddIns (.app), have a look at the image below: As you can see from the highlighted syntax, I'm telling ...
1
vote
0answers
16 views

Revert Index Location to Default

In SP2013, if you use a method such as this one to change the location of your search index, is there an easy way to revert it to the default location? Or do you have to do the whole process again and ...
1
vote
0answers
18 views

How to return only one user and date for Created By and Created Date column using PowerShell

I have a script that outputs to CSV all items and files from Libraries and Lists in a Site shown below: Add-PSSnapin microsoft.sharepoint.powershell $excludeLists = @("Master Page Gallery", ...