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
1answer
99 views

Change icon in sharepoint site programmatically

I want to change the icon image for my Webapplication , not the logo but the icon in the URl . I used this script powerShell to change the logo : #Get the Site $web = Get-SPWeb ...
0
votes
0answers
36 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 ...
1
vote
0answers
70 views

SharePoint Online CSOM create managed properties

I'm trying to find a way to deploy search managed properties via script to my Office 365 SharePoint tenant. Previously, for on-prem SharePoint I've achieved this using PowerShell - fairly straight ...
0
votes
1answer
31 views

how to limit size content database

I want to limit the size of the content database to add another content database to my web application. Does anyone know how to do this with powershell or sql?
0
votes
1answer
29 views

Site Collection second-level

I am using SharePoint 2013, is it possible to create a Second-level site collection by Powershell? I mean, a Site Collection (not substite) child of another Site-Collection.
0
votes
0answers
38 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 ...
1
vote
1answer
65 views

Script to update Sharepoint Online content type

I have a content type "TestContentType" with three columns: Document Type Category Sub-category This content type is used on 18 document libraries, in 3 site collections. The Category column ...
1
vote
0answers
46 views

SnapIn won't load, the Cmdlets now target the wrong Powershell Version, how'd that happen?

I've inherited a Server-2008 SharePoint-2010 Dev environment, the SharePoint Snapin fails to load; warning ... Add-PSSnapin : Incorrect Windows PowerShell version 3.0. Windows PowerShell version 2.0 ...
0
votes
1answer
40 views

Can I use PowerShell scripts in SharePoint 2013 somewhere in the Web GUI or from a client PC?

Is it possible to run PowerShell scripts in SharePoint 2013 from the Web GUI or from a Client PC? Example: I'd like to copy custom views from a document library in one site to another one in the same ...
0
votes
0answers
26 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 ...
5
votes
4answers
7k views

How to fix credential issue?

I tried both default credential and user/pass but keep getting 401 unauthorized error. What's the fix? Here is the error I am getting .... New-WebServiceProxy : The request failed with HTTP status ...
1
vote
2answers
85 views

How to retrieve the OOB Xml field with powershell?

In Sharepoint there are many OOB list with a field "Xml". For example, by running this: $url = http://sharepoint.domain.com $site = Get-SPSite $url $site.rootweb.lists["User Information ...
3
votes
2answers
160 views

List item with specific ID value

I want to copy a list items one by one to another list using PowerShell. Some items in source list are misssing. I don't want to create and delete empty items for missing ID values in source list. I ...
0
votes
0answers
23 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
91 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
1answer
57 views

Powershell filter on a value

I am trying to setup a script to copy documents from a document library to a local file share. I have found a handful of ways to do this, but I have one caveat. I need script to look at a value in a ...
0
votes
1answer
22 views

Outputting full name in query powershell

I am querying a sharepoint site. At the moment its returning Our future comm... how would I be able to make it print out the full name Here is my code Get-SPSite mysite | Select -ExpandProperty Lists ...
0
votes
2answers
416 views

Powershell commands to check permission for a specific user on all “sharepoint online 2013” site collections?

need to check permissions for a specific user on SharePoint Online 2013 thoughout the sites need powershell commands to achieve this
0
votes
2answers
75 views

Custom checklist with radio buttons in Sharepoint possible?

I have a need to create either a checklist, questionnaire or some sort of custom list in Sharepoint to track Group Ownership in Active Directory. Currently, this form is a paper form that is printed ...
0
votes
0answers
14 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 ...
1
vote
4answers
4k views

SharePoint 2010: What is the difference between backing up a Site Collection and exporting a Site Collection?

Lectori salutem, I am reading into backup and restore operations in SharePoint 2010. I have noticed that in Central Administration > Backup and Restore > Granular Backup there is the possibility to ...
0
votes
1answer
79 views

SharePoint Powershell Number and User columns

I need to create two list fields by powershell. One that accept only Integer (type Number with no decimal) and the other User (multiple selection). I can create Number field and Single User field ...
1
vote
2answers
179 views

Populate a list of links through powershell

I have my webapp, my webs and a list created. My point is that I would like to populate my lists with values at the time of my deployment, which is done thanks to a powershell script. So I would like ...
1
vote
1answer
60 views

How to give permission to specific users to list item level using PowerShell

I have tried using the below to add specific user to items but it keep getting error. For now I'm just trying to add permission to specific item but I would be changing the code to look at a column of ...
0
votes
1answer
54 views

Uncommitted changes on SPWeb object

In my simple Powershell script, I keep getting an error "Exception calling "ResetRoleInheritance" : There are uncommitted changes on the SPWEb Object, call SPWeb.Update() to commit the cahnges before ...
0
votes
1answer
67 views

Can't delete SPWeb from PowerShell or C# Object Model

I have a very strange situation - two sub webs were created through some code but it errored out part way through the process and now I am left two webs I can't seem to delete. The strange part is ...
0
votes
2answers
89 views

Create Lookup Field Powershell

I am using SharePoint 2013, I need to create a lookup field throw PowerShell. I tried this code but is not working: $SiteUrl = "http://mySite" $WebObj = Get-SPWeb -identity $SiteUrl $myCustomList = ...
0
votes
0answers
23 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
2answers
373 views

SharePoint 2013 : Updating user profile property using PowerShell

I am working on a powershell script to update the following user profile property on my SharePoint 2013 enviornment, Personal Site Personal Site Capabilities: 0 Feed service provider defined ...
2
votes
1answer
109 views

loop splistitem in folder in powershell

I'm trying to loop all splistitem in a folder of a library. I can get my library and have folder but i'm not able to get the items inside the folder. When i display the listitem for folder, i've the ...
1
vote
1answer
251 views

Find a farm's database server and instance in PowerShell

Through PowerShell, how can I find the SQL server name AND instance where my databases are stored? Assuming I am not using an alias and can't check cliconfg. In servers in farm, I can see the server ...
1
vote
0answers
27 views

searching all documents in sharepoint

If I want to search all through my sharepoint site for all documents any place in the site. Would it just be Get-SPSite mysite | Select -ExpandProperty allwebs | Select -ExpandProperty Lists | ...
3
votes
1answer
184 views

SharePoint feature deployment and scope via PowerShell

We use SP2013 and PowerShell to deploy wsps. When installing the wsp via PowerShell: CASE 1: Add-SPSolution -LiteralPath $path install-spsolution -Identity $solution -GACDeployment Above ...
1
vote
2answers
890 views

powershell script to move/copy files from network path to SharePoint sub folder

if((Get-PSSnapin "Microsoft.SharePoint.PowerShell") -eq $null) { Add-PSSnapin Microsoft.SharePoint.PowerShell } $spWeb=Get-SPWeb -identity ...
0
votes
0answers
19 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
11 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
1answer
42 views

query xml powershell sharepoint

Get-SPSite mysite | Select -ExpandProperty AllWebs | Select -ExpandProperty Lists | Select -ExpandProperty Items | Out-File outputpm.txt I have this code, which produces the items, one of the items ...
0
votes
0answers
39 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
37 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"){$_}}} ...
1
vote
0answers
45 views

Powershell the local farm is not accessible - SPECIAL NUANCE

Wonder if you could shed some light on a variant of this situation I'm experiencing. Typical Error when running Sharepoint Management Shell "the local farm is not accessible. CmdLets...." Here's the ...
0
votes
1answer
50 views

Powershell : Query Document Exclude Document Set

I have a Document Library contains multiple Document Sets, each of the Document Sets contains Files. Document Library ----> Document Set ----> Files My objective is to query all File Name only ...
1
vote
4answers
1k views

how to paste powershell script onto the Shell

I am trying to paste powershell script from a website but it doesn't let me right click on powershell console neither "Crtl + V" is working i downloaded powershell V.1
0
votes
0answers
10 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
65 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
35 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 ...
1
vote
1answer
199 views

PowerShell: Get all items where column equals a certain value

I have a SharePoint site which I want to search all document libraries where column1 = 'hello' and then print out the columns title, scope and column1. Then output the result to a file. I want to do ...
0
votes
2answers
147 views

PowerShell - Iterate through all webs, then iterate through all lists , then add a column where a list is a certain name

I'm trying to put together a script that should iterate through all webs in a site collection, then iterate through all lists in those webs, then add a column where a list has a certain name. This is ...
0
votes
4answers
7k views

Restore-SPSite failure due to insufficient Content Database Space

I hope someone can help me solve this weird problem I'm facing for 4 days. I'm trying to restore the backup of Sharepoint 2010 web application. I'm using Windows Powershell command : Restore-SPSite ...
0
votes
1answer
215 views

How to set Navigation in Office 365 site using powershell?

I am creating some Global / Current navigations nodes on a SharePoint site (SharePoint 2010 in house site) by fetching them through a csv file. Below is the script: #Script to create Global/Current ...
1
vote
1answer
44 views

IRM enabled different for interface than with powershell

Learning about IRM and how it works, please help me understand this situation. Why does powershell show that IRMenabled is true, but the web interface doesn't reflect that IRM is being used? IRM is ...