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

PowerShell script for finding the site columns associated with a content type

How to find the site columns associated with a Content Type using PowerShell Script in my SP 2013 site collection. Add-PSSnapin Microsoft.SharePoint.PowerShell $site = Get-SPSite ...
0
votes
1answer
732 views

How to register a new SharePoint App using PowerShell (instead of appregnew.aspx)?

I'm uploading my SharePoin Provider Hosted App and installing everything via PowerShell, but the only thing that I cannot find is if it's possible to register a new app using a PowerShell command ...
1
vote
1answer
27 views

Change list title on all lists with a certain name

My setup is like this. Application http://sharepoint Site collection http://sharepoint/vendors/01 Sites http://sharepoint/vendors/01/vendor_a http://sharepoint/vendors/01/vendor_b ... ...
0
votes
0answers
7 views

Get permission level for SharePoint Group Powershell

I have different SharePoint groups for sub-site which has unique permissions, I am writing a powershell script and I have come across a point where i need to get the permission level of a XYZ ...
-1
votes
0answers
8 views

unable to delete the site columns from the document library reference

I have written a PS script to delete the site columns from the site collection in my SP 2013.these site columns are binded with custom content types and these custom content types are associated ...
3
votes
1answer
23 views

Changing User Profile Property for all the users in sharepoint 2010 using powershell

I want to change the edit setting and Display setting value of a user profile property called Department for all users. Can someone please tell me how to do it. I can get to the department ...
1
vote
1answer
22 views

Creating a Host Named Site Collection with a Managed Path

I am attempting to create a Site Collection that appears as a managed path. Here is the scenario: I have a company that is in many regions and I have a toplevel portal for them - finance. the HNSC is ...
0
votes
2answers
30 views

Powershell get permission on SPSite/SPweb (and all list)

Do you know how to get, in powershell, all permission for a SPSite/SPWeb and all list? Thanks.
0
votes
1answer
13 views

Manual Pagination for PowerShell command for SharePoint 2010/13 other than Out-host -paging

I want manual pagination for PowerShell commands for SharePoint such as Get-SPUser or Get-SPSite. I know there is command viz. Out-Host -paging facility available but it is not manual pagination i.e. ...
0
votes
2answers
24 views

$web.Groups returns empty Powershell

I have a site collection under which i have created a sub-site with unique permissions, this sub-site has following groups Community Site Owners SharePoint Group Full Control Project Site ...
4
votes
1answer
1k 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 ...
4
votes
2answers
1k views

How to remove the builtin “Item” Content Type from a list using powershell?

I have a custom content type and I added this content type to a list. I now want this list to only use the custom content type and I want to remove the built-in "Item" content type. I tried ...
2
votes
1answer
524 views

How to set a default value for Date column to “Today's Date”

I am writing a powershell script to add a date type column with "Today's Date" as the default value. How I can set it up? $list | new-spjfield "Date" -internalname "Date" -type DateTime -dateformat ...
0
votes
1answer
30 views

Get attachments from sharepoint list with powershell

I made this script : $webUrl = "http://site.fr/" $library = "Qualified Information" $spSite = new-object Microsoft.SharePoint.SPSite($webUrl) $w = $spSite.OpenWeb() $l = $w.Lists[$library] ...
1
vote
1answer
63 views

How to set “ShowField” in peoplepicker using powershell

Does anyone know how to set "ShowField" in people picker using powershell ? For ex.x, to set the "Required" property, we can user $SiteColumn.required="true" , but for showfield, ...
1
vote
1answer
22 views

Remove site column that's associated with content type in site collection using PowerShell

I want to delete a site column using PowerShell, which is associated with my custom content types that are defined in my SharePoint 2013 site collection.When I removed the content type association ...
0
votes
1answer
17 views

How to take the backup of SPList having MMS Column

How to take the backup of SPList having MMS Column? If I take the .stp file from the list settings I can not get this managed metadata column after taking the template file. Any other way I can get ...
0
votes
1answer
10 views

How to compare the versions of 2 SharePoint Servers

I want to know how to find out the versions of 2 SharePoint servers in my development environment. I tried with the PowerShell command (get-spfarm).buildversion I got the below result for ...
1
vote
1answer
29 views

PowerShell Property for show inside folders for a document library

How to get the property for getting "Show items inside folders" within a document library's advanced settings using PowerShell script.I am having 3 folders and I do not want these folders to be seen ...
0
votes
0answers
12 views

Execute a PowerShell script on a remote SharePoint Server

How to execute a PowerShell script on a remote SharePoint Server ? I have created a ps1 file on my UAT SharePoint Server [its a WFE], Now I want to execute this same script on the Staging SharePoint ...
0
votes
1answer
532 views

UserProfileService GetUserProfile Modified Date in 2010

I have a problem when loading a UserProfile from the UserProfileService in Powershell. I am able to get a list of properties, however I can't seem to find when the profile was last modified. The one ...
3
votes
1answer
61 views

how to access patches programatically

I know I can access the SharePoint-buildversion using (Get-SPFarm).buildversion in PowerShell. I also know that by accessing /_admin/PatchStatus.aspx from central administration I can view each ...
1
vote
3answers
253 views

error when executing update-spsolution

Im trying to update a web part that has been distibuted across our sharepoint intranet and im coming up with an error ive never seen before. Ive googled but cant find any info. Can someone help. ...
2
votes
1answer
1k views

Powershell to set a Web Application's Trusted Identity Provider to an STS and NTLM?

I've created a custom STS and have setup trust with SharePoint via New-SPTrustedIdentityTokenIssuer. I can use Central Admin to configure a Web Application to use both NTLM and the STS, however I ...
1
vote
1answer
18 views

Modify list item field using PowerShell

I have a list field that stores an XML string. I am trying to get the XML contents and modify a particular tag in the XML like so: foreach($item in $list.Items) { ...
1
vote
0answers
15 views

Power shell Script to copy sharepoint top navigation bar across site collections in sharepoint 2013

I have create a global navigation using Term Store Management Tool in Root site collection for a web application. Now i want to copy this Navigation across site collection using powershell. Can you ...
1
vote
1answer
24 views

Script work on Sharepoint 2013 but not Sharepoint 2010, Why?

I made this script to get all attachments from a list, it works on Sharepoint 2013 serveur but on Sharepoint 2010 I don't have any result... : $webUrl = "https://site.fr" $library = "Contacts" ...
0
votes
1answer
14 views

Upload a file into Folder within Style Library using PowerShell in SP 2013

How to Upload a .css file on the folder within the Style Library of my site collection using PowerShell. I am having a style file called style_bg.css. How to get the folder within the style ...
0
votes
1answer
16 views

Get Type of User or Group

I have a case where in I have added AD security groups along with SharePoint Users to the SharePoint Groups, Now I want to fetch a list of only Security Groups from all Site Groups in SharePoint, Is ...
1
vote
3answers
1k 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 ...
0
votes
3answers
25 views

Multiple AND OR inside a powershell if statment

I am trying to write a PowerShell script for my SharePoint 2013. The idea is that I what to select all the links that are referencing /documents/ folder, and that ends with either .doc .docx or .pdf. ...
1
vote
1answer
24 views

Get attachment with element ID from list

I am trying to get attachment list with element ID from a sharepoint list. I found script to download attachment but I want to see how you would do it? Thanks by advance, ++.
0
votes
2answers
20 views

Delete Individual Items from Recycle Bin

I am using Batch Delete using Powershell. After batch delete, items are moved to recycle bin. spWeb.RecycleBin.DeleteAll(); will delete all items from recycle bin. Instead, i want to remove only ...
3
votes
4answers
139 views

how to allow Write-Host command to write into a file (notepad) rather than in the screen

I run the following script in SP PowerShell Add-PSSnapin Microsoft.SharePoint.Powershell -ea 0; $web = get-spweb 'http://tvstg01/kb/customerservice/' $list = $web.lists['Customer Service']; ...
0
votes
1answer
21 views

Synchronisation two list in Sharepoint 2013

I have got two lists with diffrent number of column: First List have got: Column "A", Column "B" and "Status" field with Choice: active, and non active. Secaund list have got this kind of column: ...
0
votes
1answer
25 views

Powershell script to add a field to all the document sets

I have created a field in sharepoint content type hub. Now I want to add this field to all the Document Libraries in my sharepoint online tenant. Is there a powershell script which can do this for ...
0
votes
0answers
7 views

How to Execute Powershell commands from a Sharepoint Hosted App?

So I need to create a Site Inventory(collection of all documents) as an OOTB Sharepoint Feature. This is the way I thought of doing it. Create a Sharepoint feature in Visual Studio wherein ...
0
votes
0answers
6 views

How to delete the content organizer rules using PowerShell in Record Center

How to delete the content organizer rules which are already existing in the record center using PowerShell
4
votes
1answer
521 views

Remove all users from all folders within a Document Library - PowerShell

How to run through all folders in a specific document library to remove inheritance and then remove all users from all folders within a specific Document Library using a Powershell script?
0
votes
2answers
917 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
546 views

Powershell, how to check if spuser object is user or group?

I have a powershell script which is fixing some corrupted userprofiles. But the results are also groups. I would like to skip the groups and fix only the users. How can I check if the spuser object is ...
4
votes
4answers
2k views

How to programmatically determine which application pool a service application is using?

Is there a way to programmatically determine which application pool a service application is using? Further i would like to get the information about the service account the app pool is using.
1
vote
1answer
22 views

Disable the option for personal regional settings

Is there a way (through PowerShell or an other method) to disable the option for users to set personal regional settings? I have a system where I want to force users to be on UTC since changing ...
5
votes
2answers
208 views

Can I use Set-SPOUser to set an O365 security group as a secondary site collection administrator?

Is there a way to use Set-SPOUser to add a security group I created in Office 365 as a secondary site collection administrator? I have the security group's Login Name which begins with "s-1-5-21-..." ...
1
vote
0answers
21 views

Delete site collection level managed property using powershell

I have a managed property seen at Search Schema of both Search Service Application and Site collection. The one at Site Collection level does not have Refine and Sort attributes True, so I am ...
0
votes
1answer
431 views

Change SharePoint Service Account using PowerShell

In the Central Admin you are able to change a registered Service Account to a specified service (as in the image) Is this possible to manage by powershell? Thanks
2
votes
1answer
886 views

Backup-Spsite always failing with HRESULT 0x80131904

While taking backup of Site Collection on SharePoint 2010 using powershell command "Backup-SPSite" I always encounter below error : "Backup-SPSite : Exception from HRESULT: 0x80131904 At line:1 ...
1
vote
1answer
20 views

Get item by DocID using PowerShell

Has anybody retrieved items by their DocId using powershell. Specifically the ID generated by the DocID service. I'm looking to get details of items based on a (large) list of DOCIDs. I guess I could ...
0
votes
2answers
19 views

Is it possible to get SPGroup's Web application Name Directly using Powershell?

I'm trying to get The name of the The content_Db (WebApp) where a specific group lives. I've been trying to get these info by looking into the SqlDb. but I only could find Site ID reference. is ...
3
votes
2answers
221 views

Cannot delete site collection in Central Administration

I had created a site collection. But there is a problem of web-frontend server (I did not know when I created the site), so the page is always in processing. After waiting 40 mins, I closed the page. ...