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
74 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
31 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 ...
1
vote
1answer
53 views

Can I get Last write time of a file in SharePoint via Powershell?

Is it possible to get when was the last WRITE time of a file in a document library by using Powershell? $url = "http://myserver/sites/mysite/shared%20documents/myfile.xlsx" $webclient = New-Object ...
0
votes
1answer
24 views

My script seems to be stuck in a loop

I have the following script that will loop through each web/list/content type looking for a specific content type. If it finds it, and that content type is not in use, then it will delete it and ...
0
votes
1answer
26 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 ...
4
votes
2answers
12k views

Do I have to run Register-SPWorkflowService for each site collection?

As part of my SharePoint Server 2013 setup I sometimes need to integrate the new workflow infrastructure into the farm. I've followed the documentation starting from the SharePoint side of things: ...
11
votes
5answers
15k views

Restore-SPSite to the same content database

I ran Restore-SPSite on my server from a backup. I then deleted the site collection and did it again but got the following error: Restore-SPSite : The operation that you are attempting to perform ...
1
vote
1answer
36 views

I am unable to edit a header on the Global/Top navigation bar

I am trying to edit a top navigation bar Heading's description so at the top ribbon I would have a its description at mouse hover. I am going to have to do it with powershell, as a script, because it ...
0
votes
0answers
65 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 ...
1
vote
0answers
22 views

Can the SPFileCollection.Add method check if I file has changed?

I'm using the sharepoint powershell cmdlets to upload files to a document library like so: # Set the variables $WebURL = “http://portal.contoso.com/sites/stuff” $DocLibName = “Docs” $FilePath = ...
0
votes
1answer
40 views

Upload a document to a library with PowerShell

I have a standalone 2013 SharePoint installed on a Win2012R2 which I am playing with. When I click "Home" in the navigation this is my URL http://winsrv01/_layouts/15/start.aspx#/ I created a new ...
3
votes
2answers
89 views

SharePoint 2013 - Multiple domains in People picker

We have a farm that's setup on Domain A and it has trust to Domain B. By default we can find the users for Domain A in the People Picker, but we would like to add the users for Domain B as well in the ...
1
vote
1answer
36 views

How to delete taxonomy field?

I usually use SharePoint Manager 2013 in order to delete taxonomy fields, so I can delete the hidden note field along with it, i.e. a field called Organization and Organization_0. In my production ...
2
votes
2answers
2k views

Powershell script to get list of AD groups used from site collections in SharePoint 2010

I need to list all the AD groups used in all the site collection. Can any one please help. $SPWebApp = Get-SPWebApplication https://*******.com/ foreach ($SPSite in $SPWebApp.Sites) { write-host ...
1
vote
2answers
1k views

Download/Export solution from site solution gallery

I'm trying to automate the process of downloading one solution and then add/install the same solution to other site collections. The first thing to do would be to download the freshly created solution ...
0
votes
0answers
19 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
1answer
64 views

Using Get-SPSite -Filter

I seem to be having some trouble using the Filter parameter on the Get-SPSite cmdlet. Using this question for reference, I'd hoped to filter out the Site that I was getting, to later on exclude it ...
0
votes
0answers
132 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
2answers
435 views

Custom entity extraction

I need help with custom entity extraction setting. I created an UTF-8, comma separated .csv file, script with the right dictionary (Microsoft.UserDictionaries.EntityExtraction.Custom.Word.N) and UNC ...
2
votes
1answer
61 views

Resolve SPFieldUserValue by Email

We need to insert a bulk data from MS Excel into SharePoint lists. We committed this using Powershell. Almost everything straightforward, until we found a stoper with People columns. From Excel ...
2
votes
1answer
905 views

Powershell - get all default values for a document library

I am attempting to write a powershell script that will iterate through all document libraries and provide me with the default values for specific columns. I am successfully iteration through the ...
1
vote
1answer
38 views

Get the site owners information from a site collection

Can someone share the query to get Site owner and site collection manager information from all sites and sub-sites in a SharePoint 2013 site collection?
2
votes
1answer
127 views

Update geolocation field (SPFieldGeolocationValue) 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
4answers
936 views

Powershell - How to add multiple site collection admins as secondary?

How to add multiple site collection admins for a given site for secondary? I tried below but it replaces existing secondary. Any idea? Set-SPSite –Identity $siteCollectionUrl –SecondaryOwnerAlias ...
5
votes
2answers
422 views

Uploading a large file to Office 365 via CSOM PowerShell

I have the following code : $FileStream = New-Object IO.FileStream($File.FullName,[System.IO.FileMode]::Open) $FileCreationInfo = New-Object Microsoft.SharePoint.Client.FileCreationInformation ...
0
votes
2answers
87 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 ...
2
votes
1answer
1k views

SharePoint 2013 Online: List of all suspended workflows

Is there a powershell script or service out there that gives you a list of all workflow statuses? Primarily we are looking for a way to get a list of all current suspended workflows. Update: Here ...
1
vote
2answers
572 views

SP 2013 How to create new FBA sql users with PowerShell?

I set up SharePoint 2013 with FBA users (SQL). I'd like to know if it's possible to create new users using PowerShell script ? What I tried but did not work : ...
2
votes
1answer
97 views

Change the home page of a wiki library

I saved an old wiki library as a template w/ content and then created a wiki library from that template. The new wiki, however, shows all the wiki pages in a list of files because the new wiki home ...
1
vote
2answers
125 views

SharePoint Responsive Package PNP tools not able to enable feature in Package

I am trying to implement Responsive UI Package for SharePoint on-premises (2013 and 2016) from this link ...
0
votes
1answer
61 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 ...
1
vote
2answers
73 views

List installed products & components using powershell

i came across a situation i want to mount a content database in a new environment that i don't know what was installed previously there. Using powershell how i know what installations installed in ...
3
votes
1answer
78 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 ...
0
votes
0answers
24 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 ...
1
vote
0answers
59 views

Add WebPart to Page with PowerShell

So I have the following code that I took from "http://adicodes.com/adding-web-part-to-page-with-powershell/". It works fine, until the $context.ExecuteQuery() in the AddWebPartToPage function, where ...
1
vote
1answer
838 views

Issues updating/setting multi value lookup columns via powershell

I have an issue updating multi-values in a lookup field via powershell I can update a single value lookup field as below but can't get to update if its multi- value. As stated below when I hardcode ...
1
vote
2answers
149 views

How to get specific sub sites Using Get-SPWeb object

In the code below i only want to get following 3 specific subsites using Get-SPWeb Object. which filter command is most appropriate to target only these 3 sites 1. ...
1
vote
1answer
39 views

Go through specific library and set all subfolders as well as the root folders content type using powershell - Stuck

What I am trying to do is access a SharePoint 2010 document library, change all root and sub folders of that library from their existing content type to a new content type. So far my code has somewhat ...
1
vote
1answer
54 views

Update more than 5000 Items in a list using PowerShell in SharePoint 2013

I need to write a PowerShell script to update a choice column with a specific value in all the items of a List. Following is the main part of the script $siteUrl = "http://mySharePointSiteUrl/" ...
1
vote
0answers
82 views

Reading Each XML Node in Powershell to create list in SharePoint

I have an XML file which I got from running webservices of below format. It contains each List name in the site collection under node. Now using this file I have to create lists in another site ...
0
votes
4answers
659 views

apply masterpage to site collection and all subsites - SharePoint foundation 2013 using powershell

I'm working on a **sharepoint foundation 2013.**I have applied a custom masterpage on the root site the site collection.I would like all the subsites to inherit this masterpage and apply across all ...
1
vote
1answer
54 views

Cannot uninstall the LanguagePack 0 because it is not deployed

I'm trying to run the following PS command on a SharePoint 2010 Foundation Farm: Update-SPSolution -Identity testwebpart.wsp -LiteralPath ...
1
vote
1answer
13 views

Auto drop value everyday

So I have created a list that has a field that allows a user to input a rating of 1 - 4 which is then linked to another list that totals up each rating for that specific user. What I need to do is ...
2
votes
2answers
35 views

How to specify start method in Powershell

I have written a powershell script with couple of methods. I want to start powershell script with some specific method,for example the script should start with method Get-SitesWithNewsPageCT() How I ...
1
vote
2answers
50 views

How can you change a rootweb name, url etc?

How can I change the name on a root web? Right now it's http://dev1/sites/dog. I am trying to change it to http://dev1/sites/cat I have tried $web = get-spweb http://dev1/sites/dog $web.Name = ...
2
votes
1answer
36 views

Error when using the UsageReportWithCSOM Script

Just using your script to grab the OD4B usage details, when running the script I'm receiving below error each time it queries someone's URL. Any ideas? I'm running the script as an O365 Global Admin. ...
1
vote
2answers
42 views

Set number of decimal places - PowerShell

So I'm building up a PowerShell script, and I wish to set the number of decimal places on a "Number" column. However, I can't seem to find the property necessary to do so. According to MSDN is should ...
1
vote
2answers
40 views

How to delete files from “Manage files which have no checked in version” using powershell

I tried to delete custom content type from Pages library but got an exception "content type is still in use". The I get to know that files should also be deleted from "Manage files which have no ...
0
votes
1answer
30 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
0answers
24 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 ...