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
1answer
31 views

Creating a site collection doesn't seem to accept the template

I'm creating a site collection and trying to apply a template to it Here is the code: $Siteurl = "http://myserver:8010/sites/sitex5" New-SPSite $Siteurl -OwnerAlias "mydomain\sp2k13admin" -Name "...
0
votes
0answers
25 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
1answer
38 views

Cannot get scripts to run in PowerShell

We installed SharePoint 2010 on Server 2012. I am trying to install FBA, but cannot get the deploy script to run. First I switch to PowerShell 2.0 doing the following: Windows PowerShell ...
0
votes
0answers
19 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
55 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
23 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
32 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
1answer
30 views

Get size of a ListItem

I've been recently working a lot of scripting with Powershell 2.0 towards SharePoint 2010, tasked with building various scripts that would for example print some information about 10,000 lists, as a ...
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
19 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
18 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
1answer
37 views

Import-SPWeb Into Host Named Site Collection

I have made a backup of a SharePoint Site using Export-SPWeb. I have also added a new Host Named Site Collection and I would like to Import the Site into this newly created Host Named Site Collection. ...
0
votes
0answers
19 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
16 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
36 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
21 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
21 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
1answer
21 views

PowerShell SharePoint Online CSOM Delete Versions

How do I delete all versions from a file except for the last 10?
0
votes
1answer
42 views

Migrating Team Site from OnPrem to SPO

I've been trying to get whole site migrated from OnPrem environment to SPO, using following instructions: https://technet.microsoft.com/en-us/library/mt210445.aspx#PrepContentPackage OR https://blogs....
0
votes
0answers
42 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
43 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
1answer
35 views

How to add a content type field to a SPList using PowerShell

This the scenario: I have created a new LookupField (Content Type) called MyLookupField which derives from SPFieldLookup as shown below: public class MyLookupField : SPFieldLookup { ... } Here's ...
0
votes
0answers
13 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
1answer
29 views

PowerShell/CSOM - SPFeature definition is blank

I'm using this PowerShell/CSOM script to return a the GUIDs of the features on my SharePoint site. It works as expected, however I would like to get the name of the feature as well. Here is the ...
0
votes
1answer
42 views

Is there a way, with CSOM/JSOM/REST, to find all the managed property names for a list or content type?

I'm writing a PS script to update them to be searchable and to add aliases, and the task is taking a while. I need to find the managed properties that exist without manually searching for them or ...
0
votes
0answers
27 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
1answer
32 views

CAML to get all checked out docs

I ran the following powershell however, it only list 20 items and in reality I have about 50 items for the site I am running for. I am the farm and site admin. I see 50 files when I go to the library ...
0
votes
2answers
18 views

power shell scritpt to back up a site collection with no content

Can you please let me know if we can backup a site collection with out data using poweshell. I know how to do with data, but i dont want with out content, Any help is greatly appreciated
0
votes
2answers
48 views

Timeout in Import-SPMetadataWebServicePartitionData method - Powershell

We are having an issue with importing managed-metadata from our live environment into the test environment (Sharepoint 2010 Standard). We are using this code to import the managed-metadata: $...
0
votes
0answers
18 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
47 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
1answer
36 views

Powershell Date Parsing for Sharepoint Set-SPOListItem Update

I am trying to parse a CSV file in Powershell for a bulk file and metadata upload to SharePoint Online and am failing on the date fields. The incoming date format is '2007/12/24', the expected SPO ...
0
votes
2answers
27 views

get-spmanagedaccount how to get the samaccountname and not sid

When I do following i get sid. How do i get the account name (domain\svc-search) etc. foreach($ma in get-spmanagedaccount) { write-host $ma }
0
votes
1answer
28 views

changing service accounts password - powershell way

I have about 10 service accounts for SharePoint 2013. Is there a good PowerShell script that I can use to change the password for all of these accounts? I have seen this http://www.mstechbits.com/...
0
votes
0answers
22 views

Powershell Script to find URL's on content pages, lists and libraries that point to a specific url in SharePoint 2010

I'm trying to search through SharePoint 2010 to find links that point to a broken URL using PowerShell. Is there an easier way?
0
votes
0answers
44 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
1answer
58 views

SharePoint 2013 - Export site error

I have a problem by exporting a SharePoint Site by using Export-SPWeb on my SharePoint 2013 server. The error code is: Export-SPWeb: These columns don't currently have unique values. Is it ...
0
votes
0answers
22 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
14 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
37 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
246 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/...
0
votes
4answers
44 views

Cannot updated item Author and Editor with powershell

I've copied some files from one library to another with Powersehll. Now I'm trying to update Author and Editor. Unfortunately, the author remains the user with wich I copied the item and the editor ...
0
votes
0answers
33 views

Add custom tiles to waffle menu in O365 using Powershell Script

I have a requirement to add custom tiles in the waffle menu of O365. I am looking for a Powershell script for this implementation. Please guide.
0
votes
1answer
81 views

unable to update user profile properties with custom value

I am using a custom powershell script to update SharePoint Online user profile property (mobile number) with a custom value reading from a text file. but it is always throwing the error as ...
0
votes
1answer
65 views

Powershell for SharePoint Online active users

I would like to know how to generate a list of all active users in a SharePoint Online site, and its sub sites in a csv file, including the following information: Date of creation of the csv file ...
0
votes
0answers
15 views

Looking for a script to show where a solution is active in SharePoint 2010

I'm able to see that the solution is globally deployed (in CA) and I am also able to get the SolutionID with no problems. I'm looking for a way to show everywhere the solution is actually active and ...
0
votes
0answers
21 views

PowerShell Report on files uploaded during a certain time period

I'd like to generate a report using PowerShell that will tell me which files have been uploaded into a document library within a certain time period. Ex: The last month. I found this script which ...
0
votes
0answers
8 views

Cross Site Collection Boundary for SPFieldLookup

I am looking for a solution similar to this post, Cross-site and SPFieldLookup, but I need to cross a site collection boundary. Is this possible with modifications to the powershell on the posted ...