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

0
votes
1answer
65 views

Powershell script for user profile properties in SharePoint Online 2013?

Does anyone know of a Powershell script that can be used to pull user profile information from SharePoint Online 2013? The SharePoint server scripts are useless. Particularly, we are looking for a ...
0
votes
2answers
16 views

SharePoint warmup script implementation

I've implemented the SPWarmup script from Codeplex on development and production environment. This script (that can be found here https://spbestwarmup.codeplex.com/) is working well, when I run it ...
3
votes
1answer
316 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
0answers
9 views

Terminate corrupted workflows in powershell

What is wrong with this powershell script to terminate corrupted workflows? I've got this error: An error occurred while enumerating through a collection: Collection was modified; enumeration ...
0
votes
0answers
18 views

Powershell where-object doesn't work

I have this Powershell code that works in 2013, but it doesn't work in 2010, although am using a functionality that supposed to work in 2010, my problem is with the where-object, it's not really ...
1
vote
0answers
8 views

How to compare field changes using powershell to iterate thru the version history

I need to be able to to notify users daily whenever an update to a list item has changed, and give them a list of fields that have been changed. I am using powershell to do this, and send out an ...
2
votes
4answers
687 views

PowerShell Error, Invalid URI: The format of the URI could not be determined

i have typed the following inside PowerShell:- PS C:\Windows\system32> Restore-spsite ? cmdlet Restore-SPSite at command pipeline position 1 Supply values for the following parameters: Path: ...
-1
votes
0answers
18 views

Creating wiki pages using PowerShell

How to create a wiki page using PowerShell in Sharepoint? I have tried every example online without luck. Do we need to use XML code for it to work?
0
votes
1answer
20 views

Show or hide individual subsites using powershell

I want to show or hide subsite link from Parent site top navigation. e.g. from UI i can do it by Show or hide individual subsites and pages On the Site Actions menu, click Site Settings. On the ...
0
votes
1answer
7 views

Copy-SPSite is not recognized

I'm completely new to Sharepoint and was tasked with copying some new sites. However when I opened Sharepoint Management Shell and typed "Copy-SPSite", it displayed the following message Also, the ...
0
votes
0answers
26 views

Restore backup to new SharePoint 2010 server

this issue is piggybacking on a previous Issue I had. I just set up a new SharePoint server for testing purposes, and I want to import the back ups of our production server for obvious reasons. ...
0
votes
0answers
21 views

What's up with the three bytes at the beginning of these SharePoint files?

I've been playing with SharePoint files in PowerShell, and I've notice three bytes at the beginning of most files (forms and master pages): $web = Get-SPWeb ... $masterFolder = ...
0
votes
2answers
442 views

sharepoint 2010 custom wiki library

I am trying below powershell script for change wiki content Add-PSSnapin microsoft.sharepoint.powershell -ea silentlycontinue $web = Get-SPWeb "http://dooku/enterprisewiki" $list = ...
0
votes
2answers
48 views

Powershell code raising error while adding contribute permission on term group to everyone

Add-PSSnapin "microsoft.sharepoint.powershell" #Connect to the Metadata Service $taxSite = get-SPSite "CentralAdminURL" # Central Admin URL $taxonomySession = Get-SPTaxonomySession -site ...
1
vote
1answer
324 views

How do I add a lot of contenttype aliases to a new Content Organizer Rule using Powershell?

NOTE! This post is about adding MANY, BUT NOT ALL content types to your rule. If you simply need to create a rule for ALL content types, go straight to the bottom of this post. I'm creating a ...
0
votes
1answer
23 views

Missing operation name or the operation name is invalid

I run the following power shell command inside SharePoint 2013 power shell window:- PS C:\Windows\system32> stsadm -o gl-fixpublishingpagespagelayouturl -url "http://gvstg01/wikilibrary/52" -scope ...
0
votes
1answer
285 views

Error creating SPSite using powershell

I am trying to create a web application "http://Intranet" and a site collection "http://Intranet" on SharePoint 2013 foundation farm. Here is my code $sp = New-SPAuthenticationProvider $web = ...
15
votes
5answers
22k views

Suddenly getting “The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.”

This morning all the development machines at the company I work at, couldn't manage SharePoint through Powershell. We were all getting the annoying "The local farm is not accessible. Cmdlets with ...
0
votes
1answer
20 views

Powershell send email from email field in csv

I have construct powershell to get sitecollection information. What i am trying to achieve is to get all email address of site owner email address and secondary owner email address and put in the CC ...
0
votes
1answer
20 views

Updating a SharePoint list using export-spweb powershell

I have a list in two different sites. Those lists data has to be in sync. But somehow my content guys forgot to do that. What happens when i import the list from one site to another site which ...
0
votes
2answers
1k views

Not able to get Cells.Items method of the work sheet object in power shell

I need to read cells values from a worksheet and i am referencing the following piece of code, however i don't get .Items() method. Code Referred: $objWorksheet.Cells.Item(2,1).Text Also is there ...
0
votes
1answer
17 views

Replicate site collection with a different URL and retain its content

I have a site collection that is published externally and is constantly getting updated with newer versions of files. The business has a requirement where we need some external users to only see ...
1
vote
2answers
22 views

Delete the defualt folder in sharepoint 2013

i have used the below scripts to delete the folder in sharepoint 2013 This folder is generated by while creating my site which always creates the same folder name in the "Documents" Document ...
0
votes
2answers
65 views

create wiki pages in site pages library using powershell

Create Wiki Pages in site pages library using Power shell in sharepoint 2010. Please help.
0
votes
0answers
9 views

Delete the default folder in sharepoint 2013 using powercell [duplicate]

whenver im creating mysite each user aving default folder in document lib. Shared with every one. so my requirement is to delete the "shared with every one" folder in all my site. is there any ...
2
votes
2answers
80 views

Powershell return properly the selected value from multi-choice field

In my powershell script I want to fetch the value of a mulit-choice-field in a sharepoint list. The problem is that although the value is returned, it is encased in ;# - for example, I would receive ...
0
votes
1answer
29 views

check if list has already been created

I've written a bit of powershell for creating a list just wondering how add say an if statement to check if its already been created. In Client side not server side here is my code : param( ...
0
votes
1answer
323 views

How to associate sharepoint 2013 designer workflow to content type for retention policy using powershell?

I am having a requirement to write a powershell script which should attache workflow to content type in sharepoint 2013. basically it is require to create a retention policy which should start a ...
3
votes
4answers
2k views

Remote Access to SharePoint Lists with PowerShell

I have a PowerShell script that pulls data from a database. I need to push this data to a SharePoint list on a different server. Would you have tutorial or examples that show how to do this ...
1
vote
2answers
40 views

Upgrade Sharepoint 2013 solution

I have a Sharepoint solution installed. I want to install a newer version of the solution as an upgade which I did using : Update-SPSolution –Identity MySolutionName.wsp –LiteralPath ...
0
votes
0answers
18 views

How to register a new SharePoint App using PowerShell (instead of appregnew.aspx)?

I'm uploading my SharePoin Provider Hosted App and installing everything via PowerShell, but the only thing that I cannot find is if it's possible to register a new app using a PowerShell command ...
1
vote
1answer
80 views

How to use CSOM/Powershell to update list item(s) in O365 from CSV

Not a programmer, but need to get a job done. Using Powershell and CSOM I've found examples and been able to import CSV into a list as new items. That is working. Here is a code snippet I'm using ...
1
vote
2answers
198 views

SharePoint Online PowerShell cmdlets: Get Group's Ids

I need to export my site collection's groups from sharepoint online. I have create the following script to get all the info but I cannot retrieve the group's Id. I am talking about this ID ...
2
votes
3answers
206 views

How can I create a new RoleDefinition in powershell

I need to create a new RoleDefinition and apply it to a group. Is that possible? How can I do that?
2
votes
2answers
272 views

Activate webfeatures on all SharePoint online webs

I want to activate a webfeature on all subsites of a sitecollection in Office 365 / SharePoint online. I thought i can do the actions in a SiteCollection Feature, but that's throwing a timeout error. ...
0
votes
1answer
288 views

Backup-Spsite always failing with HRESULT 0x80131904

While taking backup of Site Collection on SharePoint 2010 using powershell command "Backup-SPSite" I always encounter below error : "Backup-SPSite : Exception from HRESULT: 0x80131904 At line:1 ...
0
votes
0answers
12 views

Revert Restore-SPFarm

We have a SharePoint test server and SharePoint live server. They are on the same network The administrator for each is the same Active Directory account. I know this is wrong but as a programmer ...
0
votes
0answers
26 views

New-SPWOPIBinding Cannot Contact Office Web Apps Farm

I'm trying to attach my sharepoint dev enviroment to a OWA server. I've got the Web apps server up and running and serving our live enviroment with no problems. I want to bind our dev platform to the ...
0
votes
0answers
19 views

Access powershell variable in next command- Can not convert the value of type “System.String” to type xxx

How to execute both commands in powershell. I get below error. I want to access $ Db in next powershell command. $ Db = Get-SPBusinessDataCatalogThrottleConfig-Scope ThrottleType Items ...
0
votes
2answers
17 views

Customize a webpart directly added to pagelayout

I have a page layout with embedded web parts. These web parts are not added in any web part zones. I want to edit properties of the web-part but when I edit the page I cannot see any way of doing it. ...
0
votes
1answer
19 views

The term 'Get-SPBusinessDataCatalogThrottleConfig-Scope' is not recognized as t he name of a cmdlet, function, script file, or operable program

If you are working with a larger external list (more than 2000 items) in dev environment it works perfectly, but when you work in production environment, it throws error Unable to display this Web ...
1
vote
0answers
27 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
2answers
50 views

How to add User as Farm Admin

I am trying to deploy a SharePoint web part (deployed on a SharePoint 2007 server) to a new SharePoint 2010 server. I am connected to it via Remote Desktop Connection. When I run (as admin) Windows ...
0
votes
1answer
21 views

Export a list definition to text file or script?

Is there any reasonable way to export a list definition to a text file or script so it can be used to create a new list after some tweaks to the column names, and the addition of some additional ...
0
votes
1answer
35 views

different version error when restoring a SharePoint site collection

So I created a new single farm SharePoint server for testing purposed (we currently had a live production farm but no testing server). I am trying to restore the back ups of the live server to the ...
0
votes
0answers
30 views

Update managed metadata Multi Value

I have a list which uses a managed metadata column, that is configured to have multiple values. I need to update the particular items in the list which have a specific term, and change it. For ...
0
votes
0answers
10 views

Save as template PowerShell

As in my previous question : Upload site template PowerShell I tried to upload a saved Site Template (.wsp file) to my new Site the way i can create new subsites based on this Site template, when i ...
0
votes
0answers
15 views

SharePoint 2010 PowerShell command get required parameters

I am new to powershell and I want to validate a tricky rule. Let's assume I enter Get-SPSite as command and it may have required params as well. Assume Identity is required Params for Get-SPSite ...
0
votes
1answer
45 views

Need help using powershell to create list items

I based my code from this example it stated it had the ability to create list items with attachments from existing list items in a new list. I liked this example because I would like to archive old ...
3
votes
1answer
206 views

Deploying and Installing Sharepoint apps into App catalog using CSOM

Can anyone suggest me on how to use SP.AppCatalog() in JSOM or CSOM and get the all apps in AppCatalog, Not AppInstances..