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 ...
0
votes
2answers
22 views
Cannot retrieve a list by display name via PowerShell
I am replacing a colleague for the support of a SharePoint 2010 intranet.
In PowerShell console : I can retrieve a list by its display name from the Lists collection of a SPWeb object.
In a PowerShell ...
0
votes
1answer
301 views
Erro while assing permissions to group
I used the folowing stmt to add permissions to group:
$spWeb.RoleAssignments.Add($roleAssignment)
gives following error
Exception calling "Add" with "1" argument(s): "This operation is not
...
1
vote
2answers
321 views
Create a site collection policy programmatically
I have a requirement to create a site collection policy (retention policy) programmatically. It can be either a powershell script or in C# using Visual Studio 2010. I did a lot of research and am not ...
1
vote
2answers
25 views
How to collate/merge two different lists, with the same colums into one list
I have got two different lists. One is live updated by many users. The second list has the same fields and works as the master. I want to every day, at 6:00 o'clock a.m, merge List one with list two.
...
1
vote
1answer
699 views
How to insert data into Managed Metadata field of any Document Set using PowerShell?
I am creating a Document Set for a library using powershell and that document set contains some mandatory managed metadata fields. I am able to create document set but how can I insert data into those ...
3
votes
1answer
471 views
Create a site using powershell for a custom site definition
I have created a custom site definition which I can see and create a site using my custom definition with the UI. However, if I try to create a site using powershell I get an error saying WARNING: ...
0
votes
3answers
749 views
Create Library with PowerShell
I want to create libraries in SharePoint 2010 using PowerShell. So far, so good.
I'm using this chunk of code to create the library (actually list, but that doesn't matter)
$listTemplate = ...
0
votes
0answers
16 views
Get-SPSite : There was no endpoint listening at securitytoken.svc
Get-SPSite : There was no endpoint listening at
http://mydomain.com:32843/SecurityTokenServiceApplication/securitytoken.svc
that could accept the message. This is often caused by an incorrect
...
1
vote
0answers
17 views
How do I fully automate Restore-SPFarm?
I have heard that it is a best practice to maintain a QA environment for SharePoint. I would like to script a nightly restore from our production SharePoint 2013 farm, which I'm successfully backing ...
0
votes
0answers
9 views
Activating features like FeatureManifest order
I am deploying a solution using powershell. When I activate the features of the solution some of them have dependencies and I get an error when using Enable-SPFeature command. In the package of my ...
0
votes
0answers
21 views
One or more field types are not installed properly, how to check in which field is it failing?
I am getting this error in a timer job that I did not develop.
Error: One or more field types are not installed properly. Go to the list settings page to delete these fields. ...
0
votes
1answer
359 views
Powershell error while iterating through sites quicklaunch and deleting a specific node
Hi I've put this question up here : http://stackoverflow.com/questions/13130785/delete-navigation-node-with-powershell-from-sharepoint-quicklaunch-in-all-sites but no answer yet so posting here too.
...
0
votes
0answers
18 views
Powershell: Move up arrow in user profile property doesn't work
I have used a PS script to create a User Profile Property within a User Profile Section and setting a DisplayOrder in that section.
The Script works as expected, the problem is that when I click on ...
0
votes
0answers
13 views
Sharepoint 2010 upgrade failed
The health analyzer needed a "Product/path installation or server upgrade required" so I ran the powershell script psconfig.exe -cmd upgrade -inplace b2b -force -cmd applicationcontent -install -cmd ...
0
votes
0answers
37 views
Upload to SP 2013 Document Library with metadata, Powershell problem
As a Proof of Content Assignment i was asked to implement a SharePoint 2013 Document Library to a Local Program. I'm relatively new to Power-shell and have tried to upload .docx files and succeeded.
...
3
votes
2answers
601 views
PowerShell - Create Search Service App Pools (All 3)
How many App Pools are created when you create the Search Service Application?
How can I create all the Search Service Application App Pools using PowerShell and give them all unique names?
I've ...
1
vote
1answer
57 views
Application pool not visible in IIS, SharePoint or PowerShell
I have a PowerShell script that creates a web application using New-SPWebApplication. It crashed for some reason a while back and now it keeps telling me the application pool exists. I've looked in ...
0
votes
0answers
40 views
Indexed columns and the change of locale (SharePoint 2010)
If I change the locale under regional settings in SharePoint 2010, I get an exception like this:
The column "column1" in the list or library "list1" has been marked for indexing. Please turn off ...
1
vote
1answer
27 views
Get SharePoint Group Permissions Via PowerShell
I am looking for a PowerShell command to get the permissions of a SharePoint group on a securable object.
I have googled for a while but without success.
I am aware of the ...
0
votes
1answer
11 views
Restore SharePoint 2010 Site - Different schema version
I have a backup of a SharePoint site (14.0.6114.xxxx December 2011 CU??) and I tried to restore it to a different farm with version 14.0.6106.xxxx April 2011 CU???. As expected I got the schema ...
1
vote
1answer
930 views
Powershell CheckIn Throwing null-valued expression error
I've got a script that goes through subwebs of a sie and adds a webpart to the page. Everything is functioning correctly, until it's time to check the file in. I get the following error:
You ...
1
vote
2answers
39 views
Recreate a List in many subsites of a site collection using powershell
I have to recreate the same List in several subsites within a site collection. I saved my List as a template but it will be very time consuming to add the List manually to all of my subsites using the ...
0
votes
1answer
318 views
Not able to get Cells.Items method of the work sheet object in power shell
I need to read cells values from worksheet and i am referening folowing piece of code, however i don't get .Items() method
Code Refered: $objWorksheet.Cells.Item(2,1).Text
Also is there any other ...
2
votes
5answers
1k views
Adding new webparts to an already deployed solution
I have a webpart project built in visual studio 2010 and it has been deployed successfully to my production environment. I recently had to make some changes to the webpart and also needed to add a ...
2
votes
0answers
22 views
Update Custom Forms with Powershell
I'm trying to update custom forms of SharePoint lists in a large amount of SharePoint 2010 subsites with powershell.
I'm not quite sure what the correct approach is. The form itself can be found as ...
0
votes
1answer
2k views
powershell script to add a managed metadata column
$webURL = "http://xxx/sites/wingtipcalculator"
$spSite = New-Object Microsoft.SharePoint.SPSite($webURL)
$spWeb = $spSite.OpenWeb()
$listTemplate = $spWeb.ListTemplates["Custom List"];
...
1
vote
1answer
40 views
“User cannot be found.” error in Powershell
I am writing a PowerShell script to re-sync my users to the AD because of a problem I have described Here. From time to time I get a "Set-SPUser : user cannot be found." error but when I call the same ...
0
votes
5answers
635 views
Can't find termstore sharepoint for metadata
I'm using powershell to add metadata to my termstore. When i go to the central administration, in metadata service I can see that i have one termstore. But when i try to access it through :
$session ...
1
vote
3answers
341 views
How can I change Document library permissions for all site collections using powershell?
Total Powershell newbie here, but I have managed to write a couple scripts so far that have been working.
We are using 2010 Enterprise edition, and I have been tasked with creating a script that will ...
0
votes
2answers
48 views
Backup-SPFarm hangs silently on MOSS 2013
I have a 3-server SharePoint 2013 farm (db, app, web) set up and working enough to put in some demo content, and am trying to configure backups. I've successfully backed up using Central Admin but I'm ...
0
votes
1answer
40 views
PowerShell: Upload documents to folder in document library
I'm using SharePoint Foundation 2010.
I have to make a PowerShell script that copies a structure found on a network share. Its all good except for one thing... I know how to make Document Library's ...
2
votes
1answer
675 views
creating site collections using SharePoint management shell 2013
I am creating Site Collections for Testing SharePoint. I am using Host Named Site Collection to do that instead of the path based site collection addressing.
For that
Got a reference to the HNSC ...
0
votes
1answer
36 views
Enable-SPFeature : The Feature is not a Farm Level Feature and is not found in a Site level defined by the Url
I'm trying to activate a web level feature using powershell with the following command:
Enable-SPFeature –identity 3ad4787b-e859-432c-be22-c772725e0dbc -URL ...
2
votes
1answer
582 views
Uploading a file using powershell and updating column values
I am trying to upload a file from a local drive to a sharepoint doc lib, this much I have been able to find, however, I also want to update a column relative to the file, foe example, I have a company ...
0
votes
2answers
352 views
How can I export external content type as a BDCM file with powershell?
I can export external content type from SharePoint Designer or Central Administration. However, I want to export ect as bdcm file with powershell in order to export ect automatically.
There is an ...
0
votes
1answer
406 views
Powershell and CredSSP in Production Environments
I try deploy Sharepoint WSP projects using PowerShell Remoting.
See PowerShell Remoting Sharepoint 2010 Error
Solution is configure CredSSP for Sharepoint.
But Microsoft says:
Caution: Credential ...
1
vote
1answer
1k views
how to Update/Add list items via New-WebServiceProxy in powershell?
Over View:
I’m trying to automate updates to a SharePoint list using PowerShell via the Web service object.
The end goal is to remove items all from the list, then import new data via a csv file.
...
2
votes
2answers
308 views
Is there a way to assign a search server to a content database using PowerShell?
Is there a way to assign a SharePoint Foundation search server to a content database using PowerShell, either while creating an Sp-WebApplication using New-SpWebApplication or by updating an ...
0
votes
1answer
80 views
Powershell Script to generate site collection administrators, site URL, Site Name,Members in the group named 'owners'
I have a requirement currently to generate all the Sharepoint site in a Web application with the following information:
Site URL
Site Name
Site Collection Administors : ID or name
Members in the group ...
1
vote
2answers
722 views
Importing/uploading files from file share to SP 2010 Doc Lib using CSV
Can someone please provide a good link (or if you already have a powershell working) that can import files from file share into SharePoint document library using a cvs flat file. I have about 20 ...
0
votes
0answers
66 views
Workflow history no longer accessible-object reference error WrkStat page
The workflow history was >6m records, so I have redirected all workflows to rite to other custom history logs while running a job to purge 1k records every 15 minutes. When I attempt to check the ...
0
votes
1answer
459 views
SharePoint 2013 Distributed Cache “cacheHostInfo is null” with “Remove-SPDistributedCacheServiceInstance”
I am attempting to remove a server as a cache host in my SharePoint 2013 environment.
Currently the service shows as Stopped on the server that I am attempting to remove from the cache cluster. I ...
0
votes
2answers
172 views
How to get all managed accounts and create a new one using PowerShell in SharePoint 2013
I need to get all Managed Accounts in SharePoint 2013. If there are nothing, I need to create a new one. How can I do this using PowerShell?
1
vote
1answer
41 views
How can I find the Feature Activation Dependency Powershell
I am running a recursive function that activates many features in powershell however I need to find the child feature a feature is dependent on before it is activated. How can I do this in powershell.
...
0
votes
1answer
283 views
Unable to get the metadata into list when trying to populate data from csv file using powershell into list
I was trying to import the csv file with 5500 items in it and it is also having metadata items when i try to use powershell script to populate the data from csv to list everything is showing in list ...
3
votes
2answers
443 views
How to export a list in SharePoint 2010 and import it into 2013
Is there a good free way of exporting a list in SharePoint 2010 and importing it into 2013.
Need to keep structure, data, attachments and other data but revisions, permissions etc not necessary.
...
8
votes
2answers
7k 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 ...
2
votes
1answer
434 views
How to change name and description website?
I need to create a script that creates a page based on a tamplate.
New-SPWeb -url http://site/project/project01 -template OFFILE#1 -name "01"
Import-SPWeb http://site/project/project01 -Path ...
0
votes
1answer
473 views
How to add file to a SharePoint Library that is in a subsite
I can successfully connect to the "Shared Documents" library at root site and add a file to it.
What I can't do is connect to a library that is a few layers down so I can add the file:
The Root Site ...
0
votes
2answers
302 views
Powershell Get Replacement info from User Profile for all users
I want to extract info regarding Username and Replacements from the users profile properties for all users and have it written to a csv file.
Maybee through a powershell script so it can run in a ...


