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
10 views

Retrieve column's source in content type programatically

The source of a column in a content type can be retrieved in the User Interface as follows: Go to List Settings Click on Advanced Settings, set Allow Management of Content Types to Yes and click OK ...
0
votes
2answers
32 views

Copy site with content to another site collection

Are there any SharePoint tools out there that copy all of the content from one site collection to another? We need to get one site from our site collection and all of the lists and libraries and all ...
0
votes
0answers
16 views

Powershell Version 2 compared to version 4 loading dlls

I have a script that works perfectly in powershell version 4 but when I move it onto a machine with version 2 it kicks up a fuss. My code is below I have a controller which loads the scripts like so ...
0
votes
1answer
52 views

Unable to hide a column from the “Quick Edit” grid using JSLink

I have a custom site column named "Item Number". now i want to force this column to be un-editable inside the Quick Edit grid. now when i try to edit the site column (Site Setting>> Site Column ...
0
votes
1answer
18 views

Restore root site collection using PowerShell

I have a Web App with a root and four different HNSCs. I've been able to successfully backup and restore the HNSCs from a dev environment, but I am having trouble achieving this with my root site ...
0
votes
1answer
23 views

how to copy list from one sitecollection to another sitecollection

What is the best way to automate to copy a list from one site collection to another. We don't want to create a list template manually and moved to another site collection and all that process. we ...
1
vote
1answer
48 views

Cannot add ReportViewer Webpart via Powershell to Page

On my SharePoint 2010 I want to automate Website-Provisioning with customized homepage. The homepage should show some SSRS ReportViewerWebparts. I get error messages, I am very surprised of and cannot ...
0
votes
1answer
11 views

Add, set, get item into hashtable

I want a hashtable like this : $myHash = @{ "key1" = @{ "Entry 1" = "one" "Entry 2" = "two" } "key 2" = @{ "Entry 1" = "three" "Entry 2" = "four" } } How ...
0
votes
1answer
31 views

Check performance of a file upload but don't execute function powershell

This is a two part question I suppose. I have code as follows : Try{ Add-Type -Path 'C:\Program Files\Common Files\Microsoft Shared\Web Server ...
0
votes
1answer
28 views

Powershell get user profile information

I have script who get all users. How can I get information in profile? - about - description - assignement
0
votes
0answers
17 views

SharePoint Groups not showing

I have a powershell script which created a bunch of groups in a sitecollection http://sp2013 on port 80 $path = $("C:\data\SiteCollectionGroups.csv") $csv = Import-csv -path $path ...
0
votes
2answers
50 views

Set Content type to inherit parent columns using powershell

I have a content type which is getting deployed through a wsp package. The elements.xml of it is <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <!-- Parent ContentType: Page ...
0
votes
2answers
17 views

Removing SPWeb properties from its property bag with powershell

I need to remove properties from multiple places with powershell script. I tried many examples from net, with null assigning and using remove on Properties and AllProperties, or using method ...
0
votes
1answer
16 views

How to move document from document library to subsite?

I have a document library with documents. And there is a subsite with the same list. I want to move the documents from the part library to the subsite library. Is this possible to do with the ...
0
votes
1answer
15 views

How to filter document libraries using CAML query?

In my powershell script, I get all lists, then loop through and filter based on if its a document library and if its a certain content type, but I want to do this through CAML. This is the loop logic ...
0
votes
1answer
29 views

How to list the sitecollections in a sorted manner

I have written a powershell script for listing the sites in a web app. $webapp=get-spwebapplication "https://my.comp.com" $allsites= $webapp.Sites foreach($msite in $allsites) { ...
0
votes
1answer
13 views

How to create CAML query in powershell to compare dates?

I want to compare dates, but my code isn't working. $spQuery = New-Object Microsoft.SharePoint.SPQuery; $camlQuery = "<Query><Where><Lt><FieldRef ...
0
votes
0answers
25 views

SPDataAccess Role is not visible - Sharepoint 2013

I have a Sharepoint 2013 farm and SPDataAccess Role is available for some content DBs and not for others. Is there a way to add this role to a specific DB using PowerShell?
1
vote
3answers
48 views

Finding corrupt documents in Document Libraries

Database migration resulted in some Documents being corrupted and unable to Open. Now I need to find where these Documents resides. My plan is to use a PowerShell script to iterate through all ...
0
votes
1answer
24 views

PowerShell to delete FieldLinks for List Content Type in SP 2013

Want to know how to delete the fieldlinks for the content type. Write-Host "Deleted Redundant ACL Columns from List " $list " for web " $web.title $sitecols = @{"BU" = ...
1
vote
1answer
28 views

Creating a document library with Sharepoint powershell using template

I am trying to create a document library from a template. The template name has spaces in it through. #Add the SharePoint snapin write-host "Loading powershell module" -ForegroundColor Cyan ...
0
votes
0answers
15 views

Powershell script to copy documents not working

I am trying to copy documents from a document library to another document library in a subsite. I have this script write-host "Starting to copy" -ForegroundColor Cyan #Add the SharePoint snapin ...
0
votes
1answer
28 views

Getting User from List Item

I've checked a few other articles on this but can't find an answer to this: I have a list which contains a User column and I want to get hold of the User to use in site permissioning. The problem I ...
0
votes
2answers
38 views

Get userID using CSOM powershell

I want to get the User ID using PowerShell CSOM I know its $replacedUser =$web.EnsureUser("domainName\Account") server side but I don't know how to do it client side
0
votes
0answers
20 views

How to delete Items from Document Library and its folders in my Sub Site

I have written a PowerShell to delete the items in a Document Library to delete/clean-up the items.I have 3 folders in my Document Library and all the items in these 3 folders must also be deleted.But ...
1
vote
1answer
27 views

Re-Order Name Field and other fields in the Content Type

I want to reorder the columns in the document library that's associated with my custom content types when end user uploads a document.I am having few columns col1, col2, col3, col4,col5 where col2, ...
0
votes
0answers
56 views

change editor and author of a document via powershell CSOM

I am wanting to change the editor and author of a document in a document library in O365 using CSOM powershell. I have managed to change the dates like this : $Upload = ...
0
votes
1answer
27 views

How to add an External Data Field to a list using Powershell

I have created a BDC model using Visual Studio and deployed it using a WSP to the server. Next I want to add an External Data Column (Field) using a External Content Type in the BDC model to an ...
0
votes
3answers
34 views

PowerShell Script to retrieve every and only List / Library items in a specific view in SharePoint 2010

I am trying to iterate over each item in specific view for a list in SharePoint 2010. What i have so far works to return items in the view, but only the items in the first paginated view for that ...
0
votes
0answers
25 views

Move files from fileshare to document library but keeping modifed date, modified by CSOM Powershell

I am wanting to do a migration where I move files from a fileshare to a document library in office 365. This needs to be done in CSOM powershell and needs to keep all of the modified dates, modified ...
2
votes
1answer
38 views

How to Disable or hide SharePoint “Open with Explorer” menu option in document library

I want to Disable or hide SharePoint "Open with Explorer" menu option in document library without switching off the checkboxes "Use Remote Interfaces" "Use Client Integration Features (removes Edit in ...
0
votes
1answer
48 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
17 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
19 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
31 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: ...
0
votes
1answer
31 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
3answers
60 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 they be reordered?
0
votes
1answer
25 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
0
votes
1answer
29 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
22 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
35 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
vote
1answer
29 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 ... ...
-1
votes
0answers
9 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
2answers
45 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
26 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
44 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
2answers
35 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
31 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 ...
1
vote
1answer
36 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
20 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 ...