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

Copying Append Changes Multi-line columns with powershell

I need to migrate the contents of LISTA to LISTB using powershell. LISTA has a RESOLUTION multi-line of text column with append changes enabled and history of comments added to that column. I need to ...
1
vote
1answer
28 views

Remove Orphans site collections inside my content database raised the following:- Exception calling “Repair” with “1” argument(s)

I run the product configuration wizard on my SharePoint server 2013, after a hot fix installation:- psconfig.exe -cmd upgrade -inplace b2b -wait -force but i received the following exceptions, ...
3
votes
3answers
732 views

SP O365 upload big file via CSOM

Hi I try to upload large files (900 MB) to SP Online (actually the OneDrive Business) but seems to follow SP style. Tried this via CSOM and powershell 70 MB are fine but when I try 900 MB a timeout ...
-1
votes
1answer
31 views

How to add Full READ permissions and remove Full Control Permission on web application using powershell

How do I give a user "full read" permissions to a web application with PowerShell? The Script below assigns "full control" to a user on this web application with "full control" and "full read". $w ...
0
votes
1answer
2k views

How do you start a sharepoint 2013 list workflow in powershell?

I'm trying to figure out how to use powershell to start a list workflow. I found a few sites that give examples for sharepoint 2010 workflows, but only one for sharepoint 2013 workflows here. ...
0
votes
2answers
475 views

how to change Catalog settings of a list by powershell

I would like to change catalog settings of Pages list to make it act like a Catalog by using powershell. It includes adding Title as "Catalog Item URL Fields" and choosing a Term Set for "Navigation ...
0
votes
0answers
9 views

List Sharepoint groups powershell - missing groups

I am using this code to list all groups within a web app. When I look at results not all the groups are there. When I go to the root of the site - people and groups, the groups are there. Why are ...
0
votes
1answer
33 views

Export-SPWeb: Unable to export some lists

I'm using the following script to export some lists: foreach($spListUrl in $deploymentXml.Configuration.Lists.ListUrl) { Export-SPWeb -Identity $pwaSiteUrl -ItemUrl $spListUrl -Path ...
1
vote
0answers
16 views

How to update a Lookup field in one list with info from another list using Powershell or Workflow

I have a site that an SSIS package dumps thousands of items on to. The manager of the department wants a second list created. He wants to use a lookup column on list two to grab a single field called ...
1
vote
0answers
7 views

How to download multiple documents at once using powershell only specific document ids

i have a dcoument library in sharepoint record center application , enabled a document id for this web application , and in this document library users uploaded lot of documents 2000. and here i ...
2
votes
1answer
25 views

SharePoint Online how to add Links to Global Navigation Bar using PowerShell V5

I am trying to modify a PowerShell script to add Links to the SharePoint Online Global Navigation bar of my sites. I currently have a script which will add a "Header" to the Global Navigation Bar, but ...
0
votes
1answer
14 views

Change SharePoint group owner with Powershell to a SharePoint group

I have this PS script to change the group owner of a SharePoint group to a domain user. I would like to use this script to change it to an existing SharePoint group. The current script only allows ...
0
votes
2answers
12 views

Restore 1 site collection from a content database that contains several other site collections

for testing purposes I need to restore a site collection form our Live environment to our test farm environment. I have done this a few times where a site collection has its own database, but in this ...
2
votes
0answers
9 views

What permissions do I need to update SiteCacheSettingsWriter with Powershell?

I'm trying to enable and configure output cache on a site collection with Powershell. But I get an Access denied when running the script. Exception calling "Update" with "0" argument(s): "Access ...
2
votes
0answers
18 views

Sharepoint 2013: Get Items by Term-Tree

i have a list with a Termfield. I want all Items that have the Term "Stationärer Bereich:Vertrieb" or "Stationärer Bereich:Vertriebsinnendienst" (Including the subtree Terms). This is my Termset: ...
1
vote
1answer
645 views

how to change the created date of a folder in sharepoint

I have a document library, I have used a powershell command to change the created date of the files uploaded in that library. However, I also want to change the created date of a Folder which is ...
0
votes
1answer
22 views

Switch permission on file and folder

I made a script that load recursively all item and fold with unique permission, and I want to switch all permission on these items and folder to read. How can I do that? Function GetFiles($folder) { ...
1
vote
1answer
38 views

How to make Sharepoint subsite readonly without break inheritance

I use this script to switch permission into subsite, but when I have special permission for specific directory, all right is broken. Can you help me please? Param ( [Parameter(Mandatory=$True, ...
1
vote
0answers
10 views

Import-SPWeb not importing Custom Person / Group Column Values

I have a SharePoint 2013 Multi-Tenant farm configured to use FBA. I tried exporting a site in one of the site collections of the tenant using Export-SPWeb. I did include the option ...
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 ...
3
votes
0answers
43 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, ...
2
votes
1answer
838 views

Unable to remove app from SharePoint 2013 site

I've seen this problem in several places in our dev and test implementation of SharePoint 2013. Especially in sites where there has been a lot of testing where people uninstall and install apps. The ...
3
votes
1answer
671 views

Import-Spweb is changing the user id if the user does not exist in the organisation anymore

We had to restore a list (which has versionsing enabled) in our PROD enviornment SP 2010 August CU 2012. We used the following command metioned below: Import-SPWeb http://example.com/projects/myList ...
0
votes
2answers
33 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
37 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
16 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 ...
1
vote
1answer
44 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
570 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
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
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
17 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
21 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
31 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
14 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
538 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
734 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
31 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
637 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
550 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 ...