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)

2
votes
2answers
473 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 ...
0
votes
1answer
242 views

filling a column when empty with values powershell

I have recently added a new metadata field to my base content type called ‘mark’. This is a managed metadata column which should default to the term ‘off’. As I have added this to the base content ...
1
vote
0answers
198 views

ExportWeb from sites.asmx still pending (1)

I'm doing an ExportWeb method through powershell from sites.asmx in SharePoint 2013, and the exportweb job is still pending, even after days. $uri = "http://sharepoint/_vti_bin/sites.asmx" $service = ...
0
votes
1answer
133 views

Determining Document Library to Upload Files PowerShell Script

I have a network folder that contains 50 documents. I need to upload the files to the specified SharePoint document library based on a csv filename and document library. CSV Example: filename1 ...
1
vote
2answers
540 views

New field is not accessible via Powershell

I have a list "Orders" in SP, where I have some data. The list definition and instance were previously created in Visual Studio and then successfully deployed. Today I've opened VS again and added ...
0
votes
1answer
41 views

Site Could not be Created in Site Collection

I tried to add a site in a site collection but unfortunately it isn't working. SharePoint allows me to add a site, but when I want to check the created site, no site exists at all. The procedures I ...
1
vote
4answers
318 views

disable search / crawl by default for all new lists or library?

I'm looking for a way to disable new lists and libraries from being searchable. Ultimately, this site will be public facing and even though I can tell people to remember to disable lists and ...
5
votes
2answers
16k views

Powershell to list all sites and subsites in SharePoint Online

I know about "Get-SPWebApplication" but it's not available in Online. Anyone? Thanks,
0
votes
1answer
266 views

Verifying and changing Draft Item Security with PowerShell

Below is what I'm looking for a PowerShell script to do. Check the setting (ANY USER WHO CAN READ ITEM – IS THE CORRECT SETTING) If it is not correct, change it Send email to select group Any ...
1
vote
2answers
21k views

How do I install the 2013 SharePoint PowerShell module on my Windows 7 client computer?

I just installed SharePoint 2013 Foundation on a server. I'm confused as to how I can access the PowerShell cmdlets from my client pc. Everything I read assumes you're in front of the actual server. ...
0
votes
1answer
350 views

How do I use the object model to update quota values?

Reading this doc I'm confused by the following paragraph: If you change the values for a quota template, those changes apply only to new site collections to which you apply the template. ...
0
votes
1answer
360 views

Error while updating a Sharepoint record using Bypasslock method in Powershell

I am trying to update a Sharepoint 2010 record using ByPassLock method in Powershell. I am using below code [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") | Out-Null [...
1
vote
2answers
145 views

Propagate Lists through variation sites by PowerShell

Is it possible to propagate a list to a variation site by powershell?
3
votes
3answers
2k views

How to get the active farm-scoped features in PowerShell?

If i want to get the Features that are activated on a WebApplication, i can use the SPWebApplication.Features property, which will return a SPFeatureCollection with the Features activated for the ...
2
votes
3answers
2k views

How can I create a new RoleDefinition in powershell

I need to create a new RoleDefinition and apply it to a group. Is that possible? How can I do that?
1
vote
2answers
5k 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
557 views

Add Link TopNavigationBar to a publishing site by powershell

I have a site collection with some sites (Publishing theme). I need to add some links to the top navigation bar and the quick launch by Powershell. $web = Get-SPWeb "http://myurl" $newLink = New-...
0
votes
1answer
551 views

SharePoint Content Databases with PowerShell

Is there a way to get the current maximun number of site collections from a current database, and then be able to increase this by 1. I want to do this specifically in PowerShell for SharePoint. ...
4
votes
2answers
1k views

Using Powershell to create wiki pages from an xml file

I'm trying to batch create wiki pages from an xml file, and have found a few posts that I'm trying to combine, such as this one. There's some problem with my code (Sharepoint isn't creating the pages),...
1
vote
1answer
198 views

Delete multiple site collections with power shell

I was looking for the syntax to delete multiple SC's with PS. The SC's are spread out over several different URL paths. I could use SharePoint manager 2010 but as PS is the supported method I'd prefer ...
1
vote
2answers
6k views

how to get SharePoint lookup field value using powershell

Can anyone show me how can I get the lookup field value? I used this line of code but it is throwing an error: #$Lookup = new-object Microsoft.SharePoint.SPFieldLookupValue($listItem["...
0
votes
2answers
393 views

Powershell to selectively copy attachments to a local drive

I am still learning Powershell and am having problems modifying to script below. I found this at http://bhatiaashish.blogspot.com/2012/08/powershell-script-to-download.html. This script works but I ...
0
votes
2answers
1k views

Unattended downloading of files from Sharepoint Online

I want all users on my SharePoint Online 2013 (plan 2) to be able to 'drop' files in a SharePoint folder, after which an unattended process downloads these files onto a local folder on a Windows ...
1
vote
0answers
162 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 ...
3
votes
1answer
661 views

PassPhrase is not valid in SharePoint 2013. Powershell not connecting to SharePoint farm to reset passphrase

I have removed Project server instance from my SharePoint 2013 farm. After that when I tried to run the configuration wizard, I found that the old passphrase is not valid. When I open powershell, the ...
1
vote
1answer
114 views

SP2013 remove server cacheHostInfo null and no access to old server

I had a server, SHPprod, but it did not match the naming scheme that I am using, SHPprodWFE. I removed it from the farm using the config wizard. Renamed the computer to be SHPprodWFE and added it back ...
2
votes
1answer
117 views

Need to recursively parse SharePoint 2010 sites for JavaScript tags and output URL path to a file

I have a site with approx. 300+ sites. The vast majority use JS and reference a jquery file that are either in the parent folder as the aspx file or site, or referencing a master jquery file in a ...
1
vote
2answers
431 views

Unused MySites in SP2013 - how to identify them?

I want to regularly remove MySites which have been created and remain unused (i.e. never accessed). Ideally the criteria for this would be: Created more than 7 days ago (Which I can get using ...
1
vote
1answer
865 views

Change icon in sharepoint site programmatically

I want to change the icon image for my Webapplication , not the logo but the icon in the URl . I used this script powerShell to change the logo : #Get the Site $web = Get-SPWeb "http://mig-sp-88:1060/...
0
votes
0answers
141 views

How can I delete library items using an array? (Plus a bonus question.)

I'm writing a script for my SharePoint 2010 environment that will delete all items from a specified library that are more than 14 days old. The way I'm doing this is by using 'foreach' to run through ...
5
votes
2answers
771 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 ...
0
votes
1answer
114 views

how to limit size content database

I want to limit the size of the content database to add another content database to my web application. Does anyone know how to do this with powershell or sql?
0
votes
0answers
103 views

powershell script works but not showing list data(scheduled task)

I have a powershell script scheduled to get data from list item and send it as email. I do get the email but the content is empty its not picking up list data. When i run it from powershell command ...
0
votes
1answer
81 views

Site Collection second-level

I am using SharePoint 2013, is it possible to create a Second-level site collection by Powershell? I mean, a Site Collection (not substite) child of another Site-Collection.
1
vote
1answer
610 views

Script to update Sharepoint Online content type

I have a content type "TestContentType" with three columns: Document Type Category Sub-category This content type is used on 18 document libraries, in 3 site collections. The Category column ...
1
vote
1answer
143 views

Can I use PowerShell scripts in SharePoint 2013 somewhere in the Web GUI or from a client PC?

Is it possible to run PowerShell scripts in SharePoint 2013 from the Web GUI or from a Client PC? Example: I'd like to copy custom views from a document library in one site to another one in the same ...
1
vote
1answer
710 views

SnapIn won't load, the Cmdlets now target the wrong Powershell Version, how'd that happen?

I've inherited a Server-2008 SharePoint-2010 Dev environment, the SharePoint Snapin fails to load; warning ... Add-PSSnapin : Incorrect Windows PowerShell version 3.0. Windows PowerShell version 2.0 ...
3
votes
2answers
4k views

List item with specific ID value

I want to copy a list items one by one to another list using PowerShell. Some items in source list are misssing. I don't want to create and delete empty items for missing ID values in source list. I ...
0
votes
0answers
563 views

adding a (href) hyperlink to html(convertTo-HTML) via powershell

I-m trying to add a href hyperlink to my HTML as below as I-m sending it as an email. But it's not working for me. Has anyone experienced this? How can I get this rolling? $message.Body = $...
1
vote
2answers
996 views

How to retrieve the OOB Xml field with powershell?

In Sharepoint there are many OOB list with a field "Xml". For example, by running this: $url = http://sharepoint.domain.com $site = Get-SPSite $url $site.rootweb.lists["User Information List"]....
0
votes
1answer
1k views

Powershell filter on a value

I am trying to setup a script to copy documents from a document library to a local file share. I have found a handful of ways to do this, but I have one caveat. I need script to look at a value in a ...
0
votes
1answer
31 views

Outputting full name in query powershell

I am querying a sharepoint site. At the moment its returning Our future comm... how would I be able to make it print out the full name Here is my code Get-SPSite mysite | Select -ExpandProperty Lists ...
0
votes
1answer
1k views

SharePoint Powershell Number and User columns

I need to create two list fields by powershell. One that accept only Integer (type Number with no decimal) and the other User (multiple selection). I can create Number field and Single User field ...
1
vote
1answer
862 views

How to give permission to specific users to list item level using PowerShell

I have tried using the below to add specific user to items but it keep getting error. For now I'm just trying to add permission to specific item but I would be changing the code to look at a column of ...
0
votes
2answers
6k views

Powershell commands to check permission for a specific user on all “sharepoint online 2013” site collections?

need to check permissions for a specific user on SharePoint Online 2013 thoughout the sites need powershell commands to achieve this
0
votes
1answer
286 views

Can't delete SPWeb from PowerShell or C# Object Model

I have a very strange situation - two sub webs were created through some code but it errored out part way through the process and now I am left two webs I can't seem to delete. The strange part is ...
0
votes
1answer
365 views

Uncommitted changes on SPWeb object

In my simple Powershell script, I keep getting an error "Exception calling "ResetRoleInheritance" : There are uncommitted changes on the SPWEb Object, call SPWeb.Update() to commit the cahnges before ...
0
votes
2answers
3k views

Create Lookup Field Powershell

I am using SharePoint 2013, I need to create a lookup field through PowerShell. I tried this code but is not working: $SiteUrl = "http://mySite" $WebObj = Get-SPWeb -identity $SiteUrl $...
0
votes
2answers
281 views

Custom checklist with radio buttons in Sharepoint possible?

I have a need to create either a checklist, questionnaire or some sort of custom list in Sharepoint to track Group Ownership in Active Directory. Currently, this form is a paper form that is printed ...
2
votes
2answers
3k views

Populate a list of links through powershell

I have my webapp, my webs and a list created. My point is that I would like to populate my lists with values at the time of my deployment, which is done thanks to a powershell script. So I would like ...