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
50 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
24 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
284 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
104 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
44 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
169 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
47 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
78 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
25 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
55 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
56 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
205 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
46 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
138 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
39 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
57 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
30 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
94 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
77 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
32 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
25 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
507 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
155 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
135 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
95 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
15 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
149 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
71 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
102 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
81 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
262 views

Create Lookup Field Powershell

I am using SharePoint 2013, I need to create a lookup field throw PowerShell. I tried this code but is not working: $SiteUrl = "http://mySite" $WebObj = Get-SPWeb -identity $SiteUrl $myCustomList = ...
0
votes
2answers
104 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 ...
1
vote
2answers
403 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 ...
0
votes
0answers
26 views

searching all documents with a content type

How can I search all documents with a particular content type of 'EC Docs' and then query a site column in that content type where column -eq 'Res' Get-SPSite mysite | select -ExpandProperty AllWebs ...
2
votes
1answer
211 views

loop splistitem in folder in powershell

I'm trying to loop all splistitem in a folder of a library. I can get my library and have folder but i'm not able to get the items inside the folder. When i display the listitem for folder, i've the ...
1
vote
1answer
623 views

Find a farm's database server and instance in PowerShell

Through PowerShell, how can I find the SQL server name AND instance where my databases are stored? Assuming I am not using an alias and can't check cliconfg. In servers in farm, I can see the server ...
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 | ...
3
votes
1answer
320 views

SharePoint feature deployment and scope via PowerShell

We use SP2013 and PowerShell to deploy wsps. When installing the wsp via PowerShell: CASE 1: Add-SPSolution -LiteralPath $path install-spsolution -Identity $solution -GACDeployment Above ...
0
votes
0answers
28 views

Event Handling in powershell

I am wondering why the event in this sample code cannot be started. $import = New-Object Microsoft.SharePoint.Deployment.SPImport($importSettings) $CreatedAction = { $ro = ...
0
votes
0answers
15 views

Selective migration with powershell

I do like to migrate several sites to another site into a special sub-site and Folder. I know that by using Microsoft.SharePoint.Deployment.SPExportSettings and Import it is feasible but I don't know ...
0
votes
1answer
45 views

query xml powershell sharepoint

Get-SPSite mysite | Select -ExpandProperty AllWebs | Select -ExpandProperty Lists | Select -ExpandProperty Items | Out-File outputpm.txt I have this code, which produces the items, one of the items ...
0
votes
0answers
47 views

SharePoint 2010 PowerShell Delete folders in Document Library - See SharePoint/event Log?

I wonder if its possible to see a log file of events (deleted folders in big document library) when actions are invoked by PowerShell? The PowerShell-script it self don't push anything to a log-file ...
1
vote
2answers
2k views

powershell script to move/copy files from network path to SharePoint sub folder

if((Get-PSSnapin "Microsoft.SharePoint.PowerShell") -eq $null) { Add-PSSnapin Microsoft.SharePoint.PowerShell } $spWeb=Get-SPWeb -identity ...
1
vote
0answers
57 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 ...