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)

1
vote
1answer
13 views

How to get the rootweb object from a subweb in SP 2013

I want to get the RootWeb object from my sub web object using PowerShell. $site= get-spsite "http://srvr1:123/sites/ceo" $rootwebb= $site.RootWeb $suburl= get-spweb ...
0
votes
0answers
10 views

Site Column,Site Content Type,List Content Type issue in SP 2013

In my Site Collection, I am facing a strange issue. I have custom Site Content Types, Site Columns created and these Site Columns were associated with Site Content Types. After creation of Document ...
0
votes
1answer
12 views

Remove list content Type Association from document library

How to remove list Content Type Association from Document Library.I have 14 content types in my SP 2013 portal. I want to know how to achieve this using PowerShell? $msite= Get-SPSite $siteurll ...
0
votes
1answer
3k 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 ...
0
votes
1answer
15 views

Powershell: Activate Permissive X-FRAME-OPTIONS Header

I'm searching a way to activate the features Permissive X-FRAME-OPTIONS Header on my web application with powershell. But i can't find it with Get-Feature. Here is the feature i want to change: ...
4
votes
9answers
14k views

How to delete all items in a List using PowerShell

I am using following PowerShell script to delete all items of the List. It's working fine but take too long for huge lists. Is there any efficient way of clearing list items, something like truncate ...
0
votes
3answers
20 views

How to re order content types in list using PowerShell

In a Custom List there are more than 1 content types e.g. "Content Type 1", "Content Type 2" including OOB Item. Using PowerShell how can the ordering be changed?
0
votes
1answer
20 views

Update-SpSolution, how to know if wsp update is completed

There is a need to Update/Upgrade an existing wsp solution. I notice around 1 minute delay when Update command is run and while dlls are copied to GAC. I assume this delay could go up/down depending ...
0
votes
1answer
25 views

Find out the field or site column which are not associated with any content types

I need to find out the field or site column which are not associated with any content types in my SP 2013 site collections using PowerShell
0
votes
1answer
18 views

Powershell - Get users by group

I had a script who get all users of sharepoint site. So I can get group for each member but can you get all group of sharepoint site and get all users of each group? Thanks
3
votes
2answers
30 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 ...
0
votes
1answer
11 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
739 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 ...
1
vote
1answer
24 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
33 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
2k 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
528 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
31 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
64 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
26 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
15 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
21 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
22 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
7 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
522 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
924 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 ...