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

What's the c# equivalent of New-SPClaimsPrincipal in powershell

I am using following powershell command to get AD group claim from FQDN of AD grp $ADclaim = New-SPClaimsPrincipal -TrustedIdentityTokenIssuer "trustedIdentifierName" -ClaimValue ...
0
votes
0answers
50 views

The specified user could not be found." with EnsureUser with Powershell

I was trying to get a user with EnsureUser to make sure that if the user doesn't exists on the site collection, it is added right away. Write-Host "LoginName" $usernameau #this prints ...
0
votes
0answers
14 views

Add custom tiles to waffle menu in O365 using Powershell Script

I have a requirement to add custom tiles in the waffle menu of O365. I am looking for a Powershell script for this implementation. Please guide.
0
votes
0answers
15 views

Looking for a script to show where a solution is active in SharePoint 2010

I'm able to see that the solution is globally deployed (in CA) and I am also able to get the SolutionID with no problems. I'm looking for a way to show everywhere the solution is actually active and ...
0
votes
0answers
18 views

PowerShell Report on files uploaded during a certain time period

I'd like to generate a report using PowerShell that will tell me which files have been uploaded into a document library within a certain time period. Ex: The last month. I found this script which ...
0
votes
0answers
7 views

Cross Site Collection Boundary for SPFieldLookup

I am looking for a solution similar to this post, Cross-site and SPFieldLookup, but I need to cross a site collection boundary. Is this possible with modifications to the powershell on the posted ...
0
votes
0answers
18 views

Get-SPLogEvent returns nothing

I use Get-SPLogEvent PowerShell command in order to retrieve ULS logs by following below link. https://technet.microsoft.com/en-ie/library/ff607589.aspx However, it returns nothing; neither error ...
0
votes
0answers
19 views

The following exception occurred while trying to enumerate the collection: Access is denied

I am trying modify content located in an unattached content DB. But I am having trouble accessing the lists. Here is my powershell code: $db=Get-SPContentDatabase -ConnectAsUnattachedDatabase ...
0
votes
0answers
28 views

Is the SharePoint Online list of Site Collections actually a List and how can I access it?

When a user with the correct priviliges opens the SharePoint section of the O365 Admin Portal the first thing they encounter is a long list of site collections with storage quotas and site ...
0
votes
0answers
14 views

Creating multiple sharepoint sites & need to Add logo/cutom theme for those sites which newly created

This is my script. $csvfile='C:\CSVFilepath\bulkSitecreation.csv' Import-csv $csvfile | Where {New-SPSite -Url $_.Url -OwnerAlias $_.OwnerAlias -SecondaryOwnerAlias $_.SecondaryOwnerAlias -Language ...
0
votes
0answers
17 views

Add existing content type to “new” button

I have the following code that adds a content type to a document library (sharepoint 2013) and it works fine. However I now need to make sure this new content type is added to the list of content ...
0
votes
0answers
55 views

PowerShell calling Sharepoint 2013 REST API to update list item

After attempting several different examples I am unable to update list items using the Sharepoint REST API. I receive back a 400 error from the request. The creplace is due to Sharepoint sending ...
0
votes
0answers
17 views

PowerShell Script - list of MySite (OneDrive) quota usage

I am looking for a PowerShell Script that can export a list of our SharePoint users with the information of used quota (Total Quota, Used, Free, ...in Megabytes). I have only found the scripts where ...
0
votes
0answers
93 views

Invoke-WebRequest : The remote server returned an error: (401) Unauthorized

I am getting below error while running below command for SharePoint url from powershell. Invoke-WebRequest -UseDefaultCredentials -Uri http://spurl Invoke-WebRequest : The remote server returned ...
0
votes
0answers
54 views

How Can I copy Publishing Pages & Site Pages with WebParts to another site collection in SharePoint Online?

I am looking for a solution which can help me to copy Pages (Publishing, Site etc..) from one site collection to another site collection in SharePoint Online. To meet this requirement I have tried ...
0
votes
0answers
23 views

Connect to a SharePoint 2010 site having SSO authentication using Powershell

I am trying to connect to a SharePoint Site having an SSO authentication using PowerShell. But i am unable to do so. Please note, I am trying it from an external server so i have to do it using ...
0
votes
0answers
17 views

SharePoint Online PowerShell Custom Group in Site Settings

I know how to use PowerShell to create a new SharePoint Site Settings link, but I cannot seem to find how to create a custom group within site settings. Here is the code for creating the Custom ...
0
votes
0answers
25 views

WarmUp script that handles ajax / rest request - System.Net.WebClient

It seams that my warmup script does not work as expected. In my personal.aspx (mysite) we got several ajax /rest request that list several user data (lists, user properties, etc) that runs on ...
0
votes
0answers
80 views

Exception Message: Exception calling “ExecuteQuery” with “0” argument(s): “Error=Value=InvalidArgument”

I'm new to Sharepoint Online and Powershell. I tried to convert this example from https://msdn.microsoft.com/EN-US/library/office/microsoft.sharepoint.client.file.startupload.aspx to run with ...
0
votes
0answers
13 views

How can I mass update the format of a collection of subsites?

I have a SharePoint 2010 site with around 200 subsites in it. Management wants to uniform ALL the subsites so that they're in a certain layout. What's the best way to make this happen? The 2 ...
0
votes
0answers
31 views

How to loop sharepoint document library subfolders with powershell in CSOM

I have this code: cls function Recurse ($folder){ write-host ----- $folder.Name $context.Load($folder.Subfolders) $context.ExecuteQuery() foreach($folder in $folder.Subfolders) ...
0
votes
0answers
17 views

Get-SPSiteSubscriptions belonging to a specific Web Application

I have 2 Web Applications in my On-Premise SharePoint farm configured for Multi-Tenancy. Each web application contains a list of Tenants. When I execute Get-SPSiteSubscriptions in PowerShell, I get ...
0
votes
0answers
11 views

Copying Append Changes Multi-line columns with powershell

I need to migrate the contents of LISTA to LISTB using powershell. LISTA has a RESOLUTION multi-line of text column with append changes enabled and history of comments added to that column. I need to ...
0
votes
0answers
16 views

List Sharepoint groups powershell - missing groups

I am using this code to list all groups within a web app. When I look at results not all the groups are there. When I go to the root of the site - people and groups, the groups are there. Why are ...
0
votes
0answers
9 views

Import-SPSiteSubscriptionSettings

Has anyone used Import-SPSiteSubscriptionSettings PowerShell successfully? If so, can you please provide me with the detailed steps to use it? The Technet article is not so helpful for me. Any help ...
0
votes
0answers
25 views

Export List content type SharePoint 2013

I'm having 10 content types in a SharePoint 2013 List. I want to export all content types separately using PowerShell scripts or any. Note: List content type
0
votes
0answers
29 views

can I change the password of claim based Ax user

I have created claimed based user for AX sharepoint site(Enterprise portal) using given script New-AXUser -AccountType ClaimsUser -AXUserId har -UserName amit-UserDomain PortalAuth -CreateInProvider ...
0
votes
0answers
37 views

Creating folders in Document Sets with PowerShell

I have a document library with only document sets at the top level. In every document set I would like to create a set of standard folders with PowerShell. I have connected the document library to ...
0
votes
0answers
28 views

Raise limit on Database Connector and BCS in SharePoint Online

I have found a way to increase the limit for on-premise SharePoint, but is there any way to increase the 2000-row limit on the Database Connector for SharePoint Online? I am connecting an external ...
0
votes
0answers
25 views

Powershell script to check duplicate field value

I need a PowerShell script that loops through a form library and checks if a certain field has duplicates, and if so it should send out an email to a specified recipient. This field is called Frm Int ...
0
votes
0answers
75 views

Getting User from Active Directory through PowerShell and updating SharePoint List

I have created Windows 2012 R2 as a domain controller as bellow Server Name :- Server Domain :- milind.intra I have all users in user container only and not all user have manager in active directory ...
0
votes
0answers
20 views

Powershell for workflow not recognizing URL

I have a powershell that kicks off a workflow but my system is not allowing me to run it. The error I'm getting is as follows: Get-SPWeb: Cannot find an SPWeb object with id or URL: xxx.com and site ...
0
votes
0answers
34 views

Content Organiser Rule creation via powershell running slow

I am using a variation on this script posted here How to create Content Organizer rules through powershell in sharepoint 2010? My script pulls from a CSV file because I have over 600 rules to add. ...
0
votes
0answers
59 views

How to update existing list lookup column reference through powershell

How to update existing list lookup column reference through powershell. I wrote the following code to add lookup column. Now I need to update column reference. $myCustomList =$_.Lists["Test A"] ...
0
votes
0answers
20 views

Export Crawlog and filter it

I wrote a script that exports the crawl log, in order to get everyday an excel file contains the errors and warning in the last day crawling. I used : $ssa = Get-SPEnterpriseSearchServiceApplication ...
0
votes
0answers
21 views

Sharepoint 2013 Rename Profile Photos

For some reason, all my user profile photos have something added in front of them. We just migrated from 2010 to 2013 and now they don't show up because the MySite is looking for something and it's ...
0
votes
0answers
45 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
0answers
46 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 | ...
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
0answers
91 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 ...
0
votes
0answers
19 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 ...
0
votes
0answers
53 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
69 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 ...
0
votes
0answers
51 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
0answers
13 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
53 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
0answers
51 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 ...
0
votes
0answers
249 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
39 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
0answers
24 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 ...