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)

2
votes
1answer
59 views

Set-SPOWeb -RequestAccessEmail

I found in this post that it is possible to Set-SPOWeb properties, in particular RequestEmailAddress. Obviously the guy did not dream it up and the number of upvotes suggests that it works for other ...
0
votes
1answer
22 views

Is there something similar to the PHP in_array() function in Powershell? [closed]

Is there a way of finding out if a given value is in an array without iterating through it? Something like the in_array function in PHP...
1
vote
1answer
45 views

Powershell: Is there a way to extract the Identity from a WSP file?

I want to automatically add and install some wsp files. To check if the file is already installed I (think I) need the identity of the solution that I am about to deploy. How can I extract the ...
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
30 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
39 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 = ...
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 ...
0
votes
1answer
60 views

Assign a field of type Date Only using powershell will always subtract one day

I have the following powershell script to create a copy of a item:- $web = get-spweb "http:*********" $list = $web.lists["Action"] $list2 = $web.lists["Risk Issue"] foreach ($i in $list.items) { $a = ...
0
votes
2answers
32 views

workflow that sends a reminder 10 days before start date field

I am trying to create a workflow that sends a reminder to the director approver in case he does not approve it 10 days before start date field. Here is how I initially though it: If current item ...
0
votes
0answers
33 views

using Item.Update() will not create a new version and will not modify the “Modified” & “Modifed by” fields

I wrote the following power-shell script to create an exact copy of an item inside another list:- $web = get-spweb "****" $list = $web.lists["Source"] $list2 = $web.lists["Destination"] ...
0
votes
1answer
27 views

Get info shown in user.aspx using powershell

I'm looking for a way to get a list of all my site users with powershell. I'd like to get the info shown in user.aspx and then query the SharePoint groups and AD group recursively.
1
vote
1answer
110 views

Export SharePoint Online list to csv via Powershell

I tried to export a SharePoint Online list to .csv by using this script: How to save a list in a csv file via Powershell Below is the script: ...
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 ...
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
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
2answers
55 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
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 ...
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 ...
7
votes
1answer
8k views

Remove a single user from all site collections in a web application using powershell

Is there a way I can choose to remove a single user from all site collections within a single web application using powershell. There are number of user profiles whose domain account has been blocked ...
0
votes
2answers
97 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 ...
3
votes
1answer
3k views

loop splistitem in folder in powershell

I'm trying to loop all splistitem in a folder of a library. I can get my library and have folder but i'm not able to get the items inside the folder. When i display the listitem for folder, i've the ...
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 ...
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 ...
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 ...
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 ...
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 ...
2
votes
1answer
1k views

Powershell, how to check if spuser object is user or group?

I have a powershell script which is fixing some corrupted userprofiles. But the results are also groups. I would like to skip the groups and fix only the users. How can I check if the spuser object 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
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.
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
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 ...
3
votes
1answer
43 views

Getting back-end data and displaying it in the client

My SP Admin level is strong. My SP dev level is beginner. I know some JavaScript. What is the best method of bringing Server and Farm information from the back-end to the client-side? For example, ...
5
votes
1answer
157 views

Powershell Delete only 1 item in Document Library

I have 300 files in my document library and I need to delete one of them, I cant use the delete out of box option and I though I can use PowerShell to force it. Can anyone have any idea about this: ...
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 ...
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 ...
1
vote
1answer
7k views

powershell to delete items from a list where created date < “1/1/2011”

Is there a quick powershell script to delete items from a list where created date is less than some date? Also, would the deleted items be in the recycle bin (in the event business team wants to ...