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)

0
votes
0answers
25 views

Script Output Displays Inconsistent Time for Modified Date Column Powershell

I have a script that outputs to CSV all items and all files from a site shown below. This script also displays current and previous versions of a file: Add-PSSnapin Microsoft.Sharepoint.Powershell ...
0
votes
1answer
47 views

Get-SPServer shows that all servers in the farm except itself need to be upgraded. Is there a problem?

This morning I was reviewing the SharePoint Health Analyzer alerts and came across an error that one of my non content databases (Search) was "in compatibility range and upgrade is recommended." I ...
1
vote
0answers
17 views

Revert Index Location to Default

In SP2013, if you use a method such as this one to change the location of your search index, is there an easy way to revert it to the default location? Or do you have to do the whole process again and ...
1
vote
0answers
18 views

How to return only one user and date for Created By and Created Date column using PowerShell

I have a script that outputs to CSV all items and files from Libraries and Lists in a Site shown below: Add-PSSnapin microsoft.sharepoint.powershell $excludeLists = @("Master Page Gallery", ...
1
vote
1answer
48 views

How to hide user properties on my site?

I am using SharePoint 2013 on-prem. In the User Profile Service Application > Manage user properties, the properties can be hidden from users my site by unchecking the check boxes under "display ...
0
votes
1answer
34 views

Export-SPWeb: Unable to export some lists

I'm using the following script to export some lists: foreach($spListUrl in $deploymentXml.Configuration.Lists.ListUrl) { Export-SPWeb -Identity $pwaSiteUrl -ItemUrl $spListUrl -Path ...
0
votes
2answers
24 views

I am getting Cannot find an SPSite that contains the following…Error

I have a PowerShell script below: Add-PSSnapin Microsoft.SharePoint.PowerShell function Get-DocInventory([string]$siteUrl) { $web = Get-SPWeb "http://contoso.com/sites/Test10" ...
1
vote
2answers
53 views

powershell - get display name from person or group type field

The following code gives me the domain\username but I need to get the display name of the user. any idea? $($item["Manager_Name"]) Thanks
0
votes
0answers
19 views

Submitting files to OfficialFile.asmx using powershell

We have SharePoint 2013 on prem. I'd like to use powershell to submit files to a the content organizer on a site. Most of the examples I'm finding on the web are in C# instead of powershell. Does ...
1
vote
1answer
43 views

Set URL using powershell list add

When creating a new library using PowerShell the URL of the library is not the same its name. What parameter do I need to specify to set the target URL? $WebUrl = ...
0
votes
1answer
42 views

delete specific user from user profile db - powershell

I have some user accounts in the user profile db that I need to delete using powershell. user accounts are jsmith; bsimmons; boilers; nholmber, bburton
0
votes
0answers
104 views

Query Sharepoint Audit Log Powershell

I have written the following script to query audit logs, for getting when a particular document accessed and what was the event: cls Start-SPAssignment -Global $var = 1 Write-Progress -Activity ...
0
votes
0answers
29 views

Project Server 2013 CSOM cannot change ProjectData page size for specific EntitySet

I am trying to increase the default page sizes so that I can get 500 results instead of 200 results when showing ResourceTimephasedDataSet entries. I am having trouble setting the correct setting in ...
0
votes
1answer
16 views

Enable Health Data Collection via PowerShell (SharePoint 2010)

I'm trying to automate as much of our SharePoint builds as possible, but there is currently one part I'm getting hung up on. Right now, my event log is filled with error 6398 and error 5586, which ...
0
votes
1answer
82 views

Please help Import-SPWeb Error

I am getting error when importing a publishing site. from production to my development server. following is the error. Import-SPWeb : Requested value 'PublishingPages' was not found. At line:1 ...
0
votes
0answers
20 views

How to speed up feature re-activation?

Upgrading my solution in production takes forever and I'm looking for ways to improve the typical feature reactivation upgrade scenario. What actually goes on in the features vary greatly and I'm ...
0
votes
0answers
72 views

How to programmatically cancel a workflow with a specific history using powershell or SharePoint.Client api

The context is as follow: We are using SP 2010 and I have a large number of workflows associated to list items that are at "Running" state. Some are waiting for an event to happen (normal behavior) ...
1
vote
0answers
35 views

How to Display Modified Time and Modified By Fields Correctly with Powershell

I have a script that outputs to CSV all items/files from all Lists and Libraries. In addition, it displays the current and previous versions of an item/file. This also displays which user modified the ...
0
votes
0answers
13 views

Webtemplate PowerShell Sharepoint online

How to upload my own template.wsp on default WebTemplate, where is $ST#0, $BLOG#, etc.. ? Is it that possible?
1
vote
0answers
29 views

Office Web Apps Server - XML Page doesn't work - The Webpage cannot be found

I have an issue with Office Web Apps Farm. I created an SharePoint environment (DC+SQL Server, SharePoint Server and Office Web Apps Server). All went well until i had to configure OWA Server. OWA ...
0
votes
2answers
82 views

Display Correct Modified By and Modified times and dates using Powershell

I have a script that outputs to CSV all items from all Lists and all files from all Libraries below: function Get-DocInventory([string]$siteUrl) { #$site = New-Object Microsoft.SharePoint.SPSite ...
0
votes
0answers
40 views

Sharepoint Online, PowerShell, Site Collection, error 404

I have problem with creating Site Collection from PowerShell. I am creating new SPOSite. It's working and exists. Connect on my new site. I upload .wsp (good template) from my disk on PC and still ...
0
votes
1answer
37 views

How to get a list of all pages that have “hide physical urls from search” checked

I have to check all my pages if "hide physical urls from search" is checked. How can I get a list of all these pages that have this option activated? Can this be done with powershell?
0
votes
0answers
36 views

Sharepoint Global navigation updating the link under navigation node type

Is there any way where we can update links under Global navigation in sharepoint 2013. I have also pinned the Termset to some of the Termset Groups. Now under pinned termset, When i updated the URL ...
0
votes
0answers
70 views

Delete old Backup Files in SharePoint

I want to use PowerShell script which delete old Backup Files in SharePoint2010 Backup Folder. I've found this script: # Location of spbrtoc.xml $spbrtoc = "\\XXX\spbrtoc.xml" # Days of backup that ...
2
votes
2answers
47 views

Error when creating custom permissions using powershell

I'm trying to create custom permissions in my Sharepoint site via Powershell using the following script: $spSite = Get-SPSite $url $spWeb = $spSite | Get-SPWeb foreach($option in ...
0
votes
0answers
22 views

SharePoint List with associated Library attachments - Extract to Excel with PowerShell

I'm attempting a filtered extract to Excel from a list with columns that allow for embedded attachments which are stored in an associated Library folder [on the same site]. I'm trying to get the ...
0
votes
1answer
28 views

Get info shown in user.aspx using powershell

I'm looking for a way to get a list of all my site users with powershell. I'd like to get the info shown in user.aspx and then query the SharePoint groups and AD group recursively.
0
votes
1answer
73 views

Format Created Date and Modified Date Columns to Display Normal Time

I have a PowerShell script that outputs to CSV all items and files from all Lists and Libraries below: function Get-DocInventory([string]$siteUrl) { $site = New-Object Microsoft.SharePoint.SPSite ...
0
votes
1answer
14 views

List out of custom web parts deployed in all site pages using power shell

Need some help to list out all custom web parts deployed in all sites pages in an site collection using power shell. Any help appreciated. am able to list out all web parts in all site pages Custom ...
0
votes
1answer
35 views

Get SharePoint Web App Url programatilly from WindowsFormTool

I developing a simple Windows Forms Application that using a PowerShell script to add WSP solutions to multiple SharePoint front ends automatically. I am not a SharePoint developer but it's required ...
1
vote
3answers
151 views

Powershell to run 2 workflows

I have a Powershell that runs 2 workflows. The first workflow is on every list item and the second simply sends an email to let people know that the Powershell ran successfully. I'm getting errors ...
0
votes
0answers
33 views

function to export mappings and crawled / managed properties

I’m running this script I found on sharepointspace.com. http://andersrask.sharepointspace.com/Lists/Posts/Post.aspx?ID=36 Why am I receiving the following error below? .\FuncRunExportSPESMM.ps1 ...
2
votes
1answer
121 views

Remove all versions from a single site/document library in SharePoint 2007

We are preparing to migrate content from a SharePoint 2007 environment to a SharePoint 2013 farm, by way of a third party tool. As part of the pre migration cleanup, I've been looking at document ...
1
vote
1answer
20 views

Is there a way to tell when a site is created and ready to use when creating it using powershell?

I'm creating a number of sites using a powershell script. Now, when each of the sites is finished, I want to activate features on it. My problem is that when I do this, it takes some time before the ...
1
vote
1answer
46 views

CSOM: Creating a ClientContext with an invalid Site Collection URL “rolls up” to Root Site Collection

Over the past few days, I've been working on an issue where I was using CSOM to inspect a particular site collection for some expected values. However, instead of finding those expected values, I was ...
0
votes
2answers
18 views

Import Document from SQL to SharePoint 2010

Is there any out of the box way by which I can import the documents from Sql database to SharePoint 2010 document libraries ? I googled for this but I got only programmatic approaches which states to ...
0
votes
1answer
171 views

Read sharepoint field list using CSOM in powershell

I have created 2 column in sharepoint list. One field called owner is person or group type column and the other one is website template using choice type column. The question how to read the value ...
0
votes
0answers
29 views

Set Doc Set Thumbnail Url?

I would like to change the thumbnail of a Document Set and I'm having trouble figuring out if this is possible. Currently the code below tells me that field is read only... $weburl = "http://web" ...
0
votes
1answer
24 views

Exporting Managed Properties in SharePoint 2010 via a PowerShell script

I’m running this script I found on technet. Why am I receiving the following error below? Export Managed/Crawled Properties from Enterprise Search ...
0
votes
0answers
51 views

PowerShell backup script leaves open files and fails the next day: spbrtoc.xml is being used by another process

TL;DR: My backup script is failing because the last time it ran it left Open Files in use by open Sessions that didn't close. If I close the open Sessions before running the script (via Task ...
1
vote
1answer
65 views

List Item Name not populating - PowerShell

I have a PowerShell script that outputs to a CSV file all items from all Lists and all files from all Document Libraries in a Site shown below: function Get-DocInventory([string]$siteUrl) { $web = ...
1
vote
0answers
30 views

Connect to SharePoint subdirectory and get all files

I'm currently trying to write a little PowerShell script that allows me to get all the files from a certain subdirectory in SharePoint. Afterwards I'll upload them elsewhere, but so far I haven't been ...
0
votes
1answer
111 views

Getting “full name” of the User with Powershell CSOM

I've got the following code: #title :save-site.ps1 #description :Will save as .csv all lists + all fields for each list found on a Sharepoint site #author :GordonAmable #date ...
1
vote
0answers
32 views

Running SP commands remotely using Powershell_ISE

I have written the following script to execute powershell commands remotely on another server: cls $SPFarmAccountName = "username"; $FarmAccountPassword = "password"; ...
0
votes
1answer
72 views

Same Content Type Display Name, Different Internal name

I know that you can have internal names and display names for columns but can you also do that for Content Types? For example, we have the following with our current powershell script: ...
0
votes
2answers
69 views

Retreive all Items from All Lists from a site - Powershell

I have a PowerShell script that outputs all documents from all Libraries within a Site (web) scope to a CSV file listed below: function Get-DocInventory([string]$siteUrl) { $site = New-Object ...
2
votes
3answers
162 views

Powershell - How to add multiple site collection admins as secondary?

How to add multiple site collection admins for a given site for secondary? I tried below but it replaces existing secondary. Any idea? Set-SPSite –Identity $siteCollectionUrl –SecondaryOwnerAlias ...
0
votes
1answer
150 views

ERROR: Exception calling “SaveAs” with “2” argument(s): “SaveAs method of Workbook class failed”

I am using SharePoint 2010 and I get following error when I try to save an Excel file via Power Shell: ERROR: Exception calling "SaveAs" with "2" argument(s): "SaveAs method of Workbook class failed" ...
0
votes
0answers
26 views

What does “QueryExpanded” stand for?

I have some search scopes in my SP 2010 farm (not fast): Name ID Count LastCompilationTime CompilationState ---- -- ----- ------------------- ...