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)

0
votes
0answers
34 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
34 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
0answers
30 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 ...
0
votes
0answers
459 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
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
42 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
0answers
36 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
0answers
87 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
0answers
10 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
0answers
51 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
0answers
79 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
0answers
56 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 ...
0
votes
0answers
61 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
0answers
50 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
28 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
0
votes
0answers
30 views

powershell program to upload multiple files with version control at the file level

I have a network folder which contains multiple files refreshed daily.I then run a power shell script link which uploads all the files . I have scheduled it to run once daily. I have version control ...
0
votes
0answers
75 views

New-SPEnterpriseSearchQueryScopeRule required URL parameter

I'm currently exporting Search scopes from one server and importing them to another using PowerShell. The thing that has me bewildered is what -URL parameter is used for in the ...
0
votes
0answers
96 views

How can I delete library items using an array? (Plus a bonus question.)

I'm writing a script for my SharePoint 2010 environment that will delete all items from a specified library that are more than 14 days old. The way I'm doing this is by using 'foreach' to run through ...
0
votes
0answers
69 views

powershell script works but not showing list data(scheduled task)

I have a powershell script scheduled to get data from list item and send it as email. I do get the email but the content is empty its not picking up list data. When i run it from powershell command ...
0
votes
0answers
45 views

How do I move files into Document Sets that are in the same library using either powershell or workflow.

I have a requirement that states that I need to move files into Document Sets where the Document Set is equal to the value of a column named DS. The files and the document sets are in the same ...
0
votes
0answers
35 views

Trying to link Community site member ID with userlogin with powershell

I have a site collection created with default Community Site template. I need to generate a user report with powershell. The user's loginname, displayname, NoOfReplies, NoOfBestReplies, etc should be ...
0
votes
0answers
262 views

adding a (href) hyperlink to html(convertTo-HTML) via powershell

I-m trying to add a href hyperlink to my HTML as below as I-m sending it as an email. But it's not working for me. Has anyone experienced this? How can I get this rolling? $message.Body = ...
0
votes
0answers
16 views

Authenticate within a Sharepoint Library by Folder Name?

I have a Sharepoint Library, which I have a Powershell script dropping files into for processing. The Powershell script reaches out to Active Directory, and returns Group Membership information. The ...
0
votes
0answers
30 views

searching all documents with a content type

How can I search all documents with a particular content type of 'EC Docs' and then query a site column in that content type where column -eq 'Res' Get-SPSite mysite | select -ExpandProperty AllWebs ...
0
votes
0answers
38 views

Event Handling in powershell

I am wondering why the event in this sample code cannot be started. $import = New-Object Microsoft.SharePoint.Deployment.SPImport($importSettings) $CreatedAction = { $ro = ...
0
votes
0answers
16 views

Selective migration with powershell

I do like to migrate several sites to another site into a special sub-site and Folder. I know that by using Microsoft.SharePoint.Deployment.SPExportSettings and Import it is feasible but I don't know ...
0
votes
0answers
59 views

SharePoint 2010 PowerShell Delete folders in Document Library - See SharePoint/event Log?

I wonder if its possible to see a log file of events (deleted folders in big document library) when actions are invoked by PowerShell? The PowerShell-script it self don't push anything to a log-file ...
0
votes
0answers
39 views

Finding items using content types

Get-SPSite http://skynet | Select -ExpandProperty AllWebs | Select -ExpandProperty Lists | Select -ExpandProperty Items | ForEach { ForEach($ct in $ContentTypes){ if($ct.PM -eq "Res" -or "Con"){$_}}} ...
0
votes
0answers
13 views

Where query with a metadata field applied to the base content type

I want to create a query for all document library tagged with the terms ‘r’ or ‘c’ under their pm metadata field? the pm field is a ‘choice’ term type, applied to the base content type, so all of our ...
0
votes
0answers
150 views

How to remove unwanted permissions from list items via powershell by name of user/group

I need to remove unwanted list item permissions. The problem is i need to add user in a people and group field to list items and assign them a READ permission. But the list inherits permissions from ...
0
votes
0answers
72 views

site column where clause sharepoint

I have a sharepoint site and am creating a powershell script that searches through all document libraries and output the results based on a query to a site column. Get-SPSite mysite Select ...
0
votes
0answers
188 views

Import/refresh automatically a CSV file ? Powershell or not?

I have to import a CSV file into a list (put it in a tab). But this CSV will be updated (weel, in fact it will be regenerated), and I need SharePoint to refresh the list with new data. I don't know ...
0
votes
0answers
99 views

Removing permissions from a user throwing exception - PowerShell

I was trying to remove Read permission to all sub-sites for a particular user. Following is the code that I tried so far - $site = Get-SPSite "http://pc152637/" foreach ($web in $site.AllWebs){ ...
0
votes
0answers
58 views

Make permissions read only for existing users of all sub-sites under a site

How to make permissions read only for existing users of all sub-sites under a site using power shell script? Other permissions like Full control, Contribute must be removed for the users.
0
votes
0answers
501 views

Help in updating multiple person field via powershell - Only updates one user

Im trying to update multiple person field but it only updates one person not multiple users.ONLY THE LAST ONE As you can see below i'm picking up display name from a field "Contract Viewer" which has ...
0
votes
0answers
140 views

Find duplicate site column using powershell script

When I try to add any content type it give error. I checked ULS and it say "no two choice should have same ID". I checked google and find that I have to delete duplicate site column. Can anyone please ...
0
votes
0answers
49 views

Connect to SPFarm SharePoint 2010

I want to create a function to connect to SPFarm SharePoint2010 with a login and password ,I knowed that it use NTLM authentification ,do I need credential connection ? is there any PowerShell ...
0
votes
0answers
152 views

JSLink Issues with Powershell but not Object Model (with Code Samples!)

I am having trouble attaching a JSLink to a list view (.js file located in the Script Library) Powershell: $list = $web.Lists["Gratitude"] $view = $list.Views["Gratitude"]; $view.JSLink = ...
0
votes
0answers
74 views

Having problems attaching files to multiple items using powershell

Im having issues attaching files to multiple items using powershell. With one item it works. my snipet code below Thanks #When i run the script and having to pass one item it works but not ...
0
votes
0answers
185 views

TermSetItem.Terms does not load properly?

I am attempting to write a PowerShell script to extract taxonomy entries from one environment to import them into another. I'm running into a problem where one of my Term Sets' Terms property is not ...
0
votes
0answers
106 views

Any example on .AddDependentLookup with power shell for a look up field

Here is the code which I have tried using Add dependent lookup. But gives an error. any idea what's wrong? Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue $url = ...
0
votes
0answers
61 views

SharePoint 2010 auto delete sites, sub-sites and pages

SharePoint 2010 - publishing website with sites, sub-sites and pages. PowerShell script to auto delete sites, sub-sites and pages if lastModifiedDate is X number of days ago (x would be a PowerShell ...
0
votes
0answers
58 views

Power shell script to select additonal fields for a lookup through site column

I have create a Lookup column as a site column in my root site collection selecting the following fields(Title,Order,status). In My subsite i am using this column using power shell.Lookup is getting ...
0
votes
0answers
533 views

How can i set/update Person Field(person/group field) via powershell

I have a column(it has a display name e.g John Shane) and I would like to use that to set/update an empty person field. Why I need this is because this list was migrated from sharepoint 2010 to ...
0
votes
0answers
56 views

Enable-SPFeature not working in scheduled task

I have a powershell script that runs every 5 minutes it creates a subsite on a Site Collection the last part of the script activates the SiteNoteBook feature in SharePoint 2013. I added all the new ...
0
votes
0answers
28 views

edit ps1 file with c#

i have an ps1 file witch work fine in powerISE. But in my case ,I have a c# class witch execute ps1 file and I want to set variables values from c# class . code in PS1 powershell function ...
0
votes
0answers
210 views

Powershell script for moving document libraries in one site collection in sharepoint 2013 with “modified” and “modified by” detalis as it is

i want to move document library item to another document library within site same site collection in sharepoint 2013. i am able to move the documents but their "modified" and "modified by" detail ...
0
votes
0answers
32 views

Powershell copy a View from database and insert to existing Sharepoint list

I got a View, and a List of Sharepoint with same more of column. In Powershell at every Time Job I wan't add only this records, which are new, and add them to a list. Did You know any of scripts which ...
0
votes
0answers
121 views

Cannot convert 'System.Object[]' to the type 'Microsoft.SharePoint.PowerShell.SPSolutionPipeBind'

Getting this error when i try to deploy a .wsp to a SharePoint 2013 portal. Someone have any idea? Get-SPSolution : Cannot convert 'System.Object[]' to the type ...
0
votes
0answers
70 views

Powershell Script to get UPN of O365 Users from thier emails?

Has anyone developed a Powershell script to get UPN of the O365 Users, provided we have their email address? Suggestions are welcome!