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
vote
1answer
22 views

Why do I get this error creating a web part page in Sharepoint 2010?

The following appears to be the way to create a web part page in Sharepoint 2010 using Powershell: $web = Get-SPWeb http://somesite $pWeb = ...
0
votes
0answers
16 views

Enter New-SPUser without actually authenticating?

Our org has two AD forests (internal users, external users) with no trust between them. When I enter a user manually in SharePoint and I type the username into the people picker, it accepts the user ...
1
vote
1answer
22 views

How do I move a list item to the owner's recycling bin?

I have a need to run a PowerShell script against a list that deletes items older than 15 days. I have the script written, as well as user notifications, however I am puzzled as to how I can recycle ...
1
vote
1answer
17 views

get all the child terms from a parent term

I am trying to get all the child terms from a parent term from my termset. $Group = $termStore.Groups["grp1F"] write-host Connection made with group - $Group.Name $termset = $Group.termsets["ts1"] ...
1
vote
0answers
10 views

Unable to add link in the Summary Links web part by power shell script

I want to add links to the summary link web part using the power shell script. I have found a script for it on this link, but is it not working as per the requirement. I have a publishing website and ...
0
votes
1answer
17 views

License users in O365 with PowerShell

Might be the wrong forums for this topic but someone might have a direction to point me in... Looking for guidance on how I can set user licenses in O365 as they are enabled or disabled in my on ...
0
votes
1answer
17 views

Get List Item details from the changelog in PowerShell

I am trying to manage a changelog in a Sharepoint Online custom task list with Powershell and CSOM. I can get changes in a list from the below code and retrieve details like Update type and Update ...
2
votes
2answers
48 views

Powershell DownloadFile(,) command giving 403 - Forbidden error

I am using Powershell DownloadFile(,) command for reading a .csv file from a document library in SharePoint 2013 site. When i ran the code on my DEV environment, it ran properly. The DEV environment ...
2
votes
2answers
22 views

Add AD group to SharePoint Online using REST API

Is it possible to add an AD group into SharePoint. I've created a user group in the Office 365 portal, which appears to be stored in AD. Is there a way of searching for this AD group and adding it. ...
1
vote
0answers
17 views

Install app for SharePoint using PowerShell - permissions on user profiles

I'm trying to install our app using the PowerShell and after running the application I get an error while accessing the user profile data. We are using the following permissions in our app: ...
3
votes
1answer
61 views

How to get SharePoint Online list url using Powershell?

I can retrieve a title $list.Title, but a title is not the same as url. In C# I can get list.DefaultViewUrl, which doesn't seem to be an option in Powershell. I found this solution with ...
0
votes
0answers
26 views

SP2013 - <nativehr>0x80070003</nativehr><nativestack></nativestack>

I successfully restored a backup from another farm a few of weeks ago using restore-spsite. I had to delete that site collection, now I want to restore it again with that same backup file. The 2 ...
0
votes
1answer
18 views

Export large list to excel through powershell

We can successfully migrate a list to the excel through power-shell, but if a list is having 1 Lakh of data then can we transfer through power-shell? Is there any restriction on number of list items ...
0
votes
0answers
12 views

SharePoint 2013 Online: Adding webparts to a page with PowerShell

SharePoint 2007 --> SharePoint Online migration. Moving from teamsites that have web part pages as thier default.aspx location to SPO ones that use Wiki Pages. We're using a third party to do the ...
1
vote
0answers
12 views

Deploy a file to the “Forms” folder of a Document Library using Powershell

I am dynamically building up a file that I then want to upload to SharePoint 2013 using PowerShell. I want to upload this file into the "Forms" folder of a Document Library - So not into the Document ...
0
votes
3answers
23 views

Using list items to create sites programatically

I am looking to programatically create sites based on items in a SharePoint list. The list has 4 columns, Name, Email, ManagerName, ManagerEmail. The aim is to use PowerShell to create a foreach ...
1
vote
1answer
19 views

Delete items from document library based on criteria just like WHERE clause in SQL statement

Is there a way to delete items from a document library based on some criteria for e.g. delete all documents whose created date is less than 1/1/2012. I know it can be done through code but I am ...
1
vote
1answer
22 views

What is proper way to dispose after getting audit entries?

I'm cleaning up our audit logs exporting to a local disk for archiving. The logs are so big I can only export about a half a month at a time. The script I wrote works fine, but I'd like to automate ...
0
votes
0answers
11 views

SharePoint microfeed cant be migrated?

I just used a 3rd party software to migrate Project sites data from 1 SharePoint site to another. Worked like a charm except for the microfeed. The tool doesn't support migration of microfeed. Anybody ...
0
votes
0answers
22 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
20 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
27 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
15 views

The profile synchronization status stuck stopping?

How to stop this stopping immediately in my SharePoint user profile, using powershell.
0
votes
1answer
22 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
33 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
10 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
54 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
16 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
28 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
24 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
66 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
35 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
67 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
40 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
48 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
29 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
54 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
37 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
52 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
41 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
24 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
18 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
49 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
61 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
25 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
35 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
12 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
17 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
22 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
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 ...