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

0
votes
1answer
29 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 ...
0
votes
3answers
50 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 ...
2
votes
2answers
966 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
0answers
29 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
489 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
53 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
0answers
38 views

Url column fill with powershell how to disable link on a item

I have a list with custom columns. One column type is URL. I create an item like that : $new = $list.Items.Add() $new["Client"] = "http://google.fr/, $($i.client)" Is that possible to disable the ...
0
votes
1answer
64 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 ...
0
votes
0answers
34 views

Aspx page that create filtered view based on argument

I use Sharepoint 2013. I have two lists generated by PS everyday. List A Client Col2 Col3 1 aaa bbb 2 ccc ddd And List B : Client Col1 Col2 1 Info1 Info11 2 ...
0
votes
0answers
17 views

quick edit view with powershell?

I have to craete more than 75 quick edit views in different site collections, I cant create a quick edit view by powershell? someone have an idea? thanks
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
3answers
98 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
284 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?
0
votes
1answer
1k 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
170 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 = ...
0
votes
1answer
53 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. ...
0
votes
0answers
6 views

Get-SPManagedAccount : No matching accounts were found [duplicate]

is it necessary to put Get-SPManagedAccount in powershell while creating New Web Application in classic mode in SharePoint 2013? .what are the effects of creating new Managed account?cant we just use ...
0
votes
0answers
25 views

powershell program to upload multiple files with version control at the file level

I have a network folder which contains multiple files refreshed daily.I then run a power shell script link which uploads all the files . I have scheduled it to run once daily. I have version control ...
2
votes
2answers
307 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 ...
1
vote
1answer
52 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 ...
0
votes
2answers
1k 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 ...
0
votes
2answers
115 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
0answers
46 views

New-SPEnterpriseSearchQueryScopeRule required URL parameter

I'm currently exporting Search scopes from one server and importing them to another using PowerShell. The thing that has me bewildered is what -URL parameter is used for in the ...
0
votes
2answers
188 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
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 ...
3
votes
1answer
83 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 ...
0
votes
1answer
26 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
58 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
58 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
231 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 ...
0
votes
0answers
52 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 ...
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 ...
0
votes
1answer
42 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
59 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
32 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
102 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 ...
0
votes
1answer
48 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
83 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 ...
0
votes
0answers
34 views

How do I move files into Document Sets that are in the same library using either powershell or workflow.

I have a requirement that states that I need to move files into Document Sets where the Document Set is equal to the value of a column named DS. The files and the document sets are in the same ...
0
votes
0answers
27 views

Trying to link Community site member ID with userlogin with powershell

I have a site collection created with default Community Site template. I need to generate a user report with powershell. The user's loginname, displayname, NoOfReplies, NoOfBestReplies, etc should be ...
3
votes
2answers
573 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
168 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
150 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 ...
0
votes
1answer
96 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
23 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
0answers
16 views

Authenticate within a Sharepoint Library by Folder Name?

I have a Sharepoint Library, which I have a Powershell script dropping files into for processing. The Powershell script reaches out to Active Directory, and returns Group Membership information. The ...
0
votes
1answer
159 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
75 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
1k 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
104 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 ...