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)

1
vote
0answers
944 views

Getting the following error: Another topology activation is in progress

I am using Search Server Express 2010. I am creating Search application using PowerShell scripts. After creating crawl and query components, i am activating them. First activating crawl component $...
0
votes
0answers
10 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....
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
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 ...
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 ...
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 -...
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-...
0
votes
0answers
8 views

PowerShell - Grant permission for an ADFS user to a site

When I'm using PowerShell to add a normal user to a site everything works fine. But how can I add a ADFS user to my site with PowerShell? ADFS is default (intranet) and NTLM is active for the ...
0
votes
0answers
5 views

Export Business Data Catalog Config (SharePoint 2013)

I use cmdlet Export-SPSiteSubscriptionBusinessDataCatalogConfig for export all data from the Business Data Connectivity Metadata Store associated with a specified partition. But needed entity ...
0
votes
0answers
45 views

Deploying .wsp packages

Here is my problem, after I update the .wsp packages, the status became "error". This happened to me before, and the quick fix that I did is to remove the solution, then add and deploy it again. I ...
0
votes
0answers
14 views

SSA Did not match 6e593d81-0d52-4cb8-abc6-34598b346ca

I get this error in the logs SSA Did not match 6e593d81-0d52-4cb8-abc6-34598b346ca. Search isn't pulling back from a certain site collection. I had a faulty search service which I then deleted and ...
0
votes
0answers
24 views

SharePoint 2013 - powershell site permissions

I want to know, if it is possible to reset the site permission via powershell or with the central administration. So our problem is, that at a subsite (mainpage/subsite/...) the users have the full ...
0
votes
0answers
13 views

Getting the values of multivalue person or group fields using PowerShell CSOM

I have this list in SPO with two custom fields: Field 1: ReportedBy (single user or group) Field 2: Witnesses (multivalue user or group) I created a new list item and populated both fields with '...
0
votes
0answers
47 views

Delete item with specific name from a list in SharePoint online

I am trying to delete a file using powershell with a specific name from a document library with the following code but I couldn't $SiteURL = "https://mytest-my.sharepoint.com/personal/...
0
votes
0answers
11 views

Powershell SharePoint 2010 capture Permissions of folders in library with Broken Inheritance

I am looking for some code to find all users or Ad Group who have some sort of permission in specific folder (with broken Permission) in a specific library of a team-site. With the following code I ...
0
votes
0answers
20 views

use powershell to list all running workflows

We've got a couple of workflow templates that are running in a bunch of sub-sites. I need to produce a list of all running workflows, but I can't seem to get the workflow names to show up. I can get ...
0
votes
0answers
51 views

Problem facing in Add-PSSnapin Microsoft.online.sharepoint.powershell

I want to get SharePoint data, but the problem I have faced is when I try to run Get-Spsite or Get-Spweb it shows and error that The term 'get-spsite' is not recognized as the name of a cmdlet, ...
0
votes
0answers
19 views

Adding custom template on a not English site collection

Has anyone experience with adding a custom template to a Site Collection in another language except English? I tried in English and it worked fine. $Siteurl = "http://myserver/sites/...
0
votes
0answers
60 views

How to get user in PowerShell for SAML Claims authentication

I am using this PowerShell to add a user to a group. This code works for our Windows claims users: $site = Get-spsite "https://test.contoso.com" $web = $site.RootWeb $claim = New-SPClaimsPrincipal -...
0
votes
0answers
12 views

Change Composed Look on muliple Site Collections

I need to create 100+ site collections in SP2013. I have a PowerShell script and XML file to achieve this (and is working). However, marketing want to brand and change the look of the Team Sites - I'...
0
votes
0answers
31 views

Automate to add new or update Csv files to Office 365 Sharepoint List

I have a few .csv file that I want to automate it so that it will add or update(if existing) into Office 365 SharePoint list. Is there anyway to do it via powershell? If so, is there an reference or ...
0
votes
0answers
28 views

user profile synchronization not working

I had a issue with my user profile synchronization and i recreated a new user profile synchronization and once i did that i when into "Configure Synchronization Connections" then created new ...
0
votes
0answers
22 views

How do I remove the current Subscription on SharePoint Central Admin of update it

I have been getting this error in Application Management-->Manage Service Application.In this the error comes Subscription Service Application Microsoft SharePoint Foundation Subscription ...
0
votes
0answers
99 views

Exception calling “ExecuteQuery” with “0” argument(s): “The remote server returned an error: (403) Forbidden.”

Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll" Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web ...
0
votes
0answers
30 views

map the term set to site column of SharePoint Online OR Office 365 with powershell script

I have to create site column with metadata type and have to assigne it with the TermSet with powershell or CSOM with SharePoint Online OR Office 365. Is it feasible and how? Thanks, Ram.
0
votes
0answers
45 views

SharePoint Online Map term set to Managed Metadata column in Power shell Script using CSOM

In SharePoint Online using power shell script, I have created Managed Metadata column.. Now in my TAXONOMY TERM STORE i have term store in group , now i am trying to mapped that term set to managed ...
0
votes
0answers
24 views

PowerShell script for Site map

In this thread they have a script that does what I need. However when I put in my intranet site location for SharePoint I get an error saying it cannot find the object. Is the reason why the script ...
0
votes
0answers
21 views

Activate Globally Deployed Master Page

I tried to deploy a solution to Sharepoint 2013, consisting with only master page. However, while I can activate it with GUI just fine, I cannot find a way to activate it using powershell. ...
0
votes
0answers
23 views

How to delete a non-responsive query component from search topology using PowerShell?

How to delete a stuck and not responding query component from a search topology in SharePoint 2010? This query component worked fine before but it is not responding because the web front end server ...
0
votes
0answers
31 views

Installing Install-SharePointPnPPowerShell.ps1 - PnP-Powershell responsive package

I'm trying to install the Install-SharePointPnPPowerShell.ps1 but i'm stuck with the options listed. I want to use the PNP-Poweshell responsive package. I typed in " SharePoint Online" and enter but ...
0
votes
0answers
17 views

Get .app path after publishing SharePoint hosted app

How can I get the path of the new .app that's created on publish? I want to use it in a post-build event (powershell). Obviously the path pops up after publishing so I know where it is, just can't ...
0
votes
0answers
60 views

Register-SPWorkflowService : The remote server returned an error: (404) Not Found

My environment consists of two servers, which are as follows: SharePoint 2013, installed on Windows 2008 R2 Workflow Manager 1.0 (version 2.0.20922.0), installed on Windows 2012 R2. This box does ...
0
votes
0answers
22 views

Load SQL and SharePoint in PowerShell script

I need to create one PowerShell in which i am using SQL and SharePoint both. In my development environment it works fine because there is single server for Content DB server and WFE server. But in ...
0
votes
0answers
29 views

Powershell script to automate, attaching workflow with association form data

I have a custom workflow with custom association form and my requirement is to attach the existing custom workflow to any of the newly created site and provide the values to the association form....
0
votes
0answers
57 views

Associated owner group is always null

I am using PowerShell to create site collections, and add users by code. I add users as visitors, contributors and as owners. In my powershell code I can get both the Visitors and Contributors group, ...
0
votes
0answers
16 views

Alerts Changed via Powershell do not show updates in SubEdit.aspx

I'm having a weird issue when trying to update user alerts via Powershell. I am able to update the alerts, and getting properties on the alerts as well as practical testing shows that the alert ...
0
votes
0answers
67 views

How to use List.Rootfolder.Files.Add to add Check-In Comment?

I am bulk loading 288K files to a DoclIb on SharePoint Online using OfficeDevPnP.Powershell.V16 and need to add a Check-In Comment programmatically. Currently I first upload the file, then call Set-...
0
votes
0answers
15 views

How do I get a document set into a Powershell array instead of a SPListItem

I'm writing some powershell to supplement a 3rd party application. I'm trying to get a group of specific document sets into an array. the problem is the array is being populated as SPListItems, not ...
0
votes
0answers
35 views

Cannot delete item that “does not exist”

I can see the item in the browser and I can find and return the item in powershell, but when I try to delete the item, I get "Item does not exist. The page you selected contains an item that does not ...
0
votes
0answers
20 views

SharePoint Powershell rekove site-permissions

Based on a .csv with all the students, i am creating a subsite for each schoolclass and a document library for each student. I am breaking the inheritance for the sites and libraries, but the Admin ...
0
votes
0answers
68 views

SPO Management Shell: ConvertTo-SPOMigrationTargetedPackage

I've been having some problems with the SharePoint Online Management Shell that I hope someone here can help me out with, as I quite frankly think the error documentation is scarce, to say the least. ...
0
votes
0answers
55 views

Sharepoint 2013, access Most Popular Items in Library via Powershell

I'm creating a script to get some of the statistics SharePoint 2013 offers in a single file. The problem I'm facing is that I'm not able to get the most popular items for my document libraries. My ...
0
votes
0answers
28 views

How to deactivate webparts using powershell script

I want to deactivate forum and note board web part form my SharePoint site using powershall script. Any help please ? Thanks in advance :)
0
votes
0answers
23 views

Get size of any particular generic list using power shell

How can I retrieve size of any generic list. I know how to calculate size for document libraries and List item attachment. But not sure about any particular list item or generic list. ...
0
votes
0answers
17 views

SharePoint Online Management Shell, Search commands

I am having an issue with the global search center on Office 365, I have set the Global Search Center URL in the admin portal however it is not being picked up by all sites. I am still being taken to ...
0
votes
0answers
47 views

What's the c# equivalent of New-SPClaimsPrincipal in powershell

I am using following powershell command to get AD group claim from FQDN of AD grp $ADclaim = New-SPClaimsPrincipal -TrustedIdentityTokenIssuer "trustedIdentifierName" -ClaimValue "cn=adGrpame,ou=xxx,...
0
votes
0answers
345 views

The specified user could not be found." with EnsureUser with Powershell

I was trying to get a user with EnsureUser to make sure that if the user doesn't exists on the site collection, it is added right away. Write-Host "LoginName" $usernameau #this prints mydomain/...