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
1answer
23 views

powershell to copy web part aspx page from dev server to production server

This question has been asked before, but my situation is different. Scenario : I have created a page (development server) which contains "Excel webpart" and few "Custom web parts". Now I want to ...
1
vote
0answers
6 views

how to copy only folders and not files in the folders using powershell

I have MoveFromPath which has folder A and subfolder B and a File Name X.xml. Ex: MoveFromPath\A\B\X.xml I have to copy only Folders to the MoveToPath I don't need to move X.xml. The below snippet is ...
0
votes
0answers
16 views

Changes to ShowInEditForm not applying

I hid some list level fields from the edit form of a Document Set by setting ShowInEditForm to false via the management shell. I now want to add them back to the edit form. I've changed ShowInEditForm ...
2
votes
0answers
12 views

Download RSS feed as xml file from Sharepoint Online using PowerShell

How it is possible to download xml file out of this feed (website) using PowerShell? I can authenticate with sharepoint using CSOM but do not what to do next. As service user is not administrator I ...
-2
votes
2answers
20 views

What is feature ID for Feature “Open Document in default application” SP 2010

What is feature ID of Feature "Open Document in default application" in SharePoint 2010 environment?
0
votes
3answers
20 views

Getting feature ID by its name in sharePoint 2010 Powershell

I want to get Feature ID by using its name in sharepoint 2010. I have activated the feature on my root site collection using web interface. What is the management shell command for doing this in ...
0
votes
0answers
6 views

How to fix broken url images in SharePoint pages uisng powershell?

We have done a migration from SP2007 to SP2013 but we have got some broken images URLs. I have searched around for a solution but they all are about either top menu or left menu and the publishing ...
0
votes
2answers
17 views

Moving Site Collections between Content DBs

I have a very huge Content DB with over 500+ site collections. I want to split it into many databases that I can done using Powershell. I have two questions: Whats will happens to users working ...
0
votes
1answer
13 views

Office 365 - Create a User Group and add this to TermStore Users

I want to know how to create a users group in Office 365 Admin using PowerShell. Is there a possibility to add this group to TermStore Administrators and TermSet Contributor - Through Powershell only. ...
1
vote
1answer
9 views

How to display information about active and inactive SP2007 workflows?

I'm new to the Workflow Object Model in MOSS 2007, and trying to find an example of C# code that does the same as this SP2010 PowerShell? //get all the lists $lists = $web.Lists foreach ($list in ...
0
votes
0answers
5 views

The content type “Excel based Status Indicator” is part of an application feature

I have written a small poweshell script to delete all the content types except some custom content types, But i am getting error while deleting "Excel based Status Indicator" feature. Is it possible ...
1
vote
2answers
13 views

create new qoata : Warning storage level must be an integer that is greater than or equal to 0 and less than the

I am using sp 2013. I try to create a new qoata template but still got this error: System.Management.Automation.SetValueInvocationException: Exception setting "StorageWarningLevel": "Specified ...
1
vote
1answer
19 views

Install sharepoint 2013 in Windows Server 2012 R2

I want to install sharepoint 2013 in Windows Server 2012 R2 , what is the best practice methods i will follow to install successfully using power shell or without power shell ?
0
votes
1answer
13 views

how to only add content type on a specific page

this code add my content type to all sites but i want to add my content type to a specifik site for example under http://portal i have a site created named site1 how could i rewrite my code to add ...
0
votes
1answer
29 views

Remove-SPWeb - content database

Does the command Remove-SPWeb remove the web also from the content DB? I have a site collection with 10 webs, the size is around 100GB, I wish to remove some webs and reduce the size of the content ...
1
vote
2answers
17 views

PowerShell for uploading a .stp file into the list template gallery

Would like to know how to upload a .stp file from my D drive to my list templates gallery in my site collection using PowerShell
3
votes
1answer
31 views

How to show 'Created By' user name in a survey set to not show user names in results

I have a SharePoint survey configured to "Show user names in survey results = No". I need to run a report showing the name of each person who responded to the survey. I do not need to know who ...
1
vote
1answer
13 views

Enable SP Site Collection feature in powershell for all sites

Hello I would like to run a script to enable a site collection feature on all sites within a web application. Here is my script: Add-PSSnapin -name "Microsoft.SharePoint.PowerShell" $SPWebApp = ...
0
votes
2answers
19 views

Lists/Libraries left behind after WikiPlus Uninstall

I uninstalled WikiPlus a few months ago, now while migrating to SharePoint 2013 there are libraries referencing the wiki plus templates that were removed when the solutions were retracted and deleted. ...
0
votes
0answers
22 views

SPWeb.GetFolder() with browser folder url failed

I am using powershell script and when I call SPWeb.GetFolder() with (short url) it works fine and when I used (browser url) it's not working. However it refers to the same folder e.g short url ...
0
votes
0answers
11 views

Get synonym of term using PowerShell

I want to get a term by its synonym. For example, I have unique synonyms and I want to get the term and other synonyms using this unique synonym. All using powershell. is there a way to do that?
1
vote
1answer
31 views

Migrate all Term groups from one MMS to another MMS using PowerShell

I have two managed metadata service applications in the Farm. I want to copy all the groups, term sets and terms with existing GUIDs from one MMS term store to another MMS term store using PowerShell. ...
1
vote
1answer
21 views

SharePoint Online - Hidden site collections

We use Powershell with CSOM to remove and provision site collections in SharePoint Online during the development phase. We use the Powershell commands provided by the PnP team like this: ...
1
vote
0answers
16 views

GetListItems isnt working for library with metadata - PowerShell

So after searching over and over on the net for a reason for my problem. I decided to post it here. I'm trying to get all the items in my list that are in a subsite. In that subsite there are 3 ...
1
vote
1answer
113 views

Pretty url in SharePoint

The url's on our intranet are pretty, i.e. http://intranet/test, but we want to show full path of the page, like this http://intranet/test/default.aspx I don't know why we get pretty url and have ...
1
vote
1answer
29 views

Set password policy for specific user in O365?

In Office 365, I have a workflow that runs in the context of another user - a service user. The service users password gets expired after 120 days and then has to be edited, like it does for all other ...
0
votes
1answer
23 views

Delete all files and folders in shared document using powershell

I want to delete all files and folders in shared document using powershell. Thanks.
0
votes
1answer
17 views

How to sort a list column in power shell and update list in share point 2010

using powershell script how to sort a list column before update a list item. here i created a document library and uploaded some documents and want to update ProcessNo column based on ...
0
votes
1answer
15 views

show created column should display seconds with created time after a document save in share point

I created a site collection with Document Center Template and created a document library, i uploaded documents and i want to see created column should display seconds with created time , because i ...
1
vote
2answers
23 views

Powershell script for knowing the status of solution from deploying to deployed

I have added and installed couple of .wsp solutions to farm using following commands: $getSolution = Get-SPSolution -Identity "MySolution.wsp" if($getSolution -eq $null) { Add-SPSolution -LiteralPath ...
0
votes
1answer
16 views

Path for Alternate CSS URL?

i am settings the alternate css url using following powershell script, but it did not change the .css file. What path should i use for alternate css? in my case .css file is located at this path: ...
0
votes
0answers
13 views

SharePoint 2013 Page Status Message

Is there a way to add status to a page(suppose home page) of a SharePoint site using PowerShell? I found ways to do it using javascript (SP.UI.Status) and server side code using c# ...
0
votes
0answers
9 views

Workflow “Error Occurred” After Task Reassignment Using Powershell

I had a task assigned to the wrong person in a custom visual studio workflow. Previously I have been able to reassign these types of tasks using Powershell and the following lines: $web = Get-SPWeb ...
1
vote
1answer
15 views

SharePoint 2010 enterprise migration to SharePoint 2013 - Test-SPsite FailedErrorCount

I'm in the process of migrating intranet site in SharePoint 2010 to a new SharePoint 2013 farm. I have followed the steps from here. Problem appeared when I ran the PowerShell command Test-SPSITE and ...
0
votes
1answer
23 views

Change default columns values multiple libraries

I have 20 plus libraries that I need to set the default value (to the same value). The data is from the term store, I also need to do this for a site column. Is there a tool or script to do this ...
1
vote
1answer
17 views

How to check and list active profiles in UPS?

When I setup the UPS sync first time, I selected entire domain to import. So that many users are imported and their user profiles are generated. Later I de-select some OUs and make a full sync. I ...
0
votes
1answer
10 views

Can we add a column to a sharepoint list having data using powershell

Can we add a column to a sharepoint list having data using powershell without effecting anything in the sharepoint list.
1
vote
1answer
21 views

Get subsite subsites titles

param ( [Parameter(Mandatory=$true)][ValidateNotNullOrEmpty()] [String]$StartWeb, [Boolean]$IncludeStartWeb = $false ) Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue ...
1
vote
1answer
16 views

Share a Site Collection through Powershell SharePoint 2013

I cannot find the Powershell commands to share a site/site collection with a user or group of users. Same as Site Settings > Site Permission. Can you help me? Thanks
0
votes
2answers
17 views

Update filed values based on conditions

i have document library in sharepoint 2010 and i want to update a field values based on some conditions . I need that every parentid has some documents and i want to update those prosessnos which ...
0
votes
1answer
10 views

How to add all default application proxies to custom application proxy group

I have created a web application using powershell and associate it with custom application proxy group. But i also want to add all default application proxies except Managed Metadata Service to my ...
1
vote
1answer
29 views

formatting multivalue lookup value using powershell - SharePoint 2013

What would be the best way to format this Brand Management;#2120;#Infinite Retail I would like to strip the ;#2120;# of and replace with , Sometimes values are single Thanks in advance
1
vote
0answers
25 views

Create document library with look up and multi line text box feilds using powershell

Remove-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue #To which site u want to create the list ...
0
votes
1answer
29 views

Replace WebPart programmatically on .aspx Page without WebPartZone

Is there a way good way to replace a WebPart programmatically on a WikiPage and keep the old position? So far I'm able to delete a WebPart and add a new one but since it's a WikiPage where the current ...
0
votes
0answers
16 views

How to add specified web application to DNS by pinging it

I have created a sharepoint web application using powershell. I want to add my web application to default DNS. How i add it using powershell?
0
votes
1answer
21 views

how to check if any site collection is associated with web application

I have created Web Application with Powershell. I want to check if any site collection is associated with web application using powershell? How it can be checked?
0
votes
1answer
26 views

look up column error

I am getting into a null array - $spList = $webobj.Lists["Studentlist1"] Exception calling "update" with "0" argument(s): "This lookup field cannot enforce a relationship behavior because it is not ...
1
vote
2answers
33 views

How to rename site collection?

I want to change the title of a site collection. If I do this in the site settings and get the title via powershell it still shows the old name? Is there another way to do this?
1
vote
1answer
27 views

How to set document-template using PowerShell

<DocumentTemplate TargetName="/_layouts/CreatePage.aspx" /> How could I set this using powershell? $dst = ...
0
votes
1answer
23 views

PowerShell script to create a list and add a lookup column

I need a Script to create a custom list and add a look up column into it and add the column into a default view. The look up column should have relationship of Restrict delete.