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
63 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
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 ...
1
vote
0answers
47 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
33 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
25 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
61 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
65 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
15 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
34 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
29 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
39 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
28 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
16 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
112 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
39 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
44 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
26 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
28 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
22 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
117 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
66 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
39 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
25 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
43 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 ...
1
vote
0answers
48 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
57 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.
2
votes
1answer
311 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
247 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
36 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
62 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
30 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
27 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
74 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
61 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
140 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
293 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
83 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
173 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
85 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
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 ...
3
votes
1answer
61 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
36 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 ...
3
votes
1answer
247 views

How to check which value was used for WorkflowHostUri with Register-SPWorkflowService?

I have a production environment with three Workflow Manager 1.0 servers in a farm. We also have a virtual URL that is used by NLB to spread the load between these servers. Register-SPWorkflowService ...
3
votes
0answers
53 views

How can a document with version “1.0” have a status of “Draft”?

I have a set of documents which appear to have no problems in the browser, but when I inspect the properties of the document in PowerShell, it reveals that it is actually a Draft document: PS ...
3
votes
1answer
164 views

how I can know if I have missing CU using “get-spproduct -local” command

I have SharePoint 2013 with build number = 15.0.4763.1000 which represents October 2015 CU. now we have installed the security updates for December 2015. but when I run the product configuration ...
1
vote
1answer
80 views

Export and Import a Site Page using PowerShell

I am familiar with how to export/import a site using PS. My question is, is it possible to do the same operation with a Site Page? For example, SiteA/default.aspx contains 2 Site Pages called ToDoList ...
2
votes
0answers
58 views

Issue in migration from SharePoint 2013 On-Premise to Office 365 [closed]

We did migration from SharePoint 2013 On-Premise to Office 365. At source (SharePoint 2013 On-Premise) there are more than 16,000 items (files and folders) but at the destination (Office 365) there ...
1
vote
2answers
200 views

How to use PowerShell script to copy document library with meta data to other site collection?

I need to migrate a document library includings all its documents and all meta data to another site collection. I did some research and quickly found a script that would seem to do the job, see source ...
2
votes
2answers
487 views

Add multiple users, groups and groups permission from *csv file to SharePoint 2013 using powershell

I am looking for script to add multiple users and multiple groups to SharePoint 2013. I have CSV file with cointains two columns with header "user" login and "group" name with are separated by (;) as ...