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)

5
votes
4answers
1k 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 ...
0
votes
0answers
11 views

Unable to update list view title using Powershell

I am trying to update the value using: $lista.Views[0].Title="New Title" $lista.Views[0].Title.Update() and $lista.Views[0].TitleResource.Value="New Title" $lista.Views[0].TitleResource....
1
vote
2answers
1k 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 ...
0
votes
3answers
26 views

how to find all activated farm features?

How can I find all activated Farm features using PowerShell? All installed Farm features can be found using: Get-SPFeature -farm
1
vote
1answer
37 views

Group permission - Sharepoint Online Powershell

I would like to have a report of which sites a specific group or user has on all the SharePoint sites. I have this group called SPGroup and I want to see on which sites this group has permissions on, ...
1
vote
2answers
66 views

How to loop sharepoint document library subfolders with powershell in CSOM

I have this code: cls function Recurse ($folder){ write-host ----- $folder.Name $context.Load($folder.Subfolders) $context.ExecuteQuery() foreach($folder in $folder.Subfolders) ...
3
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 https://uslv-acsw-t4.dev....
0
votes
2answers
24 views

SharePoint Powershell Snapin Installation Error

I've been trying for days to get the SharePoint Powershell snap-in installed on my Win 7 machine, currently using Powershell 3.0 and SharePoint Online Management Shell. I've googled and googled and ...
0
votes
1answer
22 views

How to restrict access for specific sub-site group user's to root site in SharePoint 2010?

In SharePoint 2010 I have root site for e.g. http://moss-root// under this we have lots of sub-sites like http://moss-root/subsite1 http://moss-root/subsite2 --- I need to restrict this subsite ...
2
votes
2answers
67 views

How to get Configuration SharePoint Database Server using Power-Shell?

I have X number of database servers on the farm , I need to know Which database server have the SharePoint Configuration Database using Power-Shell ? I know I can get Which server via Central ...
0
votes
2answers
16 views

SharePoint Service Application Account Change Powershell Script Error

I am trying to change the manged accounts for SharePoint 2013 service applications. Here is how I am using my powershell scripts $svc = Get-SPServiceInstance -Server DEVSP01 | where {$_.Name -eq "...
3
votes
1answer
44 views

Manipulating permissions on SharePoint Online with PowerShell

We have a multitude of sites and sub-sites in SharePoint. As we run Azure AD Connect, we are able to assign Windows security group as Site Collection Administrators and further - assign AD groups to ...
0
votes
0answers
23 views

export all changed list using powershell

I need to get all changes on my sitecollection , sites,webs,lists and folders and to export them into cmp files. so i used this code to get the changes : Add-PSSnapin "Microsoft.SharePoint.PowerShell"...
0
votes
2answers
795 views

How to write powershell catch error stacktrace to a listitem?

I am using a powershell script where I do some logic. It is a big powershell and is scheduled. I would like to triggered when there occurred some error. I would like to have the whole error stacktrace ...
0
votes
2answers
40 views

Find duplicate files in a specific sharepoint document library using powershell script

I am trying to find the duplicate files in my "Test" library in SharePoint, using the below code [system.reflection.assembly]::LoadWithPartialName("Microsoft.SharePoint") function Get-...
0
votes
2answers
32 views

How to compare file names in SharePoint Library to check if they are unique or not using PowerShell script?

I have few folders and sub-folders in SharePoint document library. I need to compare if the file names in all folders and sub-folders are unique or not. Is there any PowerShell script which will help ...
0
votes
1answer
375 views

How to create different Column Types in SharePoint Online using PowerShell cmdlets

I'm using below script that actually create the News List in my SharePoint Online site, but I'm stuck on how to create different Column (Field) types under that List, right now it's just creating a ...
0
votes
2answers
7k views

Delete Content Types using PowerShell

I am new to PowerShell script. I am trying to run this specific script using .ps1 but received an error. Where do I put our SharePoint URL and the Content Type name in the script. Here is the script ...
1
vote
1answer
38 views

Run SharePoint powershell as a windows task on daily basis

I `ve created a powershell which works fine if executed directly via SharePoint 2013 Shell in Admin mode. However, if running via Windows Tasks manager on daily basis, then the powershell doesnt runs....
0
votes
0answers
17 views

How to use Powershell to Update/Create List From CSV - Onpremise SharePoint 2013

I am looking at automating the update of a student list from our student management system, I can automate extracts of csv data but am trying to automate importing of the csv into the sharepoint list. ...
0
votes
0answers
11 views

attach files to existing list items based on a unique ID through PowerShell

I am trying to upload file attachments to items, using the following logic File name = ID can anyone find a logical code to do so
0
votes
0answers
12 views

How to add prefix with increment value to the files in folders and sub-folders of SharePoint library while downloading

I am trying to download files from SharePoint library with an add prefix. Library contains different folders and sub-folders with same file names. Required output: abc00001_Test_File1 ...
1
vote
1answer
609 views

Script to update Sharepoint Online content type

I have a content type "TestContentType" with three columns: Document Type Category Sub-category This content type is used on 18 document libraries, in 3 site collections. The Category column ...
0
votes
0answers
19 views

How to create new column in .xlsx file using powershell [closed]

I need a new column to be created in my existing .xlsx file in local disk. For Example: Test.xlsx is my file name with column and column values should be incremented: Column Name: CID ...
3
votes
1answer
1k 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 ...
0
votes
1answer
26 views

How to rename files of a SharePoint library while downloading to local drive

I have sharepoint library as below: SP Library: "Test" Folder1 File1 Folder2 File1 Folder3 File2 I need as below in my local folder: Local folder: "c:\" Folder1 ...
0
votes
1answer
26 views

How to copy all files from folders and subfolders into one folder using PowerShell script?

I have to copy all files to single location and add prefix to all files while copying to new root folder. For example, say that I have the following folder hierarchy: Folder1 File1 ...
2
votes
1answer
21 views

Web.config error when adding new server to production SP 2013 Foundation farm

First off, I've been scouring the posts here and elsewhere looking for a solution to this issue, and I appreciate any help. The closest I have found is here, but the answer was not followed-through. ...
1
vote
1answer
38 views

How to download all documents including the documents from folder also from SharePoint library to a physical location on desktop and rename them

I have 10,000 documents in SharePoint 2010 library. Is there any PowerShell script which will download all documents from SharePoint document library but I won't need the folder structure to be ...
4
votes
1answer
2k 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 ...
2
votes
1answer
626 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 ((Get-...
0
votes
0answers
14 views

PS Scripting to install Custom Site Templates in Solution Gallery across mulitple SC in a WebApp

I am looking to script a PowerShell to install Custom Site Templates to the solution galleries across 98 site collections. Please advise how would I go about that? `Add-PSSnapin Microsoft.SharePoint....
0
votes
0answers
5 views

how to iterate through folders, sub folders and get file size of document library's only in power shell?

How to find the size of all documents in sharepoint 2013 I'm trying to iterate through folders and sub folders of document library only to get file size. But I'm getting folder size instead of file ...
1
vote
1answer
261 views

Why updating of InplaceSearchEnabled of the listview webpart does not reflect on the page?

We have a script that generates pages that contains list view web part. The script sets the InplaceSearchEnabled of the web part true, but when we check the pages, the search box does not appear. I ...
3
votes
1answer
862 views

DTD Error with Connect-SPOService

Just recently I cannot connect to my tenant admin with PowerShell. When I call Connect-SPOService -Url https://<tenant>-admin.sharepoint.com I get the following error: Connect-SPOService ...
0
votes
1answer
8 views

How to import a SharePoint 2010 list at a specific version using powershell?

I exported a list with the "all versions" option. I would like to import it at a previous version. How can I know the available versions and how to select the one that I want and import it?
1
vote
2answers
2k views

Import-SPWeb error: “The file xxx.cmp does not exist.”

I have a strange issue with Export-SPWeb and Import-SPWeb for SharePoint 2013. I want to export one of my sites, so I type this command: Export-SPWeb https://test.mywebsite.com/site -Path "export....
1
vote
1answer
785 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
2answers
23 views

How to delete timer jobs on a site collection?

I am deleting features with powershell script but timer jobs of those features did not get deleted. It will also be fine if I can delete timer jobs run on a site collection. Please advise.
0
votes
5answers
1k views

apply masterpage to site collection and all subsites - SharePoint foundation 2013 using powershell

I'm working on a **sharepoint foundation 2013.**I have applied a custom masterpage on the root site the site collection.I would like all the subsites to inherit this masterpage and apply across all ...
0
votes
0answers
20 views

Install solution automatically after adding solution using powershell

I am using powershell to update and deploy solutions UpdateSolution.ps1 Add-SPSolution -Identity SomeWP.wsp -LiteralPath $PSScriptRoot\SomeWP.wsp -GACDeployment Add-SPSolution -Identity SomeWP.wsp -...
2
votes
1answer
964 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 ...
1
vote
2answers
42 views

Full URL for Task in a list via powershell

I need to extract the full URL for a 'task' in a 'task list' via a PowerShell script. My goal here is to extract this URL, report on it and the end user can click on the URL and it would take him ...
0
votes
1answer
23 views

Update all master pages and default.aspx files of all site collection

I have a task to update all master and default.aspx pages of all our sites (about 30 sites). The task is to add a block of code including site name and links to scripts and styles. I am not sure ...
0
votes
1answer
18 views

How to enable/disable sharepoint 2010 farm scoped features using powershell?

I've got all I need to know about the feature. I just want to enable it. When enabling site, web or webapplication scoped feature I use to call this cmdlet: Enable-SPFeature -Identity <...
1
vote
1answer
47 views

Add a multiple lines of text column to a list allowing unlimited lines of text, html enabled using powershell

Below is my code, param([string]$workspaceUrl) [Microsoft.SharePoint.SPSecurity]::RunWithElevatedPrivileges( { $site = SPSite($workspaceUrl) $web = $site.RootWeb $spList = $web.Lists["...
0
votes
1answer
22 views

SP2013 DatePicker iframe is missing height and left in style attribute

I have a Webtemplates Solution based on the PROJECTSITE template and the seattle.master. After deployment all site collections based on my template will be provisioned by powershell in an automated ...
1
vote
1answer
17 views

Add a user with full control rights on multiple site collections from one import csv

I have aa Excel sheet which have multiple site collection sites (around 600) of same web application. I want to add a user with full control rights on all the site collections from Excel sheet. My ...
1
vote
1answer
28 views

Get the outgoing email Server Settings using powershell

I am trying to return information about outgoing email server setting from Central Admin. I manage to return the outbound SMTP server information using the following: (Get-SPWebApplication -...
0
votes
0answers
16 views

Exception setting TermSetId : Cannot convert null to type System.Guid when creating Taxonomy Site Column

Am trying to create a Taxonomy site column using the below PowerShell script. But am getting the error : > Exception setting "TermSetId": "Cannot convert null to type "System.Guid"." Add-...