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

How to iterate list items from two list using where in powershell script

I have two list from where i want to collect common items. I am not able to make use of $caml in my script. My script: Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue ...
0
votes
1answer
59 views

Unable to send email from SSIS(Script Task) package to SharePoint 2013 Document Library

I am trying to send an email from a SSIS package to a SharePoint 2013 Document library. I am using a Script Task for this. The code I am using is as follows. public void Main() { String Sender = ...
1
vote
1answer
41 views

Import-csv command to read a CSV from Document Library is giving error

I am trying to read a CSV file from a SharePoint 2013 Document Library. I am using following Powershell command for this. Import-csv "\\ServerName\sites\SiteName\MyDocumentLibrary\MyCSVFile.csv" ...
0
votes
0answers
101 views

The profile synchronization status stuck stopping?

How to stop this stopping immediately in my SharePoint user profile, using powershell.
0
votes
1answer
27 views

Issue while exporting site

We are facing an error while exporting a site: The object of type Web and URL that was configured as part of the Export Settings does not exist. Verified the below options: Ran the Powershell ...
0
votes
1answer
106 views

CSOM And FieldURLValue Error

I am trying to set a URL Field to update the Description and every time i run this ClientSide (via Powershell) I get the following error Exception calling "ExecuteQuery" with "0" argument(s): ...
0
votes
1answer
15 views

Calculating Content Organizer Destination

I want to find a way to calculate (using powershell) the final destination of an item in a document library. This little snippet is what I'm trying to do but it keeps saying that it doesn't contain ...
0
votes
0answers
91 views

Uninstalling farm solutions, will not remove the related site collection features

I am facing a problem which I cannot understand how to fix it. Now I have installed third party tools inside my SharePoint 2013 server. Then I wanted to remove them, so i went to "Central ...
0
votes
2answers
50 views

Disable inline editing sharepoint 2013 through powershell

I have migrated a sharepoint 2010 list with inline editing enabled to sharepoint 2013 and now this setting is not viewable through the GUI, thus I cannot disable it. Is there a powershell cmdlet for ...
1
vote
0answers
79 views

Executing PowerShell script from SharePoint 2013 WebPart

I've been trying to execute my powershell code from a button click on a SharePoint Webpart. I came across this solution on a forum post. private string RunScript(string scriptText){ Runspace ...
1
vote
0answers
58 views

Activate Site Publishing Features via Powershell for SharePoint 2010 throws exception

We are having trouble activating the Publishing Site Features via Powershell. The 2 features we are trying to activate are: PublishingSite PublishingWeb We are executing the following Powershell: ...
1
vote
1answer
248 views

Copy value from one field to another in large list

I have a larger list (~6000 items) that I want to copy values from one field to another. Is there an easy way to do this? I'm guessing there is a REST or PowerShell way, but only have limited ...
1
vote
1answer
45 views

Field name already exists

All I have backed up a sharepoint site and restored to another environment. I have a specific list which I want to update the default value of a hidden field in powershell I found the field, set ...
1
vote
2answers
156 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
1answer
153 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
146 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
0answers
106 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
160 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.
0
votes
1answer
72 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
103 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
125 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 ...
0
votes
1answer
49 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
41 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
0answers
89 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 ...
1
vote
2answers
86 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
38 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 ...
0
votes
1answer
115 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
0answers
22 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
50 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
100 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
2answers
39 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
160 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
14 views

Can we use Powershell in SharePoint server 2007 platform

I want to use the Powershell capabilities for SharePoint Server 2007. Is that possible?
0
votes
1answer
69 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
2answers
80 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
85 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
285 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 ...
2
votes
3answers
348 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
1answer
125 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
61 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 ...
3
votes
3answers
74 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 ...
2
votes
1answer
122 views

Check If Document Library Already Exists Using Powershell

How can I perform a check if a document library already exists using Powershell in SharePoint 2010?
1
vote
1answer
95 views

Setting the default value for a taxonomy field

I have been creating a load of site columns with powershell from a .csv file. I am now trying to create new taxonomy or metadata field: $spField = ...
1
vote
2answers
153 views

How to archive the AuditData table on a contentDB?

I have a content db whose audit log is getting really big (60GB) and it's starting to effect the DB. I know I can go in and delete entries via Powershell, but I wanted to archive this table before I ...
1
vote
1answer
39 views

Cannot Call RemoveWorkflowFromListItem in Powershell

I got the following line of code: [Microsoft.SharePoint.Workflow.SPWorkflowManager]::RemoveWorkflowFromListItem($wf); I receive the error Method invocation failed because ...
1
vote
1answer
91 views

How to get access to SPServiceContext in powershell?

I'm having trouble getting Get-SPServiceContext to return a SiteSubscriptionId that is not a bunch of zeros. I'm using an account 'SP_Sync' and set permissions to Farm Administrators group User ...
1
vote
1answer
327 views

SharePoint 2013 Online: List of all suspended workflows

Is there a powershell script or service out there that gives you a list of all workflow statuses? Primarily we are looking for a way to get a list of all current suspended workflows. Update: Here ...
0
votes
1answer
41 views

When it is safe to delete entries from contentDB?

I have a file that is getting caught by the health analyzer ReportViewer.dwp as a missing setup file referenced [1] times in the database. I've tracked the file down to the web part gallery and ...
0
votes
1answer
252 views

Powershell - Change display format in SharePoint Site column from friendly to standard

How can I change the display format from friendly to standard? I want to change this on all lists in the solution $sites = Get-SPSite "http://company.com/sites/testdelete/" $created = "Created" ...
1
vote
1answer
107 views

Power shell script to convert csv to excel with out installing excel services

I have written the power shell script to export the view in to a CSV file. But I want the same data to be exported to EXCel. I don't have excel installed on my share point server and my client does ...