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
8 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
30 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
2k views

App Pool created with Powershell name appears as GUID in IIS

I just installed SP 2013 in a test environment. I created an app pool to be used by the service applications using the Powershell command below: New_SPServiceApplicationPool -Name "Default ...
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 ...
3
votes
1answer
5k views

creating site collections using SharePoint management shell 2013

I am creating Site Collections for Testing SharePoint. I am using Host Named Site Collection to do that instead of the path based site collection addressing. For that Got a reference to the HNSC ...
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
34 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 ...
3
votes
1answer
686 views

Connect all SSRS Reports in SharePoint library to DataSource using Powershell

We are migrating MOSS to SP2010 and have a library with hundreds of SSRS reports that use a Shared DataSource (in SharePoint Integrated mode.) Since the ReportServer database location has also ...
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
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
2answers
49 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
2answers
37 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
1answer
17 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 ...
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
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 ...
1
vote
1answer
841 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 ...
0
votes
2answers
122 views

different version error when restoring a SharePoint site collection

So I created a new single farm SharePoint server for testing purposed (we currently had a live production farm but no testing server). I am trying to restore the back ups of the live server to the ...
0
votes
0answers
12 views
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"] = ...
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 ...
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 ...
5
votes
3answers
126 views

can not modify AllowGridEditing using powershell

I wrote the following script :- Get-SPWeb http://vstg01/CustomerPortal/with/ $list = $web.Lists["Meeting"] $field = $list.Fields["Item Number"] $field.ShowInNewForm = $False $field.ShowInEditForm = ...
1
vote
3answers
4k views

Adding a User to an existing SharePoint Group

I am trying to create a script to add a user to an existing SharePoint group. I'm new to PowerShell Scripting & SharePoint, so I'm a little lost. I keep getting the error that the specified group ...
0
votes
3answers
5k views

Get-SPWeb: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

I'm having issue with Get-SPWeb: I did everything suggested at Error - Get-SPWeb in Powershell but still not working. weird thing is: it worked before. Did MS change something? the account i ...
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 ...
2
votes
1answer
458 views

Unable to remove app from SharePoint 2013 site

I've seen this problem in several places in our dev and test implementation of SharePoint 2013. Especially in sites where there has been a lot of testing where people uninstall and install apps. The ...
1
vote
2answers
2k views

deleting managed metadata using powershell script sharepoint 2010

Deleting managed metadata term stores using powershell script. Was trying with the below script but getting error "Cannot index into null array". Please help out thanks in advance.... Add-PSSnapin ...
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
votes
2answers
685 views

“Sorry something went wrong with adding the app. Click to retry”

I am unable to remove the app, it is corrupted. Can any give example using PowerShell how to uninstall the app?
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
29 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 ...
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
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, ...
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
630 views

Change SharePoint Service Account using PowerShell

In the Central Admin you are able to change a registered Service Account to a specified service (as in the image) Is this possible to manage by powershell? Thanks
0
votes
3answers
65 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?
2
votes
1answer
926 views

Backup-Spsite always failing with HRESULT 0x80131904

While taking backup of Site Collection on SharePoint 2010 using powershell command "Backup-SPSite" I always encounter below error : "Backup-SPSite : Exception from HRESULT: 0x80131904 At line:1 ...
0
votes
1answer
555 views

Exception calling “ExecuteQuery” with “0” argument(s): "The remote server returned an error: (400) Bad Request. CSOM SP13

I'm trying to add a page to my search centre in sharepoint 2013. Trying out cSOM too. Here is my code, I am getting a bug Exception calling "ExecuteQuery" with "0" argument(s): "The remote server ...
1
vote
1answer
646 views

Powershell, how to check if spuser object is user or group?

I have a powershell script which is fixing some corrupted userprofiles. But the results are also groups. I would like to skip the groups and fix only the users. How can I check if the spuser object 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
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
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 ...