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
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
28 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
74 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
83 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
36 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
32 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
50 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
53 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 ...
5
votes
1answer
64 views

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
25 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
2answers
53 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
404 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
63 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
89 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
68 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
62 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
387 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
85 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
51 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
145 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
44 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
28 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 ...
0
votes
2answers
85 views

How can I check if a Document Library is empty? powershell

How can I check if a Document Library is empty or not using powershell. $web = Get-SPWeb http://skynet ForEach($list in $web.Lists) { if($list.BaseType -eq "DocumentLibrary") { Write-Host ...
0
votes
0answers
9 views

Obtaining a reference to a MMT with different site collections but same web applications

I have a site that has many site collections in the same web application. I am wanting to obtain a reference for a Managed Meta data term, will I have to obtain a reference for each site collection or ...
0
votes
1answer
27 views

output the URL of doc library powershell

I have this code : $web = Get-SPWeb http://mysite ForEach($list in $web.Lists) { if($list.BaseType -eq "DocumentLibrary") { Write-Host $list.Fields if($list.Fields.ContainsField("marking") ...
0
votes
1answer
21 views

Can every settings in SharePoint 2013 solely managed by script?

Due to our company policy, I need to make sure our deployment can be processed solely in script (Powershell, SQL, DOS command). No UI interaction should be involved. I believe most of setting can be ...
0
votes
1answer
51 views

Powershell Script for Enabling Specific Site collection feature if not already activated

I need a PowerShell script for activating a specific site collection feature in every site collection of mysite if not already activated. How can this be done?
0
votes
2answers
90 views

Difference between SPWeb and SPSite

What is the difference between SPWeb and SPSite? I have this code using SPWeb $web = Get-SPWeb http://mysite ForEach($list in $web.Lists) { if($list.BaseType -eq "DocumentLibrary") { Write-Host ...
0
votes
1answer
41 views

Assign permisions from Power Shell

I'm trying to modify the permission of a library through Power Shell. What I want to do is: I have a library with one folder for each user, but now, all this folders inherite the permissions from ...
0
votes
1answer
53 views

output contents of a foreach into a file

$web = Get-SPWeb http://skynet ForEach($list in $web.Lists) { if($list.BaseType -eq "DocumentLibrary") { Write-Host $list.Fields if($list.Fields.ContainsField("marking") -eq $true) { ...
0
votes
0answers
38 views

Filter Document Libraries based on a column name

Get-SPWeb http://sharepoint/sites/training | Select -ExpandProperty Lists | Where { $_.GetType().Name -eq "SPDocumentLibrary" } | Select Title I have this code which outputs all of the document ...
0
votes
1answer
31 views

get all my lists with a certain column powershell

How can I find all lists in my site that has a column of 'marking' in powershell. I have a large site so cannot go through manually looking so wanted to know if there was a way of doing this
2
votes
1answer
198 views

Get ULS log records programatically

Is it possible to retrieve records from ULS log using C#/SharePoint API without having to manually parse log files? I would like to display logged messages on a custom web page, and I would like to ...
1
vote
2answers
202 views

Copy files between sites with version history (powershell, SP2010)

I can copy a file from one site to another using $SPFolder_Destination.Files.Add("Filename.ext", $SPFile_Source.OpenBinary(), $false) This does not preserve version history. I think I could ...
1
vote
0answers
73 views

New-SPSite in SP2013 creating sites with 2010 user interface

I am creating a Site Collection with this powershell command $createdSite = New-SPSite -Url $SiteUrl -Name "Site Name" -Template "CMSPUBLISHING#0" -Language 1033 -OwnerAlias "spadmin" It used to work ...
0
votes
1answer
62 views

filling a column when empty with values powershell

I have recently added a new metadata field to my base content type called ‘mark’. This is a managed metadata column which should default to the term ‘off’. As I have added this to the base content ...
0
votes
0answers
52 views

ExportWeb from sites.asmx still pending (1)

I'm doing an ExportWeb method through powershell from sites.asmx in SharePoint 2013, and the exportweb job is still pending, even after days. $uri = "http://sharepoint/_vti_bin/sites.asmx" $service = ...
0
votes
1answer
52 views

Determining Document Library to Upload Files PowerShell Script

I have a network folder that contains 50 documents. I need to upload the files to the specified SharePoint document library based on a csv filename and document library. CSV Example: filename1 ...
1
vote
2answers
75 views

New field is not accessible via Powershell

I have a list "Orders" in SP, where I have some data. The list definition and instance were previously created in Visual Studio and then successfully deployed. Today I've opened VS again and added ...
0
votes
1answer
29 views

Site Could not be Created in Site Collection

I tried to add a site in a site collection but unfortunately it isn't working. SharePoint allows me to add a site, but when I want to check the created site, no site exists at all. The procedures I ...
0
votes
3answers
49 views

disable search / crawl by default for all new lists or library?

I'm looking for a way to disable new lists and libraries from being searchable. Ultimately, this site will be public facing and even though I can tell people to remember to disable lists and ...
2
votes
2answers
895 views

Powershell to list all sites and subsites in SharePoint Online

I know about "Get-SPWebApplication" but it's not available in Online. Anyone? Thanks,
0
votes
0answers
29 views

Verifying and changing Draft Item Security with PowerShell

Below is what I'm looking for a PowerShell script to do. Check the setting (ANY USER WHO CAN READ ITEM – IS THE CORRECT SETTING) If it is not correct, change it Send email to select group Any ...
1
vote
2answers
440 views

How do I install the 2013 SharePoint PowerShell module on my Windows 7 client computer?

I just installed SharePoint 2013 Foundation on a server. I'm confused as to how I can access the PowerShell cmdlets from my client pc. Everything I read assumes you're in front of the actual server. ...
0
votes
1answer
47 views

How do I use the object model to update quota values?

Reading this doc I'm confused by the following paragraph: If you change the values for a quota template, those changes apply only to new site collections to which you apply the template. ...
0
votes
0answers
36 views

Url column fill with powershell how to disable link on a item

I have a list with custom columns. One column type is URL. I create an item like that : $new = $list.Items.Add() $new["Client"] = "http://google.fr/, $($i.client)" Is that possible to disable the ...
0
votes
1answer
61 views

Error while updating a Sharepoint record using Bypasslock method in Powershell

I am trying to update a Sharepoint 2010 record using ByPassLock method in Powershell. I am using below code [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") | Out-Null ...
0
votes
0answers
34 views

Aspx page that create filtered view based on argument

I use Sharepoint 2013. I have two lists generated by PS everyday. List A Client Col2 Col3 1 aaa bbb 2 ccc ddd And List B : Client Col1 Col2 1 Info1 Info11 2 ...
0
votes
0answers
17 views

quick edit view with powershell?

I have to craete more than 75 quick edit views in different site collections, I cant create a quick edit view by powershell? someone have an idea? thanks
1
vote
0answers
53 views

Propagate Lists through variation sites by PowerShell

Is it possible to propagate a list to a variation site by powershell?