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
36 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
37 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
42 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
32 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
21 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
135 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
45 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
61 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
30 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
207 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
86 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
49 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
26 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
53 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
70 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
84 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
398 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
304 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
41 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
81 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
35 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
33 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
77 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
63 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
182 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
383 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
94 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
191 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
113 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
65 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
38 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
368 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
55 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
195 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
98 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
64 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
297 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
655 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 ...
2
votes
2answers
90 views

Changing Column Settings for a Content Type using Powershell

I'm trying to change the setting of a column to make it not a required field. This is the code I'm using: $site = new-object Microsoft.SharePoint.SPSite("abc.com") $web = $site.OpenWeb() ...
3
votes
1answer
164 views

PowerShell Script to restart the Application Pools of WFEs

Need to create a PowerShell script to recycle the Application Pool of my WFE - Dev,Staging & Production servers of my SP 2013 Farm. I tried code mentioned here But somehow as mentioned in ...
3
votes
3answers
101 views

How to Archive a Site as a Sub Site

I'm having a tough time cracking this and need some assistance. Below is a site called TestSite, that is used to archive other sites not in use located at ...
2
votes
2answers
72 views

Export a custom Document Library using PowerShell

I would like to know how to export a document library (SharePoint 2010) using PowerShell and also saving metadata about content. I need to repopulate the document library with items coming from ...
3
votes
3answers
295 views

Get-SPUser without specify a site collection

I am going to migrate users with Move-SPUser. To do this, I am getting the user first: $user = Get-SPUser -Identity $adAccount -web https://sharepoint/site-collection The moving them: Move-SPUser ...
0
votes
0answers
88 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 ...
1
vote
1answer
44 views

What influences the deployment speed on SP2013?

I have an Hyper-V machine running Sharepoint 2013 connected to an hosted server with 16GB ram, where the database is installed for that Sharepoint server. I wanted to improve the local deployment ...
2
votes
1answer
40 views

Dispose of Get-SPOSite in SharePoint Online

In Powershell for sharepoint server, we use dispose() for disposing SPSite objects, do we do the same in sharepoint online management shell? or it's not needed?