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)

1
vote
0answers
28 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
78 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
38 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
33 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
67 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
46 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
18 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
27 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
69 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
149 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
117 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
45 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
147 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
23 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
49 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
63 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
106 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
66 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
68 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
143 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
141 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 ---- -- ----- ------------------- ...
1
vote
1answer
525 views

Retrieve all fields from a list using Powershell (CSOM)

I need to write a script which I can launch (for example) at specific time and which will make a save of all lists on the SharePoint. For now, the script is able to connect to SharePoint and retrieve ...
0
votes
1answer
119 views

How to export list to csv using PowerShell

I have a Powershell script that outputs data from all libraries in a site shown below: Add-PSSnapin Microsoft.sharepoint.powershell $url = "http://contoso.com" $site = New-Object ...
1
vote
1answer
72 views

Possible value for server role

I am trying to see what are possible values for Server Role property in SharePoint Farm Below is the command I am using to see all servers and their roles. Get-SPServer | Select Role What I am ...
0
votes
1answer
173 views

Powershell to upload files to SharePoint Online

I am trying to upload files to SharePoint Online using Powershell (created with help from online blogs) and I am somewhat successful too. The script uploads files and folders from local drive to SPO. ...
1
vote
1answer
42 views

Emtpy list with PowerShell

I am searching for a powershell script to empty a SharePoint list, can someone give me that? Or maybe there is an option in SharePoint / administration to empty a list with a click?
0
votes
3answers
43 views

Edit a list item in PowerPhell

foreach($list in $lists){ if ($list.title -eq 'PerformanceDevelopment'){ foreach($item in $list.items){ if ($item.title -like $Employee+'*'){ $OldLineManager = $item["Manager Name"] $item["Manager ...
5
votes
1answer
157 views

Powershell Delete only 1 item in Document Library

I have 300 files in my document library and I need to delete one of them, I cant use the delete out of box option and I though I can use PowerShell to force it. Can anyone have any idea about this: ...
0
votes
1answer
66 views

How to output all previous versions of a file using Powershell

I have a script that displays multiple columns and outputs to CSV file below: Add-PSSnapin Microsoft.sharepoint.powershell $url = "http://contoso.com" $site = New-Object ...
0
votes
3answers
93 views

unable to remove deleted site collection “Unable to find specified file”

I am facing a strange problem on my SharePoint Enterprise 2013. I have previously deleted some site collections from central administration. Now I want to remove them permanently. So I run the ...
1
vote
1answer
41 views

Copy entire list using Powershell

I need to export an entire list as a .csv file. I actually have this code which works great but I need to write each column I want to export: $listTitle = "Example" $list = ...
0
votes
1answer
52 views

UserProfile GetChanges method no longer returns any changes

I executed the PowerShell script below 2 days ago and it returned 3 results. When I run the script today it does not return any results. The script returns all changes made to the user's profile. Why ...
0
votes
1answer
38 views

Powershell script to copy subscriptions over

Wondering if there is a Powershell script to copy all subscriptions over from one list to another list. I've a situation where user re-created a list to under a subsite and would like to copy all old ...
0
votes
0answers
36 views

bulk update sharepoint online user profile from xml source using powershell

We have a SharePoint Online Tenant and want to update specific fields of all user profiles using PowerShell. We have the data in a XML file and all the fields that we need to update are Multi-value ...
0
votes
2answers
41 views

Update SPList.ImageUrl after migration from SP2007 to SP2013

After migration from 2007>2010>2013 for all lists ImageUrl property is still on 2007. If someone have powershell script which updates all lists on site SPList.ImageUrl property from SP2007 version to ...
0
votes
1answer
46 views

Rename Site collection after re creating it once after deletion :SP2010

Old Site Collection name = ABC delete the site collection Create a new Site COllection with same name = ABC but on UI the title of site collection shows ABC-2 I have tried updating the title ...
0
votes
0answers
24 views

How to send email to Owners Group using Powershell

I wanted to know how I can email, for example, a csv file to users who belong in the Owners group using PowerShell? I have found an example here and the code below is the sample provided: ...
0
votes
1answer
18 views

How to pull library location of files using PowerShell

I have a script that outputs checked out files in csv format below: Add-PSSnapin microsoft.sharepoint.powershell $url = "http://contoso.com/sites/Depts3/KDS" $site = New-Object ...
0
votes
0answers
36 views

How to use Site URL property available in Visual Studio during WSP deployment using PowerShell?

I have an application page based solution in Visual Studio 2013. The Web application has a site collection, under which we are doing the deployments during development from Visual studio by setting ...
0
votes
0answers
50 views

Yammer Configuration: Activate Yammer with PowerShell

I would like to activate Yammer with a PowerShell script. This is done in the UI on the http://{sharepointadmin}/_admin/yammerconfiguration.aspx page: As an alternative to using SharePoint ...