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
2answers
10 views

Sharepoint 2007 - Download Document Library to Local Drive

We've got a Sharepoint 2007 server where I need to download the contents of an entire document library to a local drive. What's the recommended approach to accomplish this in a scripted fashion?
0
votes
0answers
15 views

Error when trying to copy host named site collection with Copy-SPSite

For testing purposes I have created host-named site collection http://portal.contoso.com I am trying to copy this site collection with the Copy-SPSite cmdlet to a new host-named site collection ...
1
vote
0answers
12 views

How to rename a list-associated SPD2013 WF?

I have 20 sites that all have the same SPD2013 WF - it is a WF that executes on a specific list when an item is added or changed. We goofed on the naming of the WF and would like to rename the WF. Is ...
0
votes
0answers
21 views

Run PS Script from workflow SP2013

I saw the great feature developed by iLoveSharePoint here. But this is for SP 2010, and 2013 compatibility is not sure. Have you heard about any other stuff to do the job ? Running powershell scripts ...
0
votes
0answers
7 views

Creating a folder with information pulled from infopath form

I have created a form in infopath that allows managers to input new hire information. When this form is created and submitted, it goes to a different library that only HR can see and they can switch ...
0
votes
1answer
28 views

Access denied in powerschell script for Add SPSolution

I have a Windows Server 2012 Standard, named DC. This server is a Domain Controller. I have Sharepoint 2013. The domain is DEVRSG.COM. I log on in DC machine using DEVRSG\Administrator, is Domain ...
0
votes
1answer
42 views

Run Powershell Script from Sharepoint page

I use a PS script to create a list. Instead of a scheduled task, I wondered if I can put a link or a button on a sharepoint page, that when you click on it, it runs a PS Script on the SharePoint ...
0
votes
0answers
11 views

Set-SPAppDomain local

How can I set a local domain for: Set-SPAppDomain "mydomain" Set-SPAppSiteSubscriptionName -Name "mydomain" "mydomain" is just an example. Now for the second command I'm getting this error: ...
1
vote
2answers
48 views

The term 'New-Object' is not recognized as the name of a cmdlet

I want to configure a high trusted app for app dev in SharePoint, and to do so I need first to insert some commands in the powershell editor like : $publicCertPath = ...
0
votes
1answer
15 views

What does “Synchronize” paramter of Install-SPSolution do?

Install-SPSolution command can accept an optional Synchronize parameter. MSDN says that it "synchronizes all solutions or the specified solution in the local farm". But what does this mean? What ...
0
votes
0answers
17 views

Mounting SP database where the DBs names and server names are in a CSV file

I want to mount SP content databases using powershell. The content DBs names and server names are in a CSV file. How to read the CSV file and use the mount -SPContentDatabase command? Can someone ...
1
vote
1answer
19 views

How to set Anonymous access to Site Collection using Powershell

I like to give Anonymous access to Site collection using power shell. How I will do this?
0
votes
1answer
21 views

Removing NewsFeed comments with Remove-SPSocialItemByDate throws SQLException

I am trying to remove all Mysite newsfeed comments via powershell in preparation for a new site release (getting debugging and test comments out, etc.)... I am using the Remove-SPSocialItemByDate ...
0
votes
1answer
32 views

Set Group Description to HTML via PS Script

I am using the following code/function to add groups to a site: function Create-SPGroupInWeb { param ($url, $groupName, $permissionLevel, $description) try{ $web = Get-SPWeb ...
0
votes
0answers
23 views

Create a 2013 Wiki page with Powershell

I have a Sharepoint 2013 instance running on a server. I want to create a script that writes wiki pages from files. So while searching the internet, I found some code for C#, VB, and some PS Code that ...
0
votes
2answers
46 views

Can't obtain Document set author via PowerShell

I try to print Authors of all items of docset list in powershell script: Clear-Host $web = Get-SPWeb "http://dogovor.ab.ru" $list = $web.Lists["Договоры"] $AllItems = $list.Items foreach ($t in ...
0
votes
1answer
20 views

Local farm is not accessible, cmdlets with featuredependencyid are not registered

So after moving all my databases to the new SQL server I run this on my SharePoint central admin box, http://technet.microsoft.com/en-us/library/cc512725(v=office.15).aspx#Man Everything goes through ...
1
vote
1answer
25 views

Make a column unique powershell CSOM

How can I Enforce unique values: in powershell? Client-side as well not server-side Here is the code that I have : $ListInfo = New-Object Microsoft.SharePoint.Client.ListCreationInformation ...
0
votes
0answers
14 views

Is the only supported way to convert users to claims using a web application?

According to Microsoft documentation, Migrate from classic-mode to claims-based authentication in SharePoint 2013, the way to upgrade a classic-authenticated users would be to attach a database to a ...
0
votes
1answer
30 views

Getting the list name from url with PowerShell

I am trying to parse any given SharePoint URL and get back the site, web and list references using the code below. I would like to achieve this even if I provide the URL of an item. The code below ...
1
vote
1answer
18 views

Grant “Replicate Changes” permissions in Active Directory with PowerShell

I'm creating a user in Active directory with PowerShell and need to assign it "Replicate Changes" rights. I can't find anywhere online how to do this.
0
votes
2answers
44 views

Poweshell Site Provisioning example

I want to create site collection and subsites using PowerShell script. It needs to take site name, site template name and owner details as parameters. I am new to PowerShell. Can anyone please help ...
2
votes
1answer
47 views

Creating a view CSOM Powershell

How can I create a view in Powershell using CSOM This works in server side I am unsure how to do it in CSOM $viewQuery = '<Where><Eq><FieldRef Name="IsActive" ...
0
votes
1answer
17 views

Powershell command to change default search scope for a site collection

In my site collection search scope, there are 2 scopes 1. All Sites (default scope) 2. MyCustomScope (custom scope) I want to set "MyCustomScope" as default scope. Is it possible through powershell ...
0
votes
1answer
68 views

Add field to list CSOM Powershell

I have written some code which adds a list client side in powershell : $ctx = New-Object Microsoft.SharePoint.Client.ClientContext($url) $ctx.Credentials = $credentials $web = $ctx.Web ...
-2
votes
0answers
33 views

Convert server side script to client side script

$SPWeb = Get-SPWeb myweb-AssignmentCollection $SPAssignment $SPWeb.ListTemplates | Select Name, Description $SPTemplate = $SPWeb.ListTemplates["Custom List"] $myListGuild = ...
0
votes
2answers
27 views

Updating a view using powershell

I have created a list and added some new fields in my sharepoint site. I now want to add my new fields onto the All Items view using Powershell is this possible? I tried : $viewFields = New-Object ...
0
votes
1answer
35 views

Access personal views in a list with PowerShell

I am trying to first access and then edit Personal Views for a SharePoint List using PowerShell. However only the public views are returned. In the example below the list called List1 has two views - ...
0
votes
0answers
23 views

Mail server settings not changing

Having a strange issue with SP 2010 Foundation. In central admin we have an outgoing mail server set But in powershell if you call (get-spwebapplication)[1] | ...
0
votes
0answers
14 views

Removing permission granted for excel services

When setting up Excel services with an unattended service account, one step is to grant the account access to the web application(s) database that will use the service with PowerShell. $webApp = ...
0
votes
1answer
27 views

Extract Infopath form data to CSV with Powershell

I have several infopath forms. Which contain data. I need to resume some of them in a CSV file. I think I can do it with powershell. Loop in the directory and get all files. But to retrieve data, ...
0
votes
1answer
36 views

Unable to connect web parts using powershell

I am trying to connect a custom webpart (provider) to a ReportViewerWebPart (consumer) programmatically, using a Powershell script. I get the error message below when I execute the following line: ...
1
vote
1answer
19 views

Powershell GetFollowedCount returns 0

Attempting to use PowerShell to obtain some social metrics from our SharePoint farm. One metric I wanted to get was the average number of sites users are following. The following script runs without ...
0
votes
0answers
18 views

updating metadata field

hi have this code but it doesn't seem to enter the while loop, can anyone help $array1 | foreach{ $site = Get-SPSite $_ ...
0
votes
3answers
31 views

Running a PowerShell script on a live server

I have been tasked with creating a report on our current SharePoint 2010 server (on prem). In this report I need to have the user/group permissions on every site and sub sites. Now I believe I have ...
0
votes
2answers
31 views

powershell sharepoint item column

I am searching a list and I want to print out a certain part of the item. I can do it using select web | select list | Select items | select Name just wondering how can I do it like $site = get ...
4
votes
1answer
42 views
+50

Multilingual user interface: Is it possible to Export Translations using PowerShell?

I have a SharePoint Server 2010 Enterprise with several language packs installed. The Alternate Languages have been enabled in the Site Settings and several items have been translated. Is it possible ...
0
votes
1answer
19 views

contents of file into an array powershell [closed]

I have a file with data in how can I put this into an array in powershell The file look a bit like this : name ------------------- this pickle is yes Jimmy Pimms Would be good if I could ...
0
votes
1answer
25 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 ...
2
votes
2answers
64 views

Fetch list item properties using Powershell

I have document library. I want to replace some document properties using powershell. There are multiple properties associated with each document. First I'll need to check for all documents if that ...
0
votes
2answers
30 views

List of pages and their type in SitePages Library using PowerShell

How to get a list of all pages in the SitePages Library and their type using PowerShell? I have created the pages, some are wiki pages and webpart pages.
0
votes
4answers
46 views

How to export powershell output to excel

I have found the custom lists in a particular site and I want to print the names to Excel. How do I do it?
0
votes
1answer
34 views

SharePoint Powershell snap-in Microsoft.SharePoint.PowerShell is missing

I have a weird error. I am trying to get my SharePoint development computer setup and it has been a horrific experience. I was able to get my SharePoint instance installed properly. When I run ...
0
votes
1answer
30 views

get the value of a managed metadata item

I have a column called mark it is a managed metadata column. I want to print out the values of this column, how do I do this?
0
votes
1answer
69 views

how to checkin all checked out files via powershell?

We have in our environment installed Gary LaPointe powershell cmdlets and I found this script Get-SPCheckedOutFiles which returns all checkedout files, now I need to forcely check them in, not ...
0
votes
1answer
33 views

Setting Managed metadata field

I am trying to update a managed metadata field but I get an error saying `Property 'ListItemCollectionPosition' cannot be found on this object'$spQuery.<< $site1 = Get-SPSite mysite ...
0
votes
0answers
36 views

Deploying CSS/Images/MasterPage with PowerShell

I have a Visual Studio project that I want to use to deploy a few CSS files, images and a master page to a SharePoint 2010 site that I have (the site will be pretty basic, simple BI type site with ...
0
votes
1answer
28 views

How to find the guid of the User Profile Service?

I'm looking into an issue where employees that have already had their accounts decommissioned in Active Directory are displaying in our new starters and birthday web parts after they have left the ...
0
votes
1answer
35 views

Bulk creation of content page (in SitePages)

I have been asked if it is possible to do a bulk creation of a number of pages, into the "SitePages" folder on SharePoint 2013. I have seen some references on the web of how to achieve this via XML, ...
0
votes
2answers
20 views

How can I find out if a column is unused powershell

I have noticed in some of my document libraries that I have a column that is unused. Is there a bit of code in powershell that will tell me which document libraries have the column in question but it ...