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

How to find total number of pages in a site and count of words in SharePoint site?

I am requested to generate a report that illustrates the number of pages and their corresponding URLs, plus the count of words on a page, and the number of files in that site (word, PDF, ...
0
votes
0answers
8 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
32 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
2answers
31 views

How to grant user DB_Owner on all SharePoint 2013 databases

For many admin tasks for SharePoint 2013 using PowerShell you need to have DB_Owner for all SharePoint databases. The Add-SPShellAdmin command no longer granted DB_Owner to the SharePoint databases, ...
0
votes
0answers
15 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
22 views

Mount a content database with site collection already exist in the farm

We are using SP2013 standard on-premise. There are 2 farms Test1 and Test2. Both farm have exactly same named Content DBs and same URL site collections. Recently we encounter some issue about ...
0
votes
0answers
26 views

Powershell/task scheduler OR timer job(Farm solution) OR workflow/retention policy . when i want to implement a background jobs

I am working on a SharePoint 2013 site collection. And I have an Issue Tracking list, where I want to perform these actions on it once a day (at 12:05 AM):- Check if a column named "Review Date" of ...
1
vote
1answer
41 views

How can I get Items in nested folders in a SharePoint List?

I have a list with folders, multiple folders within each of the folders, and multiple items in each of the subfolders. How do I iterate through the subfolders to get a similar output in PowerShell? ...
0
votes
1answer
16 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
0answers
16 views

How to remove duplicate list items (keep higher version ) using powershell script?

I am working with SP 2010 Sharepoint Lists where the list items is having unique column " Document No" and each items are having "version". Each time the list items are getting updated/New items are ...
3
votes
2answers
28 views

how to create two webapplication with the same Port on IIS

is it possible to create two webapplication with the same Port on IIS in PowerShell. I belive it's not extending webapplication. Each Webapplication has her own content data base. Any idea doing that ...
1
vote
1answer
12 views

Deletion of version of a Document when Version Label is known using powershell script

Is it possible that I can delete versions of a particular document when I have a pool of minor Versions available? NB: I do not want to iterate through all the item versions, but just access through ...
0
votes
1answer
35 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 ...
1
vote
1answer
30 views

Download Master File using PowerShell

How do I download a masterpage file using PowerShell? e.g. URL: http://sharepoint/_catalogs/masterpage/file.master
1
vote
0answers
9 views

Can not deploy SharePoint app to SharePoint Online dev site using Powershell

$url = "https://TestSite.sharepoint.com" $username = "Testuser@testsite.sharepoint.com" $password = "Lidf$ijsd@f$" $appfilepath = "C:\temp\app.app" $Password = $password |ConvertTo-SecureString ...
2
votes
1answer
29 views

Stsadm command in Sharepoint

When i run stsadm command in my sharepoint server. This is the command i use stsadm -o sync -listolddatabases 0 When I do that and click enter, I have a list of user profile service application. ...
1
vote
1answer
19 views

Export files from Sharepoint 2007. Without stsadm(?)

I want to export all documents from a sharepoint 2007 without have to import them to a new site. I've used the STSADM command and obviously got stuck with 50k .dat files. What i've understood i cant ...
1
vote
1answer
29 views

Manipulating Content Types with PowerShell

I have looked up a couple of resources on changing Content Types via Powershell without much luck. It seems no matter what I run, it's not changing the content type in a way I would expect. I got a ...
0
votes
1answer
17 views

Powershell to list all documents in a library

I've backed up over 200 sub sites and restored them to a new site collection with it's own content database. I want to do a quick compare of the document libraries to make sure nothing was missed. ...
2
votes
0answers
11 views

How I Export some managed meta data column of sharepoint Document Library using PowerShell

I am getting the value for my text field as i need but for my taxonamy column it also give guid id and my taxonomy column are multivalued so i want to export like as store in sharepoint document ...
0
votes
1answer
58 views

Copy-SPActivitiesToWorkflowService : Scope '/SharePoint' was not found

We are using SP2013 on-premise enterprise edition. Recently we patched our farm and receive this error: Error UpgradeWorkflowServiceActivities. Run Copy-SPLocalActivitiesToWorkflowService manually to ...
1
vote
1answer
23 views

Finding unghosted pages

Is there a way to find how many unghosted pages there are in a site collection ? May be with queries in content database or powershell cmdlets ?
0
votes
1answer
14 views

Migrating from Rich Text Column to Plain Text Column with Powershell

I have a sharepoint list with a few rich text columns. I am recreating the list in a new site (for a number of reasons such as column names, etc) and am changing all rich text columns to just plain ...
0
votes
1answer
20 views

Create a site collection in root path with PowerShell

I am trying to create a new site collection with powershell in the root path http://mysite/search/ $siteName = "Search"; $webAppUrl = "http://sharepoint"; $siteUrl = ...
0
votes
0answers
15 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 ...
2
votes
1answer
17 views

MMS service app pool name is incorrect

I've created a managed metadata service with PowerShell: New-SPServiceApplicationPool -Name "SPService" -Account CONTOSO\Admin New-SPMetadataServiceApplication -Name "MetadataServiceApp" ...
1
vote
0answers
16 views

How I update the Managed Metadata Field in Document Library for only .Zip Files using PowerShell [duplicate]

<Code For Termset> [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Taxonomy") $site = Get-SPSite http://invi28apps9c $session = New-Object ...
1
vote
1answer
39 views

How i Update the managed metadata field with one more value keep old value in that column

I want to add one more value from the termset in the existing column value using Powershell script. [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Taxonomy") $site = ...
0
votes
1answer
24 views

Powershell: Upload .html Master Page and generate .master

I am attempting to upload a new Master Page to a SharePoint 2013 site using Powershell. I am copying the .html file to the "Master Page Gallery" list successfully but I cannot find any way of having ...
0
votes
1answer
25 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 ...
1
vote
2answers
22 views

Use a powershell script on a webpart component

can you tell me if it's possible to use a powershell script that would be used with a webpart component, as we can do with javascript scripts?
0
votes
1answer
24 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
0answers
23 views

Setting alternate CSS

I'm trying to set the $web.alternateCSSUrl property, but it doesn't seem to work. It's populating the "All Channels" box with the correct URL to the CSS, and I set it in the code, but I can only ...
0
votes
2answers
26 views

create New site collection with new content database using powershell

How to create a new site collection in existing web application but with new content database using powershell.
1
vote
1answer
101 views

How to Add Child Links Under Top Level Global Navigation Headers in Online Sharepoint 2013 Usinge PowerShell V 3.0?

I am stuck on a PowerShell V3.0 problem for programmatically adding Child Links to the Global Navigation bar in our Online SharePoint 2013 (Office 365-Azure) site. I have found code that works for me ...
4
votes
2answers
84 views

How to get people picker column user login name using CSOM in Powershell?

currently i have ABC list with People column type[Person or Group] i am trying to get user name from column using CSOM in Powershell script for SharePoint Online.. so please suggest some solutions.. ...
0
votes
0answers
17 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
1answer
32 views

Powershell script that outputs all folders from a Site Collection, Site and Subsites and the owners of each

I have been scouring google and could not find anything to go off of in regards to my task. Like the title suggests, I'm trying to utilize a powershell script to output all folders residing in a Site ...
3
votes
1answer
27 views

Two Web Apps. Two root site collections on them. HOW?

I've spend half a day. I have web application http://one on port 80 and site collection on it. I create second web application with separated site, http://two on port 80(url is added in A-records). ...
0
votes
0answers
19 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 ...
1
vote
0answers
29 views

Changing Workflow Status from Error Occurred to Completed using Powershell

I have tried to Cancel and Restart Error Occurred Workflows using powershell script and it works fine. But, now I want to change the status from Error Occurred to Completed. I tried to search a lot ...
1
vote
1answer
45 views

What is the powershell script for getting the 'Created By' of a Site Collection on SharePoint Online?

Can I check whether it is possible to run the powershell script to see 'Created By' of a Site Collection for SharePoint Online? I'm currently runnng this line (below) but the information that I want ...
4
votes
2answers
73 views

Is it possible to create custom User Profile Properties using CSOM or SPO PowerShell?

I have not been able to find much information regarding creating custom User Profile Properties via CSOM or SharePoint Online PowerShell. Is this possible, and if so, how do I go about doing it?
2
votes
1answer
62 views

“Cannot index into a null array” and “Invoke method on null” errors

I am new to SharePoint 2013 and am not a coder. I have a List, "IRM Summary", that contains Date Opened, Date Closed Days Open and Today columns. If there is a Date Closed date, then Days Open ...
1
vote
2answers
46 views

401 unauthorized after changing master page

I receive a "401 unauthorized" on http://mysite/_layouts/15/... after changing the default master page seattle.master to a custom master page. I am using the following PowerShell script: $site_url = ...
6
votes
2answers
127 views

Disable Share and Follow button

I followed the steps below to disable the "share" and "follow" buttons in Sharepoint: Disable Share Button Settings > Site Settings > User and Permission : Site Permission Click Access request ...
2
votes
1answer
35 views

Powershell to export all the columns with their data values in a sharepoint 2010 list

I have to export all the columns in a particular sharepoint list along with the data contained in the columns. I am currently able to get all column names but not data. Need help with that. Below is ...
0
votes
0answers
22 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 ...
3
votes
1answer
47 views

How to move SharePoint 2010 list workflows from QA to Staging

Is there a way to move SharePoint 2010 list workflows from one environment to another without the use of "SharePoint Designer"? I know how to Export it to visio and do stuff but my main issue is, it ...
1
vote
0answers
23 views

Save a SharePoint 2013 workflow as template using code behind

We have around 100 SharePoint 2013 workflows in our Farm. We need to save these workflows. It is tedious to manually open Sites in Designer and go to each workflow and store it as a template. Is there ...