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
3answers
19 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
20 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
33 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
13 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
0answers
13 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
8 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
0answers
25 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
10 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
16 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
42 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 ...
0
votes
2answers
35 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
21 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
12 views

How do I get my SharePoint 2010 Management Shell to open to PS C:\> instead of PS U:\>?2 [duplicate]

Can anyone else help with this?Original post, never answered Thank you.
1
vote
0answers
18 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
17 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
13 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
25 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
21 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
38 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
14 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
8 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
38 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
14 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
21 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
13 views

give permissions to folders o365 powershell csom

Have this code function GetChildFolders($RootFolder) { if($count -ne 1){ ...
1
vote
1answer
32 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
18 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
22 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
17 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
24 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
35 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
10 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
15 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
14 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
17 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
17 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
21 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
32 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
38 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
29 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
14 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 ...
1
vote
1answer
20 views

How to get the PowerShell equivalent API of SP Server Object Model in SP 2013

I am trying to automate some of the default OOTB functionalities of SP 2013 Record Center site.How to get access of PowerShell API - methods-properties-equivalent of these in UI OR SSOM. Is there any ...
0
votes
0answers
13 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 ...
1
vote
1answer
97 views

SP 2013 How to create new FBA sql users with PowerShell?

I set up SharePoint 2013 with FBA users (SQL). I'd like to know if it's possible to create new users using PowerShell script ? What I tried but did not work : ...
0
votes
1answer
59 views

Download all files and folders from document library to local directory o365 powershell csom

I have a document library on Office 365 which I want to download to my local directory via powershell csom. I want to keep the file structure so its exactly the same in my local directory as it is in ...
1
vote
2answers
48 views

How do I get my SharePoint 2010 Management Shell to open to PS C:\> instead of PS U:\>?

Whenever I open my SharePoint 2010 Management Shell on my remote desktop, it opens to PS U:\> rather than PS C:\> as it does on my coworker's machine. How do I get it to automatically open ...
0
votes
0answers
23 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
1answer
19 views

I want to remotely connect Sharepoint server through powershell whose database is on different machine

My SharePoint server is on machine M1 and its database is on machine M2. I want to connect and run SharePoint PowerShell command from altogether different machine M3 remotely with user U1. Is it ...
1
vote
1answer
24 views

Get all users in sharepoint farm and loop on them

I want a script who get all users on my sharepoint farm to save information. Do you have a simple way to get all users and loop foreach on them to get $userProfile["MainAffiliationSociety"].Value ...
0
votes
0answers
20 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 ...