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

PowerShell for handling the SiteActions menu

Need the API used for handling SiteActions menu in my SP 2013 site collection.I can use SP D 2013 to manipulate SiteActions menu template, but is it possible to get this menu and its command using ...
0
votes
1answer
65 views

select-object cmdlet takes 13 mins for fetching 1000 SharePoint users using get-spuser through C# remotely

I am using PowerShell cmdlet Get-SPUser through C# program remotely as follows Get-SPUSer -Web <siteCollection> | Select-Object -property Name,LoginName.... After I invoke this command it ...
0
votes
2answers
294 views

apply masterpage to site collection and all subsites - SharePoint foundation 2013 using powershell

I'm working on a **sharepoint foundation 2013.**I have applied a custom masterpage on the root site the site collection.I would like all the subsites to inherit this masterpage and apply across all ...
0
votes
0answers
569 views

Change List Item Created Date field with Powershell

Good Day, I have a list in SharePoint 2013 that I'm importing items from a csv. I need to change the created date to the created date of the imported item. I'm able to import the list item ...
0
votes
1answer
72 views

How to use powershell background jobs to delete a SPListItem

I want to delete items from a document library using powershell 2.0, but not all of them, only ones that pass some of my if statements (and no I can't use CAML for all my conditions). So I have to ...
0
votes
1answer
210 views

How to check if page exists in powershell?

I write the powershell script below to check if a webpart exists on some page on all mysites. I got an exception on the root site collection of the mysite webapplication because the page does not ...
0
votes
1answer
94 views

How to export sharepoint management scripts' result to csv/text file

[System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint”) > $null function EnumerateUserRolesPermissions ([string]$webURL){ $site = new-object ...
0
votes
0answers
41 views

How to move data files from local C drive to Content Database in SQL Server

I am having some html files in local C drive in the laptop.. the dynamic data in those files should be moved to SQL database.. the data is further used through sharepoint after its saved on sql. ...
0
votes
1answer
98 views

Print all .aspx pages within pages library to PDF

I have a requirement that requires that all .aspx pages in my 'Pages' library (Publishing Site) are printed every so often so that a physical record of that publishing page can be kept. Would it be ...
0
votes
0answers
87 views

Sharepoint Powershell Export to CSV calculated columns are blank

Probably a simple answer. I am exporting to CSV via powershell from sharepoint list and my calculated columns are showing up blank. (They show up fine when I use IE to export as .iqy file) Am I ...
0
votes
0answers
37 views

Adding permissions to folders in doclib powershell csom o365

I have a document library in o365 where I want to add permissions to the folders. The folders I have are from an array and read like \test \test\migration etc. How can I find the correct folder in the ...
0
votes
0answers
53 views

Remove the Document Template File associated with Site Content Type

I have associated a dotx file with my site content type in my site collection in SP 2013.Now, I am not able to get the template file, if I use New Document in few of my sub sites. How can I remove ...
0
votes
1answer
79 views

Unable to Remove project service application using powershell

When I run the following command: $spapp = Get-SPServiceApplication -Name "Project Server Service" Remove-SPServiceApplication $spapp -RemoveData I get the following prompt: Are you sure you ...
0
votes
0answers
22 views

Restore a previous item version

I have group of list items in sharepoint that I need to revert back 2 versions. I had made a mistake and updated about 600 items with the wrong data. I see its pretty straightforward in regards to ...
0
votes
1answer
62 views

How to Configure PerformancePoint Unattended Service Account using Exisitng SecureStore Target Application ID using PowerShell

How can you configure PerformancePoint to use an existing Target Application ID using PowerShell? Neither Set-SPPerformancePointSecureDataValues or Set-SPPerformancePointServiceApplication seem to ...
0
votes
0answers
29 views

Perform automated Unit testing in SP 2013 Portal

I have a SP 2013 site collection and implemented few features with custom content types and document upload. I am having 30+ site collections with 150+ sub sites and with 15 document libraries ...
0
votes
1answer
39 views

Update AD attribute from a data list

I'm new to SharePoint. We have a list of AD objects that we are looking for owners. We are using SharePoint to store the data and send email out to people to accept or deny ownership to the AD object ...
0
votes
1answer
70 views

Manipulate Report Viewer Webpart Parameters via PowerShell on a SharePoint 2010 WebpartPage?

I want to set the parameters of a SSRS report which is displayed through the ReportViewerWebPart by PowerShell, all on SharePoint 2010 WebpartPage. Right now, I'm confused by the documentation of the ...
0
votes
0answers
15 views

How to move a site from one share point web application to another share point web application

How to move a site from one share point web application to another web application that both web applications resides in different share point farms. 1) In a sharepoint Farm1 : it has a web ...
0
votes
0answers
90 views

Is there a free permissions auditing solution for Sharepoint 2013?

I need a way to audit permissions on my organization’s Sharepoint 2013 intranet. There’s one AD security group that’s allowed to have full control permissions to anything in our Sharepoint. Every ...
0
votes
0answers
30 views

“ShowInNewForm” & “ShowInEditForm” options are not saved inside a site templete

I wrote the following PowerShell script to hide certain columns at the list level, $web = Get-SPWeb http://gvstg01/CustomerPortal/with/ $list = $web.Lists["Meeting"] $field = $list.Fields["Item ...
0
votes
0answers
99 views

Exception calling “Update” with “1” argument(s): “This functionality is unavailable for fields not associated with a list.”

I am trying to do the following:- i have a site column named "Item number". and a custom content type named "Customer Meeting" which contain the "Item number" field inside it. now i want to ...
0
votes
0answers
24 views

Can i update all the custom Edit & New forms for my subsites using powershell

I am working on Team site inside SharePoint 2013 server, so can i achieve the following scenario :- let say i have a team site collection , which have 20 sub-sites and inside the subsites's lists i ...
0
votes
0answers
107 views

Can not prevent editting a field inside the Quick Edit using JSLINK

I have a site column named "Item Number" with internal name of "ID1", as follow:- PS H:\> $web.Fields["Item Number"] FieldValueType : System.String PreviewValueTyped ...
0
votes
0answers
46 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
773 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 ...
0
votes
1answer
58 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
0answers
50 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
425 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
2answers
79 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
295 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
312 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?
0
votes
0answers
33 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
52 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
0answers
94 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 ...
0
votes
0answers
228 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
127 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
338 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
26 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
184 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
350 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 ...
0
votes
2answers
58 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
81 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 ...
0
votes
1answer
30 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
0answers
40 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
251 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] ...
0
votes
1answer
356 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
2answers
169 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 ...
0
votes
1answer
58 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
120 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 ...