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

2
votes
0answers
35 views

Can I use Set-SPOUser to set an O365 security group as a secondary site collection administrator?

Is there a way to use Set-SPOUser to add a security group I created in Office 365 as a secondary site collection administrator? I have the security group's Login Name which begins with "s-1-5-21-..." ...
2
votes
0answers
82 views

Usage and Health Data Collection using SQL Authentication

I'm having an issue with trying to set my Usage and Health Data Collection to use SQL Authentication. I have tried setting my database credentials to SQL Authentication using both Powershell and ...
2
votes
0answers
291 views

How to delete a Task that is associated to an item and workflow that have been deleted

I have a task that is associated with an item (in another list) that has a running workflow. However, the item was deleted over a year ago and therefore it is no longer recoverable from the recycle ...
2
votes
0answers
145 views

PowerShell script to update ContentType of existing records in Document Library

we are using Document Library in SharePoint 2010 environment. there are about 200 document present in the document library which have been identified (based on location - England and employee type - ...
2
votes
0answers
53 views

update GeoCodes latitude and longitude in sharepoint 2013 with powershell

I am trying to update the latitude/longitude via powershell but can't get it to work. I am basically hitting the bing service with an address retrieving the longitude/latitude then trying to assign ...
2
votes
0answers
110 views

Copying Modified Date in Window Explorer from Powershell

I have the PowerShell script which download Documents from SharePoint Document Library.i want to copy the modified date of documents including folders to the window explorer. Where I am going wrong ...
2
votes
0answers
88 views

Download Root level folders starting with A to J

I have the following script to download documents from document library. Is there any way I can download folders starting with A to J from root level which should include all of their sub folders from ...
2
votes
0answers
69 views

Powershell list.workflowassociation not working right

I encountered recently a weird problem. I'm using a powershell script to : - save all workflows autostart properties (from all lists/webs/sites) - make modifications to items in the lists - restore ...
2
votes
0answers
44 views

Managed Metadata import/export in subsites

I am attempting to export/import the managed data in a library of a subsite on my intranet. When I attempt to use the taxonomy tools that are up on Codeplex, or when I use code such as this, I am ...
2
votes
0answers
44 views

How to speed up saving a list as template

I want to save a library as a template. For this I use the following PowerShell code $id = [Guid]::NewGuid() $templateName = [String]::Format("{0}-{1}",$list.Title,$id.ToString()); ...
2
votes
0answers
62 views

Not able to connect to service with windows account in mix mode authentication

I am trying to connect web service in mix mode/claim based environment with powershell, Below is the sample code for your reference, $WebSrverUrl = "sharepoint:2013/_vti_bin/authentication.asmx" ...
2
votes
0answers
61 views

Is it possible to read the contents of deleted folders in the RecyclingBin?

I've been playing around with scripts that read deleted files from the recycling bin such as the one below but I can't figure out how to read the files within a deleted folder without restoring it ...
2
votes
0answers
87 views

How to assign the metadata for folders and sub folders

I am migrating the SharedFolders and files from Windows to SharePoint Library. So here i am able to add metadata for only files, but not for folders. Here the below is the code i tried for adding ...
2
votes
0answers
253 views

Configure welcome pages on sites and subsites with powershell

I have to configure the welcome page for all my sites, and sub-sites. Is it possible to add content in the welcome page ? I mean : a little text, a calendar, and sections on the page's right side ...
2
votes
0answers
200 views

Update Custom Forms with Powershell

I'm trying to update custom forms of SharePoint lists in a large amount of SharePoint 2010 subsites with powershell. I'm not quite sure what the correct approach is. The form itself can be found as ...
2
votes
0answers
697 views

Move-SPUser : pixels

Migrating users from one domain to another, I get this error on a couple of users. The migration still seems to occur. Move-SPUser : pixels At D:\UserMigration\MigrateUsers.ps1:10 char:28 + ...
2
votes
0answers
501 views

Getting Null returned from taxonomy field in PowerShell?

I am trying to update a metadata field when adding an item to document library. All the other columns are updating. The error is on this line and basically $taxfield is returning null. $taxField = ...
1
vote
0answers
23 views

Can we disable /Hide Skydrive from SharePoint Farm On premises

Is there a way that we can use power shell (Not custom delegate control) to hide/disable the Suitelinks from the complete SharePoint farm .We achieved that in one site collection using CSS but as we ...
1
vote
0answers
22 views

Get master page object in Powershell / Update master page containts using Powershell

I have to create one Powershell script. This will iterate though all the sites/subsites in one site collection and access master page used by the site. Once i get it, i have to update that master page ...
1
vote
0answers
34 views

Create Result Source Using Powershell

I want to set Type="People Search Results" and in Credential Information want to set default authentication using power shell. I have used below code to create result source but I am not able to set ...
1
vote
0answers
18 views

How to compare field changes using powershell to iterate thru the version history

I need to be able to to notify users daily whenever an update to a list item has changed, and give them a list of fields that have been changed. I am using powershell to do this, and send out an ...
1
vote
0answers
75 views

Can't update SPField through PowerShell - object has been updated by another user since it was last fetched

I get the following error when trying to update the choices for a Site Column: "The object has been updated by another user since it was last fetched." I get this error if I try to add a new choice ...
1
vote
0answers
47 views

Unable to remove app from SharePoint 2013 site

I've seen this problem in several places in our dev and test implementation of SharePoint 2013. Especially in sites where there has been a lot of testing where people uninstall and install apps. The ...
1
vote
0answers
13 views

How to rename a list-associated SPD2013 WF?

I have 20 sites that all have the same SPD2013 WF - it is a WF that executes on a specific list when an item is added or changed. We goofed on the naming of the WF and would like to rename the WF. Is ...
1
vote
0answers
80 views

New-SPSite in SP2013 creating sites with 2010 user interface

I am creating a Site Collection with this powershell command $createdSite = New-SPSite -Url $SiteUrl -Name "Site Name" -Template "CMSPUBLISHING#0" -Language 1033 -OwnerAlias "spadmin" It used to work ...
1
vote
0answers
56 views

Propagate Lists through variation sites by PowerShell

Is it possible to propagate a list to a variation site by powershell?
1
vote
0answers
50 views

Can I get the value for community site's What's Happening web part with Powershell?

I need to generate some statistic reports for our SP2013 community site. Some of figures I need are "no. of discussion", "no. of replied" and "no. of members" which are already listed in the "What's ...
1
vote
0answers
144 views

SharePoint Online CSOM create managed properties

I'm trying to find a way to deploy search managed properties via script to my Office 365 SharePoint tenant. Previously, for on-prem SharePoint I've achieved this using PowerShell - fairly straight ...
1
vote
0answers
27 views

searching all documents in sharepoint

If I want to search all through my sharepoint site for all documents any place in the site. Would it just be Get-SPSite mysite | Select -ExpandProperty allwebs | Select -ExpandProperty Lists | ...
1
vote
0answers
58 views

Powershell the local farm is not accessible - SPECIAL NUANCE

Wonder if you could shed some light on a variant of this situation I'm experiencing. Typical Error when running Sharepoint Management Shell "the local farm is not accessible. CmdLets...." Here's the ...
1
vote
0answers
177 views

DTD Error with Connect-SPOService

Just recently I cannot connect to my tenant admin with PowerShell. When I call Connect-SPOService -Url https://<tenant>-admin.sharepoint.com I get the following error: Connect-SPOService ...
1
vote
0answers
86 views

Setting group permission to each file inside folder in Document

i Have the following PowerShell Script which iterates through each file in document library folders starting with name "a" of root folder. if((Get-PSSnapin "Microsoft.SharePoint.PowerShell") -eq ...
1
vote
0answers
21 views

extract block issue preupgradecheck

I run an stsadm -o preupgradecheck in ps1 file function test (){ try{ $cmd=stsadm -o preupgradecheck } catch{ Write-host -ForegroundColor Red ($_.Exception.Message) } } test I wander how can I ...
1
vote
0answers
97 views

Create timer job to execute powershell script?

I have created timer job and under execute method.i have added below statement to run sharepoint command. runspace.RunspaceConfiguration.AddPSSnapIn("Microsoft.SharePoint.PowerShell", out ...
1
vote
0answers
12 views

How can I upload multiple Forms into Forms Library and set some values?

I have a forms Library with over 6k Forms in it and I created a new one. As I cant move them directly because almost everything has been changed in the new form (new fields, etc) I need to create a ...
1
vote
0answers
39 views

SharePoint 2013 Central Administration vs PowerShell Scripting

Which are the admin jobs that can only be done trough PowerShell scripts and not in Central Administration?
1
vote
0answers
36 views

Rename metadata property in bulk

I have a document library with documents that are tagged with Metadata from the term store. I want to delete the term and rename all the documents with the tag 1.3 for example to 1.0. Deleting the ...
1
vote
0answers
153 views

How can I count the number of posts & comments in a SharePoint 2013 newsfeed?

I need to count the number of posts & comments in a SharePoint 2013 newsfeed webpart on a page in a site. At the moment I can't see how to do this via Site Settings -> Report or Site Settings -> ...
1
vote
0answers
571 views

SharePoint 2013 MetaNavigation Problem deleting Termsets

The following is just a test script borrowed in part from http://goo.gl/Cw1D8h "Powershell to create and reuse Managed Navigation for multiple sites in SharePoint 2013" The following script works ...
1
vote
0answers
596 views

Mass update metadata in all items (files and folders) in a document library

This is my first question here, so apologies if it is a duplicate. I'm trying to write PowerShell code to mass-update a managed metadata property, doing something like this: $query = New-Object ...
1
vote
0answers
88 views

Remove Content Type Hub URL

I used a Powershell script to add the URL for the Content Type hub, as in the picture below. Now I wish to remove this URL. Not replace it, but remove it altogether using PowerShell. Is this ...
1
vote
0answers
444 views

SharePoint 2010 - setting peoplepicker-searchadforests, unable to remove property and get <Property Exist=“No”> after setting with no -url param

Interesting behavior that I was hoping someone could help with. Trying to adjust the "peoplepicker-searchadforests" property using the stsadm command in Powershell, I ran the below command: stsadm ...
1
vote
0answers
374 views

SPSiteDataQuery for Documents using caml query

I am tring to query an entire site collection for all the documents where a certain field is equal to something. For example where LoanCategory = Insurance. I am trying to do this using an ...
1
vote
0answers
49 views

Powershell-registered Managed Accounts not showing up in Central Admin

I'm trying to set up a work laptop for SharePoint development. To get it up and running quickly, I used my corporate domain user account as the first managed account. Now, I want to use a local ...
1
vote
0answers
49 views

Problem with File.Checkin only on certain files

I have a powershell script that is copying files from a mapped drive into sharepoint and setting some meta data. All is working as expected with the exception of certain files lose most meta data when ...
1
vote
0answers
124 views

Approaches to managing PowerShell for every day menial tasks

PowerShell is a very powerful tool to handle many aspects of a SharePoint farm. On the one hand there is the set of commands typically used by the administrators of the infrastructure. These people ...
1
vote
0answers
100 views

PowerShell - Csv : foreach with conditions?

I have to import a csv file, and I want to put a condition directly in the foreach. I mean : To read the csv, i do (yes my delimiter is \ ) : $csv = Import-Csv -Delimiter \ -Path $mypath -Header ...
1
vote
0answers
54 views

create a content/configuration database using local account with powershell

so someone set up a sharepoint dev environment for me using SP2010 on Windows 2008 R2, and SQL 2008 R2, but they didn't install it as a stand alone which is what I was going after. There is no domain ...
1
vote
0answers
500 views

New-SPSite gives ERROR: Failed to OpenThreadToken, LastError=1008 in Timer job

I have a timer job that is running some powershell. The script creates a content database and then attempts to create a site collection. If run from powershell prompt the script works fine. If I ...
1
vote
0answers
225 views

How do you Import a list item from a .cmp file using powershell?

I have implemented the code located at this link to export and import a list to a cmp file using powershell and the SPDeployment functions. While trying to better understand this code I came to the ...