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

0
votes
1answer
8 views

Get list changes in Sharepoint Online

I am using CSOM library through Powershell to get a list of changes made to a list in Sharepoint Online. I am stuck while creating an object for the changecollection. Not sure how to get the data that ...
0
votes
3answers
619 views

Error creating SPSite using powershell

I am trying to create a web application "http://Intranet" and a site collection "http://Intranet" on SharePoint 2013 foundation farm. Here is my code $sp = New-SPAuthenticationProvider $web = ...
0
votes
1answer
15 views

Powershell understanding piping with Get-SPSite/Get-SPWeb?

I wanted to get a list of all webs within a web application. By accident I wrote the following: $webapp = "http://mywebapp" $webapp | Get-SPSite | Get-SPWeb So, this returned fantastic results, ...
0
votes
2answers
18 views

Setting a Document Sets Columns via Powershell

I have been trying to create multiple Document Sets using Powershell from a csv file. The script creates the Document Sets with the correct Name but doesnt set them up with the Metadata needed for ...
0
votes
1answer
148 views

Adding groups to sharepoint site using powershell

Hi I have added 4 groups to site collection 'A' using the powershell script below. How can I add the same groups in a site under the site collection 'A' `$web=Get-SPWeb ...
0
votes
0answers
5 views

Export-SPWeb 'These columns don't currently have unique values' fatal error

I'm trying to export some webs via Export-SPWeb in powershell and I'm receiving: FatalError: These columns don't currently have unique values. The webs have been added to SharePoint 2013 but ...
0
votes
2answers
31 views

how to move multiple documents from one to another list in SharePoint 2013?

Can any one give me an example,how we can move the documents from 1 list to another list and also from site collection1 list to another site collection2 list. Please help on this.
2
votes
1answer
389 views

Error while running the Powershell script

I want to run the following script but getting the error "Unable to find type [Microsoft.Office.Server.UserProfiles.PropertyConstants]" #Add SharePoint PowerShell SnapIn if not already added if ...
0
votes
1answer
2k views

Looking for a Powershell script to enable SharePoint Server Publishing on all sites in a site collection

I'm looking for a Powershell script to enable the SharePoint Server Publishing site feature on all sites in a single site collection or all site collections.
0
votes
1answer
27 views

How to find the size of all documents in sharepoint 2013

I'm trying to get the file size of all documents - i.e. pdf, word, xls, etc. I would like to exclude pages, but it's of a minor importance. I have tried the powershell solution in ...
1
vote
1answer
34 views

it's possible to give a line break in Newsfeed Post? (via powershell)

New post provisioned via powershell script to a Newsfeed: $site = Get-SPSite "siteurl" $ServiceContext = Get-SPServiceContext $site $ProfileManager = new-object ...
0
votes
2answers
45 views

Basic question: Difference between List.items and List.ItemCount in SharePoint

Just for clarifying, I have written following two lines in Powershell script and see output as: $web = Get-SPWeb http://intranet; $list = $web.GetList("documents"); $items = $list.items; i see ...
0
votes
1answer
585 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
2answers
29 views

PowerShell script doesn't appear to work as scheduled task

I have a Pscript for clearing and repopulating a Sharepoint 2010 list. It works fine when run manually. I set it to run as a scheduled task, and the history shows it as running successfully, but the ...
1
vote
1answer
374 views

SharePoint Error when I run PSConfig

I am getting the following error when I attempt to manually run PSConfig following an update on this server from the June/July 2012 CU to the April 2013 CU (this is from the logfile): 06/10/2013 ...
0
votes
1answer
17 views

Create Audit Log Script w/ Custom Dates

The following PowerShell script pulls all the content from a specified SharePoint site and creates an audit log for all versions and dates. My Question is how would I implement a Start/End date? For ...
0
votes
0answers
15 views

Last updated information in User Profile with time date in SharePoint 2013?

Is it possible to get the last updated date with time in user profile,if user updated their information,is there any default Columns available to get this type of information using power shell.
0
votes
1answer
303 views

how to change Catalog settings of a list by powershell

I would like to change catalog settings of Pages list to make it act like a Catalog by using powershell. It includes adding Title as "Catalog Item URL Fields" and choosing a Term Set for "Navigation ...
0
votes
0answers
22 views

How do you get Group/Permissions information for a subsite (that breaks inheritance) on a SharePoint Online Site Collection using Powershell

tl;dr version: Ultimately I can get a list of all Groups for a given Site Collection, but I can't tell which groups give access to which sites. Which is to say that, for a given subsite that has ...
4
votes
7answers
11k views

How to delete all items in a List using PowerShell

I am using following PowerShell script to delete all items of the List. It's working fine but take too long for huge lists. Is there any efficient way of clearing list items, something like truncate ...
4
votes
4answers
5k views

Get name of Farm account using Powershell

How can I get the name of the Farm account ? I can see it listed in Get-SPManagedAccount, but do not see any properties on the SPManagedAccount objects to be able to dynamically filter by and ...
0
votes
1answer
20 views

AutoSPInstaller install script failed with Warning: Cannot locate SharePoint binaries

I have trouble understanding a warning message I get when I start the AutoSPInstaller script. This is something I have seen first time after countless installations of SharePoint 2013. I have also no ...
0
votes
2answers
36 views

Hide errors displaying PowerShell for sharepoint

I want to supress displaying error messages on a certain bloc of code in powershell. I know that -ErrorAction SilentlyContinue supress error displaying, but it only goes with a cmd-let, in my case i ...
0
votes
1answer
533 views

How to set Navigation in Office 365 site using powershell?

I am creating some Global / Current navigations nodes on a SharePoint site (SharePoint 2010 in house site) by fetching them through a csv file. Below is the script: #Script to create Global/Current ...
1
vote
6answers
6k views

PowerShell - Restore-SPSite Error

Restore-SPSite "http://dev.sharepoint2010/websites/0001" -path d:\temp\mybackup.bak -force I want to restore a SiteCollection. 2 Days ago the same command works fine. First I want to restore the ...
0
votes
1answer
17 views

PS Script copy file in specific folder

Almost same question as here : Power shell script to copy the files and folders with in 2 specific dates I understand the script, which copies entire folders/files from a library to another. But my ...
4
votes
3answers
309 views

Deploying and Installing Sharepoint apps into App catalog using CSOM

Can anyone suggest me on how to use SP.AppCatalog() in JSOM or CSOM and get the all apps in AppCatalog, Not AppInstances..
0
votes
0answers
8 views

When cloning the search index component in SharePoint 2013, where should the root directory be placed?

I've got an index component in my search service application listed as "Degraded" status and they say the solution is to create a new one and replace the old one. But when using the ...
0
votes
0answers
12 views

BDC: cannot logon with credentials obtained from secure store provider

Hmm.. When I manually create a new contentsource, point it to the single sql database-bcs everything works OK (no probs) (via Central Admin) but... When i try the same via a powershell script I get ...
0
votes
1answer
16 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
1answer
375 views

Creating a calculated column with replace in Powershell

I am trying to create a caluclated column through powershell script. Below is the Script: Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue $site = Get-SPweb ...
0
votes
1answer
44 views

Migrating user accounts from one AD domain to another AD Domain using Powershell

Is there any Powershell command to migrate all the 1000+ user accounts from old AD domain to new domain? If yes, what will be the possible powershell script? Any sample Powershell script or reference ...
1
vote
2answers
13 views

Can we use Powershell in SharePoint server 2007 platform

I want to use the Powershell capabilities for SharePoint Server 2007. Is that possible?
2
votes
1answer
557 views

Disable site collection health check rule

Is there anyway of disabling/bypassing a site collection health check rule. For example, I want to bypass Missing Site Templates rule when I upgrade a site collection in SP 2010 mode to SP 2013. For ...
0
votes
1answer
23 views

Sharepoint2010 powershell assign unique permissions to files in a document library

I am trying to assign unique permissions to files in a document library using PowerShell. i.e. iterate through each file in a document library break its role inheritance and assign read permissions to ...
0
votes
1answer
41 views

Importing 5002 users into SharePoint Online with a work email

I need to create a test to prove that the 5000 list item limit can be exceeded. More specifically Users. I have en Excel spreadsheet that contains 5002 users. I don't need the trivial data to be ...
2
votes
2answers
2k views

PowerShell Set-WebApplication property bag doesn't work

I have this PowerShell script function SetPropertyBag ($webAppUrl, $key, $value) { $spwebApp=Get-SPWebApplication -Identity $webAppUrl Write $spwebApp ...
3
votes
2answers
51 views

Can I suppress Import-SPWeb log created message

Using the SharePoint Administrator PowerShell command Import-SPWeb, I loop through many backup files, each generates the output: Log file generated: C:\somepath\backup.cmp.import.log With the ...
1
vote
3answers
57 views

How to find all empty folders within a document library, maybe with a PowerShell script?

We have discovered a library where a user has written script to create auto numbered folders, within a library... we now have 32000 of them!!? I need a powershell script that will list the folders, ...
0
votes
2answers
26 views

Restore the root site as site collection with in the same web application using power shell?

we migrated the sites from 2003 to 2013,in 2013 i am having root site i want to move the root site to site collection with in the same web application using power shell. I used the command after taken ...
0
votes
0answers
26 views

How to retrieve BDC Identity from External List programmatically?

I need to do a lookup on an External List (in SharePoint Online - Office 365) to retrieve the value of the BDC Identity. BCS is talking to an OData web service. (I'm not a Visual Studio guy), so ...
0
votes
1answer
16 views

Unable to import multiple .cmp files

I have run the command Export-SPWeb -Identity $url -ItemUrl $largeList -CompressionSize 15 -Path "c:\itemFolder\backup.cmp" This results in 3 files. c:\itemFolder\backup.cmp ...
0
votes
1answer
553 views

Creating SiteCollections using SharePoint Management Shell 2013

I am following the below instruction to create a NHSC, but at point D when I am creating a Team Site, I get the message that the new URL is not found! Do I need to create that before? Am I missing ...
3
votes
5answers
31k views

List all Site Collections in a Farm

I want to be able to see the number, names, url of all site collections there are in a given farm. Would there be a powershell command to do that?
0
votes
2answers
85 views

Can't obtain Document set author via PowerShell

I try to print Authors of all items of docset list in powershell script: Clear-Host $web = Get-SPWeb "http://dogovor.ab.ru" $list = $web.Lists["Agreements"] $AllItems = $list.Items foreach ($t in ...
1
vote
1answer
343 views

Powershell script for user profile properties in SharePoint Online 2013?

Does anyone know of a Powershell script that can be used to pull user profile information from SharePoint Online 2013? The SharePoint server scripts are useless. Particularly, we are looking for a ...
3
votes
1answer
373 views

Import-Spweb is changing the user id if the user does not exist in the organisation anymore

We had to restore a list (which has versionsing enabled) in our PROD enviornment SP 2010 August CU 2012. We used the following command metioned below: Import-SPWeb http://example.com/projects/myList ...
0
votes
2answers
2k views

Error 404 when Pairing Workflow Server with SharePoint 2013

when I try this in powershell: Register-SPWorkflowService –SPSite "http://spserver2013" –WorkflowHostUri http://spserver2013:12291" –AllowOAuthHttp I get this error: Register-SPWorkflowService ...
0
votes
1answer
21 views

upload log file to sharepoint online - dummy

I have done a few hours of searching in Google I found this method to upload a file to SharePoint online as a tenant rather that the administrator. I can authenticate and it seems to me would work ...
0
votes
1answer
299 views

File gone after using SPFile.MoveTo

I am trying to move files from the RootFolder to a subfolder via PowerShell (would like to keep SPItem.Id from changing if possible). The code I have used is pretty straight forward. starting to ...