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

I am trying to consume a webservice method of a sharepoint online site from powershell,it gives web exception

below is the code.. Add-Type -Path "D:\dll\Microsoft.SharePoint.Client.dll" Add-Type -Path "D:\dll\Microsoft.SharePoint.Client.Runtime.dll" $plainpassword = "xxx" $Securepassword = $plainpassword | ...
1
vote
1answer
28 views

Powershell change all file extsions in folder

I need to change ~500 .html files to .aspx however I do not know how to do so through Powershell and I have not seen any other feasible way to do so. Folder location: \ ...
0
votes
0answers
28 views

Can i add a new version for my Issue tracking list items using powershell, and pass the system generated info to it

I want to add a new version for an issue tracking list items using powershell. now i have the following case:- I have 5 issue tracking list. and i want to merge these lists' items inside one list. ...
0
votes
1answer
35 views

Cannot access the local farm. Verify that the local farm is properly configured

Am getting error when I tried to access the SPSite object in ISE Window: My environment version : SP 15.0.4569.1506 Installed add-pssnapin "MICROSOFT.SHAREPOINT.POWERSHELL" $msite= ...
2
votes
1answer
60 views

Error :- Unable to index into an object of type Microsoft.SharePoint.SPListItemVersion

I am working on an Issue tracking list inside SharePoint team site and i need to modify the "Editor" & "Modified" fields for an existing item's version comment:- so i wrote the following ...
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
1answer
45 views

Setting a TimerJob Property via Powershell

I am currently adding a Property to my Timerjob in FeatureActivated via C#. This is my code. public override void FeatureActivated(SPFeatureReceiverProperties properties) { ...
1
vote
3answers
37 views

How to edit “Author” column in a document libary using powershell?

I copied files from a document library to another using powershell. But in new document library, for all files, created by column is the system account. I want to update this value to author of the ...
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) ...
0
votes
1answer
30 views

Copy file from on site collection to another with powershell. Problem deleting local temp file

I'm trying to copy a file from one site collection to another. I download my file to my local server and then upload it to the target site. My problem is that in the last step, the temporary local ...
1
vote
1answer
39 views

How to remove an orphan site collection in the SharePoint (2010) config DB?

An error occurred when trying to create a site collection with my PowerShell script and now I'm unable to delete this site collection in order to try again. It appears that I've got an orphaned site ...
0
votes
1answer
34 views

HowTo Add an Alias to a Search Managed Property using Powershell

How can I add an Alias to a SharePoint Search Managed Property using PowerShell? I can see it using the GUI, but I cannot find anywhere where I can add an alias to a SharePoint Search Managed ...
0
votes
2answers
95 views

create list template from list in SharePoint online & download the template using CSOM in Powershell 2013

Trying to create a list template from custom list using Powershell in SharePoint online and trying to download the template on my local machine. How to create list template achieve above requirement ...
0
votes
0answers
58 views

Get xml data using GetWebpart2 from Webpartpages.asmx in powershell in sharepoint online site

I am trying to get the xml of the webpart from SharePoint Online site using webservice Webpartpages.asmx Below is the code Add-Type -Path "D:\dll\Microsoft.SharePoint.Client.dll" Add-Type -Path ...
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 ...
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 ...
0
votes
1answer
40 views

Move-SPSite: Cannot find an SPSite object with ID or Url

One of my sites has grown large, and I want to move it to a new Content DB. I've created a new content db, ResearchDB, successfully added it to SharePoint (New-SPContentDatabase), and checked ...
1
vote
2answers
54 views

Customize SharePoint 2013 and Office 365 suite bar without editing master page in SharePoint designer

I want to change the company logo on suite bar in SharePoint 2013, but the system administrator has turned off the Master Page editing function in SharePoint designer, I was asked to make an CSS Style ...
0
votes
1answer
30 views

How to change SharePoint quick nav category label using powershell

I have written a powershell script to go through all the sites in a site collection and pulling their quick nav bars. I would like to change the category names in the quick nav, not the links. Here is ...
0
votes
0answers
14 views

Multithreading - activate / reactivate feature on 1500 personal sites - powershell

Need some help to do a re-activation of a feature on 1500 personal sites. My script are to slow and need some performance boost. Anyone with some multi thread expertise? I've looked at some examples ...
2
votes
1answer
48 views

You cannot call a method on a null-valued expression. InvalidOperation: (GetAssociationByName:String)

When trying to run this Powershell Script I'm getting an error: Param( [parameter(Mandatory=$true)] [alias("url")] $siteurl, [parameter(Mandatory=$true)] ...
0
votes
0answers
32 views

How to change content organizer settings via powershell in SharePoint 2013

I have been able to programmatically, via powershell, activate the "Content Organizer" feature. I can also create rules via powershell. However I am struggling to find out how to alter the default ...
0
votes
0answers
31 views

Connect WebParts Programatically using powershell in sharepoint 2010 is not working for Data Form webpart with querystring webpart

In Sharepoint 2010 using powershell trying to connect webparts. I have to connect query string filter webpart with the DataFormWebpart through powershell Its always connecting to the first field in ...
1
vote
1answer
43 views

Powershell Script to count a text present in a URL

I am new to Powershell trying to learn the basics. I have been provided with some sample code which I am unable to understand. If anyone can provide detailed step by step explanation of the code, it ...
1
vote
1answer
33 views

How to resolve errors with Event IDs 6482 and 6398 in SharePoint 2013?

In my event log I see this error generating every minute (Event ID 6482): Application Server Administration job failed for service instance ...
0
votes
1answer
45 views

This solution contains resources scoped for a Web application and must be deployed to one or more Web applications

Hi don't mark this question as duplicate or replicated. Because I have googled a lot for this error and I have found solutions which can work my Install-SPSolution command. However what I am looking ...
0
votes
0answers
28 views

How to get newsfeed entries with powershell?

Is it possible to use powershell to get the latest newsfeed posts for a user? How can this be done?
0
votes
1answer
38 views

Get document metadata with powershell

I get my document with : $doc = $web.GetFile($docUrl) Can you tell me if there is a method to get specific metadata on document? Thanks.
1
vote
2answers
54 views

PowerShell script to download images by item field value

I've found this great script that downloads all images and their folders from a given library. I'd like to update it so that it only gets images that have a certain value for the product code. ...
0
votes
1answer
53 views

Remove Workflow Manager scopes?

Is there any way to remove additional scope that get's created when you create a connection to multiple SharePoint Farms from a Workflow Manager service server? Register-SPWorkflowService -SPSite ...
0
votes
0answers
11 views

Unable to view Designer 2013 WF associations in list via powershell

I am trying to set the AutoCleanUp values on WF that have been deployed to a SP list via SharePoint Designer 2013. The workflows are all 2013 workflows and list workflows. When I access the list and ...
0
votes
0answers
25 views

Script Output Displays Inconsistent Time for Modified Date Column Powershell

I have a script that outputs to CSV all items and all files from a site shown below. This script also displays current and previous versions of a file: Add-PSSnapin Microsoft.Sharepoint.Powershell ...
0
votes
1answer
43 views

Get-SPServer shows that all servers in the farm except itself need to be upgraded. Is there a problem?

This morning I was reviewing the SharePoint Health Analyzer alerts and came across an error that one of my non content databases (Search) was "in compatibility range and upgrade is recommended." I ...
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", ...
1
vote
1answer
45 views

How to hide user properties on my site?

I am using SharePoint 2013 on-prem. In the User Profile Service Application > Manage user properties, the properties can be hidden from users my site by unchecking the check boxes under "display ...
0
votes
0answers
27 views

Export-SPWeb: Unable to export some lists

I'm using the following script to export some lists: foreach($spListUrl in $deploymentXml.Configuration.Lists.ListUrl) { Export-SPWeb -Identity $pwaSiteUrl -ItemUrl $spListUrl -Path ...
0
votes
2answers
24 views

I am getting Cannot find an SPSite that contains the following…Error

I have a PowerShell script below: Add-PSSnapin Microsoft.SharePoint.PowerShell function Get-DocInventory([string]$siteUrl) { $web = Get-SPWeb "http://contoso.com/sites/Test10" ...
1
vote
2answers
52 views

powershell - get display name from person or group type field

The following code gives me the domain\username but I need to get the display name of the user. any idea? $($item["Manager_Name"]) Thanks
0
votes
0answers
16 views

Submitting files to OfficialFile.asmx using powershell

We have SharePoint 2013 on prem. I'd like to use powershell to submit files to a the content organizer on a site. Most of the examples I'm finding on the web are in C# instead of powershell. Does ...
1
vote
1answer
41 views

Set URL using powershell list add

When creating a new library using PowerShell the URL of the library is not the same its name. What parameter do I need to specify to set the target URL? $WebUrl = ...
0
votes
1answer
42 views

delete specific user from user profile db - powershell

I have some user accounts in the user profile db that I need to delete using powershell. user accounts are jsmith; bsimmons; boilers; nholmber, bburton
0
votes
0answers
95 views

Query Sharepoint Audit Log Powershell

I have written the following script to query audit logs, for getting when a particular document accessed and what was the event: cls Start-SPAssignment -Global $var = 1 Write-Progress -Activity ...
0
votes
0answers
26 views

Project Server 2013 CSOM cannot change ProjectData page size for specific EntitySet

I am trying to increase the default page sizes so that I can get 500 results instead of 200 results when showing ResourceTimephasedDataSet entries. I am having trouble setting the correct setting in ...
0
votes
1answer
16 views

Enable Health Data Collection via PowerShell (SharePoint 2010)

I'm trying to automate as much of our SharePoint builds as possible, but there is currently one part I'm getting hung up on. Right now, my event log is filled with error 6398 and error 5586, which ...
0
votes
1answer
70 views

Please help Import-SPWeb Error

I am getting error when importing a publishing site. from production to my development server. following is the error. Import-SPWeb : Requested value 'PublishingPages' was not found. At line:1 ...
0
votes
0answers
20 views

How to speed up feature re-activation?

Upgrading my solution in production takes forever and I'm looking for ways to improve the typical feature reactivation upgrade scenario. What actually goes on in the features vary greatly and I'm ...
0
votes
0answers
68 views

How to programmatically cancel a workflow with a specific history using powershell or SharePoint.Client api

The context is as follow: We are using SP 2010 and I have a large number of workflows associated to list items that are at "Running" state. Some are waiting for an event to happen (normal behavior) ...
1
vote
0answers
35 views

How to Display Modified Time and Modified By Fields Correctly with Powershell

I have a script that outputs to CSV all items/files from all Lists and Libraries. In addition, it displays the current and previous versions of an item/file. This also displays which user modified the ...
0
votes
0answers
13 views

Webtemplate PowerShell Sharepoint online

How to upload my own template.wsp on default WebTemplate, where is $ST#0, $BLOG#, etc.. ? Is it that possible?