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
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, ...
2
votes
3answers
2k views

Restore-SPSite fails without any useful error

I'm trying to restore from a backup via PowerShell with the following commands: add-pssnapin Microsoft.SharePoint.PowerShell restore-spsite -Force -Confirm:$false -Identity ...
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
29 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
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 ...
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
21 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 ...
1
vote
1answer
40 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? ...
2
votes
1answer
569 views

Error while running the Powershell script

I want to run the following script but getting the error "Unable to find type [Microsoft.Office.Server.UserProfiles.PropertyConstants]" #Add SharePoint PowerShell SnapIn if not already added if ...
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 ...
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 ...
1
vote
1answer
6k views

Looking for a Powershell script to enable SharePoint Server Publishing on all sites in a site collection

I'm looking for a Powershell script to enable the SharePoint Server Publishing site feature on all sites in a single site collection or all site collections.
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 ...
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 ...
3
votes
2answers
27 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 ...
1
vote
1answer
536 views

Can't update SPField through PowerShell - object has been updated by another user since it was last fetched

I get the following error when trying to update the choices for a Site Column: "The object has been updated by another user since it was last fetched." I get this error if I try to add a new choice ...
1
vote
1answer
732 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 ...
4
votes
1answer
1k views

Disable site collection health check rule

Is there anyway of disabling/bypassing a site collection health check rule. For example, I want to bypass Missing Site Templates rule when I upgrade a site collection in SP 2010 mode to SP 2013. For ...
1
vote
1answer
2k views

Unable to import multiple .cmp files

I have run the command Export-SPWeb -Identity $url -ItemUrl $largeList -CompressionSize 15 -Path "c:\itemFolder\backup.cmp" This results in 3 files. c:\itemFolder\backup.cmp ...
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
0
votes
2answers
1k views

Powershell get permission on SPSite/SPweb (and all list)

Do you know how to get, in powershell, all permission for a SPSite/SPWeb and all list? Thanks.
3
votes
1answer
636 views

Create a 2013 Wiki page with Powershell

I have a Sharepoint 2013 instance running on a server. I want to create a script that writes wiki pages from files. So while searching the internet, I found some code for C#, VB, and some PS Code that ...
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
2answers
1k views

Office 365: Publish and deploy .app through PowerShell

Can we deploy a SharePoint hosted app in Office 365 (SharePoint online) using PowerShell? Like in SharePoint 2013 apps, we will import the .app file and then install it. Can this be done in Office ...
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
546 views

How to install SharePoint 2013 Installation with SQL Server Authentication

I'm just curious about the steps required to install Sharepoint 2013 using SQL Server Authentication. Also if there are any drawbacks that i might not be aware of. Here are some steps i currently ...
0
votes
0answers
33 views

Sharepoint Global navigation updating the link under navigation node type

Is there any way where we can update links under Global navigation in sharepoint 2013. I have also pinned the Termset to some of the Termset Groups. Now under pinned termset, When i updated the URL ...
1
vote
3answers
2k views

Powershell How to unlock all sitecollections

I am trying to build a Powershell Script, which iterates over all SiteCollections and checks if they are on lockdown. This is because, sometimes some collections don't come back from read-only, after ...
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
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 ...
4
votes
1answer
7k views

creating site collections using SharePoint management shell 2013

I am creating Site Collections for Testing SharePoint. I am using Host Named Site Collection to do that instead of the path based site collection addressing. For that Got a reference to the HNSC ...
0
votes
2answers
970 views

Problem copying lookup column data from one list to another via PowerShell

I have the below script that works for moving list data between two lists on sites next to each other that have the same schema. Everything works perfectly bar a column of type LOOKUP named "Name of ...
1
vote
1answer
100 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 ...
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
2answers
818 views

UserProfileService GetUserProfile Modified Date in 2010

I have a problem when loading a UserProfile from the UserProfileService in Powershell. I am able to get a list of properties, however I can't seem to find when the profile was last modified. One ...
4
votes
1answer
482 views

SharePoint Online CSOM create managed properties

I'm trying to find a way to deploy search managed properties via script to my Office 365 SharePoint tenant. Previously, for on-prem SharePoint I've achieved this using PowerShell - fairly straight ...
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 ...
2
votes
1answer
2k views

Change SharePoint Service Account using PowerShell

In the Central Admin you are able to change a registered Service Account to a specified service (as in the image) Is this possible to manage by PowerShell?
2
votes
3answers
1k views

How do I set the OSearch14 Service Account via PowerShell

I'm in the process of Scripting a deployment of SharePoint 2010 and FAST. Normally to set the Service Account of a SharePoint service one would use the ProcessIdentity property, like so: $procId = ...
0
votes
1answer
2k views

Export large list to excel through powershell

We can successfully migrate a list to the excel through power-shell, but if a list is having 1 Lakh of data then can we transfer through power-shell? Is there any restriction on number of list items ...
2
votes
3answers
7k views

No Connection between SP2013 and Workflow manger

Goal: Install Workflow manager in order to use SharePoint 2013 workflow. Problem: When I try registrating between SP2013 och WorkFlow manager based on the code: Give this command ...
2
votes
1answer
868 views

Creating SiteCollections using SharePoint Management Shell 2013

I am following the below instruction to create a NHSC, but at point D when I am creating a Team Site, I get the message that the new URL is not found! Do I need to create that before? Am I missing ...
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 ...
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 = ...
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 ...