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

Get Info about Site Collection that not used during the last 180 days

I need help to get a list of Site Collections, that where not used during the last 180 days. I´ve found the "LastModified" Attribut, but it´s not the goal i needed. I´ve a SharePoint 2013 Environment ...
2
votes
1answer
119 views

Add +2 years based on created date in SharePoint using powershell

I want to add a date based on item created date +2 years for all existing items in the New Column Date , can any one help on this using PowerShell? Example: Created date: 7/9/2015 Date: ...
0
votes
0answers
24 views

Why updating of InplaceSearchEnabled of the listview webpart does not reflect on the page?

We have a script that generates pages that contains list view web part. The script sets the InplaceSearchEnabled of the web part true, but when we check the pages, the search box does not appear. I ...
0
votes
1answer
37 views

Cannot access the local farm -Error while running PowerShell Script on Remote Server in SP 2013

I am trying to run a SP PowerShell script remotely from my SP 2013 dev server.The target server is also a SP 2013 server with same configuration. I am able to get the folders, items, accessing the ...
1
vote
1answer
43 views

How can I remove all documents from a SharePoint 2010 Web Application

We would like to restore our entire production environment in our stage environment. After completing the restore, we would like to strip out all the documents to just leave the "structure" behind. ...
0
votes
1answer
16 views

unable to get the file from the style library using powershell

Trying to get access the folder and files within the style library using PowerShell in my SP 2013 env. Add-PSSnapIn Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue cls $weburl= ...
0
votes
1answer
138 views

Deleting and creating the Domain Group “Everyone” in Sharepoint 2013 using Powershell CSOM

With Powershell CSOM and SharePoint 2013, I am trying to reset the permission to the domain group "Everyone", with the name "c:0(.s|true". Therefore I want to delete and recreate it, so that all the ...
0
votes
1answer
18 views

How to find SPGroups where the user is a member using PowerShell

How to find out a user who is part of the SPGroups in a site collection using PowerShell.I want to pass the userid and get the names of groups where he is part of.Later I want to delete his id from ...
0
votes
1answer
54 views

Powershell query - Add email ids from SharePoint group into an email

I have few email ids generated using the below script: Script 1: Get-SPSite https://SitecollectionURL | Select -ExpandProperty RootWeb | Select -ExpandProperty Groups | Where {$_.Name -EQ "SP Group ...
0
votes
1answer
14 views

Sharepoint get SPWEB group right

Is it possible to get group right on a SPWEB? I made script who get all groups in collection but I need to get right by SPWEB. spweb1.com => admin = full control/ group2 = read spweb2.com => admin = ...
1
vote
3answers
52 views

get number of the latest version for pages using powershell script in sharepoint

I am trying to get the latest version's number foreach($item in $listItems){ $fieldValues = @{ "Title" = $item["Title"] "Created" = $item["Created"] "Modified" = ...
1
vote
2answers
49 views

How to use PowerShell with Office 365

I have searched a lot but didn't get a perfect idea on how to connect PowerShell with Office 365 SharePoint site. Can somebody please explain me how to make my SharePoint online site PowerShell ready ...
1
vote
1answer
92 views

Creating a site column of type Choice using Powershell script gives error

I have written a powershell script to create site columns in the site. I am able to create site columns of type text and number but when I try creating columns of type Choice I get error. The ...
0
votes
2answers
15 views

change configuration of webpart with powershell

I have a webpart applied on a sample page: http://mysite/page/registration I need to change the TYPE property of the webpart on this page.
0
votes
1answer
35 views

Exception error when using Powershell to start a workflow on SharePoint 2010 on an item

I am very new to powershell. I am trying to use it to start a (send Document Set to repository) workflow on selected Document Sets in a library. The workflow worked when I used it manually on one ...
0
votes
0answers
10 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
46 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 ...
1
vote
0answers
24 views

Get the internal names of User Profile activities 'Blog Posts' and 'Blog Comments under 'Activities I am following'

I am using a PowerShell Script (dont remember the link from where i referenced this) that updates (Checks/Unchecks) the activities under 'Activities I am following'. I also ran a script to get the ...
0
votes
1answer
39 views

Change property bag value in SharePoint 2013 using powershell

I tried to amend SharePoint site property bag value using the code in Editing property bag values using powershell However, I couldn't find the property. It seems that ...
0
votes
3answers
46 views

How can I include site admins in a csv list of site collections?

I'm building a PowerShell script to export a list of all the site collections in a particular web application. So far I have this: Get-SpWebApplication http://www.contoso.com | Get-SPSite -Limit All ...
1
vote
2answers
180 views

Adding Read-Only-permissions to a list for a Sharepoint Group using Powershell CSOM

I am trying to add read-only-permissions to a specific group called "Students" for a list I have created called "Quiz". I have to use PowerShell CSOM, and in every other tutorial I've been through, ...
0
votes
2answers
47 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 ...
1
vote
0answers
44 views

Update people field with a Get-SPOUser on sharepoint Online

I try to update a SharePoint Online people field (in a doc list), from PowerShell. Here's the code: $properties = $Upload.ListItemAllFields; $context.Load($properties) $properties["CLT"] = ...
0
votes
1answer
54 views

Powershell Uploading complete folder hierarchy to document Library

I have the below script that currently only uploads the content of a single folder. However I have ~300 folders to upload and changing the folder name each time before running the script is not very ...
0
votes
0answers
109 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
37 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
47 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 ...
1
vote
2answers
82 views

Web.ApplyTheme() for SharePoint Online

I want to apply one of the default themes to my SharePoint site. I found Web.ApplyTheme() method which requires string colorPaletteUrl, string fontSchemeUrl, string backgroundImageUrl, bool ...
0
votes
1answer
23 views

Overwrite the same backup file every day

I want to overwrite the same back up file of an sharepoint 2013 site collection by using the below powershell command line command: Backup-SPSite -Identity http://xyz -Path D:\SP_BACKUPS\test.bak ...
0
votes
0answers
21 views

How to change and learn guid of search result source with powershellscript?

i created search result source manually. I want to change and learn guid of search result source with powershell script. How i can do? Thanks for your help.
1
vote
1answer
98 views

breakroleinheritance for a folder powershell csom

I am trying to break permission inheritance for certain folders in my document library in office 365. However when $folder.BreakRoleInheritance($false) is executed I get an error: Method ...
1
vote
0answers
22 views

How to move search result source with powershell?

I have two development enviroments. I created search result source. I want to move result source from first enviroment to second enviroment. How can i do with powershellscript ? Thanks for your help. ...
0
votes
1answer
38 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
46 views

give permissions to folders o365 powershell csom

Have this code function GetChildFolders($RootFolder) { if($count -ne 1){ ...
1
vote
1answer
124 views

looping through subfolders in document library

I have a document library and I want to loop through all the folders I have in it. I have this piece of code $Context.Load($List.RootFolder.Folders) $context.ExecuteQuery() ...
0
votes
0answers
23 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
37 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
34 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
29 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
1answer
80 views

Hide New Document Command from ribbon using PowerShell

Want to know how to hide New Document command from ribbon using PowerShell in SP 2013. Below is my code that does not work. $CustomAction = $list.UserCustomActions.Add() $CustomAction.Title = "Hide ...
0
votes
0answers
28 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 ...
1
vote
0answers
19 views

Auto-generate forms based on list entries

I work for an MSP, where I am creating a process in SharePoint 2013 Enterprise to assist in "on-boarding" our customers. We have a SharePoint list populated with some best practices and things to look ...
0
votes
1answer
25 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
19 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
26 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
23 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
63 views

Change Quick edit on list on SharePoint 2013

I would like to set list Quick edit parameter programmatically or by schema.xml, but I can't find way to do it. View has parameter InlineEdit, but SharePoint has to set it with another way. How can ...
1
vote
1answer
53 views

Rename List with powershell SP2013

I know this is a really simple task and I have done it a thousand times and it worked every time, but I cannot rename a list via powershell anymore. $List = $web.Lists["mylist"] $List.Title = ...
0
votes
1answer
33 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
0answers
33 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 ...