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
22 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
8 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
38 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
1answer
78 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 script code: $db=Get-SPContentDatabase -ConnectAsUnattachedDatabase ...
0
votes
1answer
30 views

How can I use Online Management Shell commands from inside an Azure WebJob?

I have a project which requires a reporting tool be included in it. I need to be able to run the Management Shell command Get-SPOSite several times a day at regular intervals. As I am dealing with an ...
0
votes
0answers
33 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
16 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
2answers
44 views

How can you minimize export time on a large site collection?

I'm attempting to perform triage on a 1.5TB subsite in SP2013. I've reduced content as much as the business unit will allow, and my next step will be to move the site into its own site collection &...
0
votes
1answer
33 views

Values of new columns in view not showing

I have the following situation: An existing list has been extended with several columns, all of the type Readonly Field from other List. The Problem is, that the new columns do not show the values. If ...
0
votes
0answers
19 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
1answer
116 views

Cannot find an overload for KeywordQuery in Powershell

I am trying to run the following line: $query = New-Object Microsoft.SharePoint.Client.Search.Query.KeywordQuery($ctx) and receive this error: New-Object : Cannot find an overload for "...
0
votes
0answers
125 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
1answer
40 views

Need script to list Groups by Team Site

I am trying to find PowerShell scripts that do the following: List all TeamSites. List all TeamSites, Groups that belong to that TeamSite with their permissions. List all TeamSites, Groups that ...
0
votes
1answer
27 views

How many documents have been co-authored?

I need to prove that collaboration is happening. One suggestion is to use measure the number of documents which have been co-authored in the past month. Does anyone know how to do this ? I've been ...
0
votes
0answers
104 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
1answer
51 views

PowerShell Script to assign Default Content (folders/files) to SP 2013 Document Set Content Type

I am using SharePoint 2013 on premises to build an application which utilizes a Document Set Content Type. I have used the GUI to: Create Site Columns for the website; Create a Document Set ...
0
votes
0answers
29 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
246 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
1answer
32 views

Import .cmp file to webapplication

I have exported my site with Central Admin to .cmp Now I use Import-spweb to import it to another webapplication like this : `Import-SPWeb http://srvdev:7070/Linstance/ -Path C:\Bak\Linstance.cmp -`...
0
votes
2answers
246 views

SharePoint Online Management Shell - How to create sub sites

I am trying to automate the creation of multiple sub-sites in a site collection. Which command will do this? I am using SharePoint online 2013. The site collection is already created so now I'm ...
0
votes
1answer
89 views

How to checkout file using PowerShell REST API in SharePoint Server 2013 located in subsite?

I'm trying to check out file which is located inside document library under sub site. Site URL : mymainsite/subsite/subsite/My Library/test.xlsx I'm using below PowerShell script function ...
0
votes
0answers
27 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 CSOM....
0
votes
1answer
34 views

How to prevent Poweshell not showing script processing data

I have created a powrshell script for updating SharePoint List. When i run it shows all the backend processing to the console for example all the list schema info. I want it only show script created ...
0
votes
1answer
23 views

Maintaining Approval status after restoring list items from recycle bin

I have recycled list items using powershell method $deletedGuid = $item.recycle(). After recycling, I have restored items from recycle bin again using poershell method $site.RecycleBin.Restore($...
0
votes
0answers
48 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 document....
0
votes
1answer
157 views

Powershell script to get count of how many files are in a folder and its subfolders

As the title suggested does anyone know of a powershell script or any other way of getting the count of how many files are within a folder and its subfolders within a library? I have tried to look ...
0
votes
1answer
25 views

User profile service issues

I had this question earlier but did not find any solution. My user profile service synchronization is not starting. I tried stopping the service and restarted it also but no luck. Is deleting the user ...
0
votes
2answers
35 views

Deleting User profile service and recreating it

If I delete the User Profile Service Application from the central administration, will that create an issue for user using SharePoint. I am trying to delete that and recreate again since the User ...
0
votes
1answer
44 views

How to iterate each User Profile with Powershell

I've trying to iterate each User Profile with this snippet but at the following step: write-host "Job Description for user" $User " is : " $up[$upAttribute].Value the code always return the ...
0
votes
1answer
84 views

How to recover List Items from Recycle bin using Powershell by having item Guid

With following code I have recycled list items and have stored item GUID in $DeletedItem: for($i=$ListItems.Count-1; $i -ge 0; $i--) { write-host "Deleted List Item with ID:$($ListItems[$i].ID)"...
0
votes
1answer
28 views

Create document sets in powershell from xlsx (not csv) file

On occasion we have a need to create multiple document sets in a single library. In the past I have always put the details (e.g. name and any other column values) into a csv file and used powershell ...
0
votes
0answers
137 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
17 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
23 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
1answer
27 views

Export to CSV and format in a table

I am using this code but I would like to view in a table and export as a CSV but all my attempts have failed. Where does the code go? $siteUrl = "URL" $site = Get-SPSite $siteUrl $site.RootWeb....
0
votes
0answers
19 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
20 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
12 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
1answer
122 views

Update list items based on CSV File.

I have a csv file with ID, Region and Phone number. I need to run a powershell to update all the items that has ID match to update Region and Phone Number. I have following and not sure if this is ...
0
votes
0answers
37 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
1answer
17 views

How to insert FavIcons to SharePoint list from different websites?

as you can probably read from the title, I want to populate a column in my SharePoint list with favicons from different websites depending on the url in the corresponding field entry. I would use ...
0
votes
1answer
102 views

How to hide the banner “This site is read only at the farm administrator's request” after putting SP site in read only mode?

Today, as per client requirement,I made one of the site collections in our production environment on SP 2013 in read only mode. After doing so, we are getting This site is read only at the farm ...
0
votes
0answers
39 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
1answer
73 views

How to create a new SharePoint list with data from existing list using PowerShell?

For a university project, I have to create a new list with data from existing lists in SharePoint 2013. From my little experience in this field, I would use PowerShell with SharePoint's REST API to ...
0
votes
1answer
71 views

Powershell foreach alternative for item update

It takes forever to update items using foreach loop. Any other idea? if((Get-PSSnapin | Where {$_.Name -eq "Microsoft.SharePoint.PowerShell"}) -eq $null) { Add-PSSnapin Microsoft.SharePoint....
0
votes
0answers
65 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
38 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
28 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
116 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 ...