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

Microsoft Sharepoint is not supported with version

When I open up Powershell ISE I get an error while using SharePoint 2010 Microsoft SharePoint is not supported with version 4.0.30319.34014
4
votes
1answer
33 views

delete Site collections sharepoint 2010

I need to delete all site collections that contains personal in it. I get all the site collections by the cmdlet $sites= get-spsite -limit all| Where {$_.url -like "*personal*"} foreach($site in ...
0
votes
1answer
18 views

How to find out per PowerShell Script if a Solution is activated and where it is activated

i have a Solution with the name My.Solutionname as the result of it i have a WSP with the name My.Solutionname.wsp It includes one Site and one Web scoped Feature. I have a SharePoint 2013 Farm ...
0
votes
1answer
11 views

Find out which Content Type a field is associated with using PowerShell

I have added two Content Types to a List some of the Fields exist in both content types so I have got duplicate fields. The field which is added by the new Content Type is empty. Now I want to ...
1
vote
1answer
15 views

Creating Result Sources by PowerShell

I want to create a PowerShell script that creates Result Sources in Search Service Application. If it's possible I would like to state the Result Sources in an XML-file with a sourceID. How can this ...
0
votes
1answer
18 views

Setting Managed Propety Refinable Option with PS

I'm trying to configure managed properties through PowerShell but there's one particular parameter that I can't figure out. I want to make a certain property refinable but none of the commands listed ...
3
votes
1answer
110 views

Recovering a file from the recycle bin

I'm working on a general function to recover an item programatically from a recycle bin via Powershell and CSOM. This is what I have so far, it doesn't throw an error, but it doesn't recover the file ...
0
votes
1answer
28 views

Enable versioning on document libraries excluding some

I have enabled 10 major versions on all document libraries in my farm using the code below but I now need to exclude a few specific sites so that the major version number can be different to 10. How ...
4
votes
1answer
38 views

Connect-SPOService : Could not connect to SharePoint Online

I've followed these steps on technet but had no success: https://technet.microsoft.com/en-us/library/fp161372.aspx PS Command: Connect-SPOService -Url "https://<mydomain>-admin.sharepoint.com" ...
0
votes
1answer
14 views

Determine via code if workflow is stuck in error state

There is a workflow (Visual Studio and SP 2010 style WF) that seems to be getting stuck every so often when it errors. I see the item in the WF history for the list item saying something like "An ...
2
votes
1answer
18 views

Why is the New-SPContentDatabase command looking for .mdf file in E:?

I am trying to create a site collection with its dedicated content database in SharePoint 2010. To that end, I am trying to use powershell with New-SPContentDatabase command. Here is the command I ...
2
votes
2answers
37 views

Copy a value from one field to another with PowerShell

I am trying to run the following PowerShell script in order to fill-in the values of the title column with the values from the esubject column: $site = new-object ...
1
vote
2answers
27 views

PowerShell CSOM set web inheritance

Piggy backing off my last question, Modifying Global Navigation Settings in SharePoint Online, is it possible to set a subsites navigation inheritance to use the same as the parent? If it is possible ...
0
votes
0answers
10 views

powershell to select a lot of files in folders and subfolders

First my problem : I started to move a big library into a document center in Sharepoint, everything went fine, except people couldn't see files in it. After a short research I discovered the check out ...
0
votes
0answers
13 views

sharepoint 2010 powershell to delete workflow history

I'm looking to put together a powershell for sharepoint 2010. I want to delete workflow history after 30 days, for everything in my farm/sites BUT I want it to exlucde certain lists that we need to ...
0
votes
0answers
29 views

Retrieve SharePoint 2013 Product key script

I've tried many scripts, but all of them retrieving another key then product key, that i wrote in start of installation (i remember first symbols). Is there any way to get the right Product key, that ...
0
votes
0answers
15 views

How to get documents within each document set from a document set library using powershell

I have to set a value of particular column for all documents in the ABC library. This library contains many Document Sets, within which there are different documents. #instance of Client Context ...
0
votes
1answer
36 views

Check in a lot of files in sharepoint online (Document center)

Here it's my problem : I started to move a lot of files in a document center, but yesterday I learned that users cannot see them, but permissions we're all right. I checked, and finally found that ...
0
votes
0answers
23 views

PowerShell code to get managed navigation

I have written the below powershell code to get the managed navigation throughout the sites. ## SharePoint DLL [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") ...
1
vote
1answer
23 views

Any recommendations for SharePoint Online PowerShell Debugging Tools

I just discovered code.visualstudio.com, which even has intellisense for PowerShell scripts. Debugging those scripts, especially when the target is SharePoint Online, is a different matter. Does ...
0
votes
1answer
14 views

shareopint powershell pointing the field of an element inside the collection

I have a question about the follow code: $web = Get-SPWeb http://localhost $list = $web.Lists["Style Library"] $fields = $list.Fields.InternalName $fields | Where {$_ -like '*workflow*'} output: ...
0
votes
1answer
27 views

How can I generate a report to display all users' access to a site?

I would like to generate an Excel (or CSV) file to have a list of all users and what type of access they have to a certain 2010 site? This site is secure, but I do have administrative permissions to ...
0
votes
0answers
22 views

Version count not showing what it should do

$Upload = $DestinationFolder.Files.Add($FileCreationInfo) $Context.Load($Upload) $Context.ExecuteQuery() Write-host "Adding the meta data to the document in O365" $ListItem = ...
1
vote
1answer
23 views

Change user profile sub type with powershell

How to change the user profile sub type for an account with powershell? The UI way: Edit user profile in the CA. Change the subtype to custom subtype and save So far I have this code. $site = ...
0
votes
2answers
15 views

Cannot reach PowerShell profile

I am trying to open PowerShell profile, I typed: $profile in Windows PowerShell, and it gave me the following path: ...
0
votes
1answer
29 views

How can I run REST from batch or powershell?

I want to create an item (Title,ID, description) in Mylist by using REST/batch/powershell/SQL store procedure Any reference or information will be appreciated.
1
vote
1answer
38 views

Office365: Scripting One Drive for Business with PowerShell

In Office 365, a One Drive instance for a user is typically created when they click on their "About Me" page. Does anyone know if it's possible to avoid this by having One Drive instances created ...
0
votes
1answer
23 views

Retrieving SharePoint Item ID - Powershell

I am creating a script that looks through our WebApp and gets all Site Collections, Sub-Sites and list all the documents with certain pieces of information regarding each item. I have to retrieve ...
0
votes
0answers
29 views

Remove indexing from SharePoint 2013 Document Library using PowerShell Script

I have a document library and indexing has been added to this library through site setting. In Indexing there is value in primary column and Secondary Column. Suppose that in Primary column there is ...
0
votes
0answers
8 views

Import Visio Workflow in SharePoint 2013 using powershell

I received a .vwi file, which is a Visio workflow and now I would like to add it to the SharePoint workflow of a site collection. So far I have found that it can only be imported using SharePoint ...
0
votes
0answers
21 views

Powershell - Publish Designer workflow on all sites

As a follow up to my previous question on editing a workflow; Activating a Sharepoint 2013 Workflow Feature I have been able to change the contents of the workflow and publish it, however the ...
0
votes
1answer
31 views

Increase the display name length for user profile property

I want to add a custom user profile property whose display name is more that 50 characters. I am unable to do so using UI or PowerShell.
0
votes
0answers
9 views

Syntax problem Powershell create list SharePoint

I have some syntax problem in my script, I have this error : http://puu.sh/jEpzO/aac536695f.png Here you have the code : http://puu.sh/jEpB7/bcd85b70df.png Can you help me? Thanks :)
2
votes
1answer
30 views

Using PowerShell with CSOM to grant permissions to AD security groups

I have been testing out the provisioning of team sites using Powershell CSOM calls working against an on premise SharePoint 2013 farm. Creating Team Sites this way is very easy. One of the great ...
1
vote
0answers
21 views

Delete major version powershell csom

I have a document library where i have uploaded documents it has 2 major versions and i want to delete the first major version. Is there powershell csom code i can used to do this
0
votes
0answers
15 views

Powershell Error while creating specific Folder in Library!

I am trying to create nested folders in a library based on an input. Below is my code. This works for all other values except few. I am not getting what wrong i do. It works for values less than 50 ...
0
votes
0answers
12 views

How to migrate a wiki library using powershell?

I have a number of wiki libraries on a SharePoint 2013 On-Premise system I'd now like to move to SharePoint Online. I've found a number of cmdlet's relating to moving a document library - does the ...
1
vote
1answer
33 views

Accessing SharePoint Document ID Properties Using Powershell

Due to third party Software installed in our SharePoint environment we have a number of documents with the same DocumentID. I am working on a PowerShell script that will check each item and assign a ...
0
votes
2answers
34 views

Compare a csv items with sharepoint list items with PowerShell CSOM

I have to compare the whole CSV file with SharePoint list items to get the result either SP list items and CSV items are same/equal or not and then do the CRUD operation on SP list to maintain the ...
0
votes
1answer
22 views

Add user in group with permission problem

In my site, I add user with powershell to a group. Set-SPUser -Identity $User -Web $siteCollUrl -Group $group The user appear in the groupe but when I do a "check permission" on the SharePoint ...
1
vote
1answer
22 views

import list from sharepoint 2013 to 2010 with powershell

How do I import/export a list from SharePoint 2013 to 2010 with PowerShell?
1
vote
2answers
28 views

How to create Content Organizer rules through powershell in sharepoint 2010?

I have a bunch of doc libraries. I need to create content organizer rules for these 2000 libraries through powershell? Any help will be appreciated. I also have to fill the condition string.
2
votes
2answers
192 views

There is already a term with the same default label and parent term

I am using SP2013 on-premise standard edition and we tried to update the user profile with a PowerShell script. Unfortately, part of profiles cannot be updated. The exception is "There is already a ...
0
votes
1answer
14 views

How marge SpLogFile by colrelation in sharepoint online?

Merge-SPlogfile –Path "Path" –Correlation "id" I know that above command is the way of finding log file in on-premise environment. How can I do this in sharepoint online (office 365). I am getting ...
0
votes
0answers
22 views

Sharepoint 2010 Remote Blob Storage failure

I am currently trying to configure remote blob storage in the SharePoint environment. The SQL sever (2008 R2) and the SharePoint servers are running on the windows Server 2008 R2 enterprise edition. ...
0
votes
0answers
48 views

$list.RootFolder.Url empty

I get an empty url when I try to retrieve the list root folder url. I use these Powershell commands on a Sharepoint 2010 server. $web = Get-SPWeb -Identity "http://mywebsite" $list = $web.lists["My ...
0
votes
2answers
31 views

Update column data on list via Powershell

I've got a list where theres one column that needs to be updated on a monthly basis (figures get changed). The list already has a person column so over-writing the whole list each month isn't what I'm ...
0
votes
0answers
18 views

Powershell Added groups not showing in Site Permissions

I'm using Powershell to do the following: 1. Create Custom Permission levels 2. Create new SharePoint Groups based on these levels 3. Add AD Groups to the SharePoint groups The SharePoint groups are ...
2
votes
1answer
36 views

Creating site collection - PowerShell vs. Central Admin

I have a PowerShell script in which I first create a new site collection, then fetches the SPWeb object of the sitecollection and then set some properties. Due to a specific error, I have instead ...
0
votes
0answers
22 views

remove the first major version of a doc powershell

I am uploading a file into sharepoint and changing the metadata like so $FileStream = New-Object IO.FileStream($File.FullName,[System.IO.FileMode]::Open) $FileCreationInfo = ...