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
vote
2answers
724 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 ...
1
vote
2answers
15 views

Copy picture from Document Library to Mysite Profile Picture

Today we have picture of all the users in a document library. https://site.url/.../username_jpg.jpg I would like to use these pictures of them on mysite. Can I use powershell or something else that ...
0
votes
1answer
21 views

SharePoint 2013 Create Variation Labels with powershell script

I'm actually trying to add variation labels to a site using powershell script (SharePoint 2013), and i know there is no powershell script for the job so im looking at some c# object model and i found ...
1
vote
1answer
38 views
+50

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
1answer
479 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 ...
2
votes
0answers
13 views

check for password protected office documents

I have a need to check through a site collection and find all password protected office documents. My organisation has decided on a policy where password protection on documents will no longer be ...
0
votes
0answers
7 views

how to change Catalog settings of a list by powershell

I would like to change catalog settings of Pages list to make it akt like a Catalog by using powershell. It includes adding Title as "Catalog Item URL Fields" and choosing a Term Set for "Navigation ...
0
votes
1answer
478 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
1answer
22 views

Automatic Logout the User after “X” time in Sharepoint 2013

I need to logout the user in SharePoint 2013 after x amount of inactive time. I tried these options: Modify the node with the timeout attribute. Run some PowerShell code to modify the ...
0
votes
2answers
24 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
323 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
28 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
705 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
474 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
759 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
20 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 ...
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
22 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
30 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
16 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
53 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
614 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
58 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
43 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
33 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
13 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
933 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
48 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
324 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
29 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
43 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
644 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
348 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
52 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
51 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
689 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
42 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
632 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
353 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
413 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
309 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
92 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 ...
0
votes
0answers
67 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
2answers
190 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
43 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. ...

1 2 3 4 5 14