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

Exclude users who's names contain

Trying to automate my O365 licensing and have had some sucess but am not sure how i can accomplish the following... I have users who i do not wish to license and they all share the value "svc" in ...
0
votes
1answer
11 views

Powershell changes are not affected in Web UI

Not the first time I noticed that sometimes PowerShell changes are not seen in UI. By example this script: # change web description example Start-SPAssignment -Global $myWeb = Get-SPWeb ...
0
votes
1answer
12 views

Get search service Application name via PowerShell

I'm trying to write some automated scripts to update the web.config, is it possible?
0
votes
0answers
9 views

Memory Leak for Update-SPSolution using Powershell Remoting and Sharepoint 2010

I use PowerShell remoting to deploy scripts ps1 for SharePoint 2010. I get Memory Leak in any cases using Update-SPSolution cmdlet. I get timeout error for deployment. And powershell.exe process in ...
2
votes
1answer
57 views

CSOM powershell to update search navigation sharepoint 2013

I am wanting to write some client side powershell to update the search navigation on global search. I have found many examples of this with server side but none using client side. anyone with any ...
0
votes
0answers
15 views

how to archive sharepoint 2013 list items using powershell

I have a list where user drop there request for new site within my farm. Request goes through workflow where i have 2 outcomes approved and rejected. If item is approved it goes though other approval ...
0
votes
1answer
22 views

Can't create search service application in powershell

I'm working on creating a SP2013 search service application based on Todd Klindt's work (http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=378). It worked down to the line ...
1
vote
2answers
43 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
23 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
26 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
19 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
12 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
19 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
18 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
55 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
23 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
22 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
67 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
33 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
22 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 ...
1
vote
0answers
13 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
29 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
24 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
16 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
36 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
56 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
17 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
33 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
72 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
36 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
73 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
44 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
55 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
34 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
57 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
38 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
54 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
43 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
30 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
20 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
54 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 ...