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
19 views

How to copy content type from one site collection to another site collection in Sp 2013

I need to create a content type from one site coll to another, I found this link: http://get-spscripts.com/2011/02/export-and-importcreate-site-content.html The export works perfectly: $sourceWeb = ...
0
votes
1answer
32 views

Unable to perform A full Farm Backup

I have SharePoint 2013 server, containing one web application and three site collections. I want to perform my first full farm backup, so I wrote the following command inside SharePoint PowerShell: ...
1
vote
0answers
17 views

SharePoint 2010 Powershell unable to get the title of SSRS Report viewer webpart

In SharePoint2010, I dragged and dropped two webparts on the page "Performance point filter(PPS)" webpart and "SSRS Report viewer" webpart. I am trying to connect the two webparts programmatically. ...
1
vote
0answers
22 views

How can I retrieve permission levels for site and list using powershell?

Sharepoint 2007 Powershell. I have a powershell script that checks the permissions of a 2007 site collection and outputs it to an xml file. The script is taken and modified from here: ...
1
vote
0answers
21 views

How to Hide default Authentication Providers in SharePoint 2013

I am using Claim Provider authentication and I tried to hide default authentication provider based from People picker using powershell. I copied the following powershell script from Steve Peschka blog ...
1
vote
1answer
38 views

How to set a default value for Date column to “Today's Date”

I am writing a powershell script to add a date type column with "Today's Date" as the default value. How I can set it up? $list | new-spjfield "Date" -internalname "Date" -type DateTime -dateformat ...
0
votes
0answers
18 views

SharePoint 2010 Powershell script to loop thru all sites collections to swap AD groups

BASIC OBJECTIVE: Swap an AD group for another, where ever it exists, and keep the same permission level. I'm looking for a powershell script to loop thru a site collection (or all collections) and ...
1
vote
0answers
17 views

Unable to add the webpart in web part page in sharepoint 2013

I am Unable to add the webpart in web part page in sharepoint 2013 below is the error message: An unexpected error has occurred. Technical Details Troubleshoot issues with Microsoft SharePoint ...
0
votes
0answers
20 views

Additional SPUser properties - UserLogin, DisplayName?

The SPUser object has "LoginName" and "Name" as valid properties according to the technet documentation here. However when i get a list of all SPUser properties I notice two additional properties ...
0
votes
1answer
23 views

Add custom site template to Template library, sharepoint 2013

I have created a custom site template and saved it on my desktop. i want to use this template as a standard template when creating Site collection by powershell code. How to save this template the ...
0
votes
0answers
31 views

how to link site column title to a resorce file?

I would like to link a site column title to a resource file using Powershell. I am using Sharepoint 2010. Thanks in advance.
0
votes
0answers
11 views

change the data type of a sharepoint column from the content type using powershell

i have been trying to change the data type of a field called "EmployeeName" from Number to Text - which is associated with a Infopath form Library in SharePoint 2010 env
0
votes
2answers
14 views

How to migrate AD domain groups in sharepoint 2010

I want to migrate AD domain group "old\abc" to "new\abc"" domain in sharpeoint 2010 using powershell. I am using powershell to run stsadm -o migrategroup –oldlogin old\abc –newlogin new\abc but I ...
0
votes
0answers
4 views

Why does the encrypted docs code generate errors on infopath files?

In check for password protected office documents you shared some powershell code to read through a site collection looking for encrypted documents. When the farm admin runs it, I get errors like: ...
0
votes
0answers
9 views

OnUpdated is not called on field when called with powershell

I have a custom type field, called MyCustomField, this field has some action to perform on the "OnUpdated". So when I go and update field in the UI throught the sharepoint site, and I jump into the ...
0
votes
1answer
26 views

How do I programatically edit the contents of an .aspx SitePage or page or wiki?

I'm trying to programatically edit a page that is being transitioned from server #1 to server #2, #3... etc. I tried including the page inside a module, and later on opening it and extracting its ...
0
votes
0answers
15 views

Find Number Of Items In Search Index Using Powershell

How can I find out how many items are in my search indexes using Powershell in SharePoint 2010?
1
vote
2answers
30 views

Disable alerts for List or a site in SharePoint2013?

I am having a list in SharePoint2013,i want to disable the Alerts Option in that particular list or Site,can any one give example to disable the alerts by using OOTB or PowerShell.
0
votes
0answers
19 views

Why I cannot get the UPS AD connection in powershell?

I would like to get the AD connection from the UPS in powershell. But the object "ConnectionManager" is null. What I am missing? If I go to: Central Administration -> Application Management -> ...
1
vote
1answer
34 views

How to restore a Document Library or List with unique permissions

Is it possible to restore a Document Library or List with unique permissions from an unattached content database with the unique permissions still intact? Normally the steps to restore a Document ...
-1
votes
1answer
36 views

Get absolute url of a page layout on a Publishing page

We have migrated a site collection using a third party tool(the question is not related to third party tool) and observed that in the migrated site, "Pages" library pages point to an altogether ...
1
vote
0answers
24 views

How do you create a PageFieldFilterWebPart by PowerShell?

I'm trying to create a PageFieldFilterWebPart by PowerShell. If I use the PageContextFilterWebPart I success to create it, but I can't configure it. Anyone who have done this? If I success with this I ...
0
votes
1answer
24 views

How Can I Output Enterprise Features List To CSV?

I am trying to output to a CSV file the list of activate enterprise features in our sites with DisplayName, GUID and Scope as the content that is written to the CSV file. I have the following ...
0
votes
0answers
8 views

Modify SPWebAnalytics ReportingDb and StatingDb using powershell

I am trying to change the reporting database and staging database for SPWebAnalytics sharepoint 2010 using powershell below but received the following error: "Set-SPWebAnalyticsServiceApplication : ...
0
votes
0answers
21 views

Creating a Calculated Date Field with embedded double quotes

I have been provisioning a load of Site Colummns with PowerShell . I am however, having a lot grief with a calculated field spField.Formula = "=TEXT(DATE([Created],"mmyyyy"))" spField.OutputType = ...
0
votes
0answers
15 views

Copy list item from Prod to Dev using Powershell or Server Object model

I'm looking for the best way, either throught Powershell or the Object Model, to copy a list item from Production to Dev. The lists are identical, I just have one item that is causing an error in an ...
0
votes
2answers
24 views

Looping into all websites, PowerShell error: Exception has been thrown by the target of an invocation

I have some powershell script which is looping into all websites in a webapplication. I have full control permissions in the policy in Central Admin. In this powershell loop I got this error at some ...
0
votes
1answer
14 views

Add items to the lists having lookup relation using powershell?

I am trying to add items to the comments list based on the Post list having lookup relation ship between these two lists,can any one give me an example how to update the lookup column values using ...
1
vote
2answers
45 views

SharePoint PowerShell Document Library properties

I'm pretty new to PowerShell and try to collect the following data about every document library in a site-collection: Document Library Name Created Date Content Type Are there any general ...
0
votes
0answers
27 views

Set-SPUser - not valid user object - 19;#username - powershell

I'm trying to add users to a custom "responsible" group that have the same permissions as owners group. I'm getting member from a list in SP (people and group). $Responsible = ...
0
votes
1answer
18 views

can I retrieve sharepoint 2010 workflow steps with powershell

I can use powershell to get the names of all SharePoint Designer workflows in my farm - but is there a way to look at the steps of the workflow? specifically, this farm has the ...
0
votes
0answers
19 views

Powershell Explicitly grabbing properties from sharepoint online

I keep getting this error messeage when I try look at a ViewCollection from a list format-default : The collection has not been initialized. It has not been requested or the request has not been ...
2
votes
1answer
38 views

Check user account in an SP group is disabled or not

I have this piece of PowerShell script that lists out all the users in a SharePoint group ... foreach ($grp in $web.groups) { $grp.name foreach ($user in $grp.users) { " User: " + ...
0
votes
1answer
65 views

SharePoint 2010 - Title field not showing up in list of columns for Content type created using Powershell

I have used following power-shell script for creating a new content type with one custom column. $siteURL = "My Site URL" $contentTypeName = "Test Content Type 1" $contentTypeGroupName = "Content ...
0
votes
2answers
35 views

What is the path of a site collection relative to a subsite if they are named the same “http://root/site”

I've been moving subsites into their own site collections and am now in the process of removing the old subsites. I know I can go through the UI in "Site Actions" -> "Sites and workspaces" to remove ...
0
votes
0answers
24 views

SharePoint 2013 unable to see webpart after adding it using PowerShell

I have a custom webaprt which I created in SharePoint 2013 using VS 2013 and I am trying to add and congifure it through powershell. The good part is it's adding it on the page and displaying the ...
0
votes
1answer
36 views

The Best script to configure Search across 2 servers: Redundancy, Performance, and Reliability?

I have a very simple three-tier SharePoint 2013 farm which its topology consists of: : (DB Server, Application Server, and Web Front End Server). Each server has somewhat decent resources e.g. 15 GB ...
0
votes
1answer
37 views

Powershell, How to remove a user from the userprofile service application?

I am using sp 2010. I have some users which are not any more working for our company. We would like to first check if they have a mysite. If they have a mysite I would like to lock it. After this I ...
1
vote
0answers
13 views

PowerShell code to check if the document have IRM

It's possible check with PowerShell if a document have IRM?
0
votes
1answer
19 views

Cannot Create SPRoleAssignment From User in Powershell

I have the following code: foreach ($item in $head.GetItems()) { $bigboss=$item['bigBoss']; $roleAssignment = New-Object Microsoft.SharePoint.SPRoleAssignment($bigboss); } Where $head is ...
1
vote
1answer
49 views

Powershell, how to check if spuser object is user or group?

I have a powershell script which is fixing some corrupted userprofiles. But the results are also groups. I would like to skip the groups and fix only the users. How can I check if the spuser object is ...
1
vote
0answers
28 views

Can we disable /Hide Skydrive from SharePoint Farm On premises

Is there a way that we can use power shell (Not custom delegate control) to hide/disable the Suitelinks from the complete SharePoint farm .We achieved that in one site collection using CSS but as we ...
0
votes
0answers
36 views

Is there a way to find versions of a list in SharePoint 2013?

This is kind of a three part question. I'm trying to find out how many versions of this list exist and how much space this list is using. Is there a way to find this in central admin or powershell? ...
0
votes
1answer
41 views

Copy People column from sharepoint list item to SharePoint group

I have Site Admin Custom sharepoint list in a Site1, where users in our oganization need to submit a request to become Cerified Site Collection Administrator. List Consists of 3 columns: Site ...
0
votes
1answer
22 views

Search User Profile Property without giving ManagedPropertyName

I would like to search the users by giving the value of an user profile property. In order to do that, I created a new managed propery and mapped it to the corresponding crawl property. After Full ...
0
votes
1answer
66 views

Problem copying lookup column data from one list to another via PowerShell

I have the below script that works for moving list data between two lists on sites next to each other that have the same schema. Everything works perfectly bar a column of type LOOKUP named "Name of ...
2
votes
2answers
74 views

PowerShell to get workflow status in a list items of the SharePoint Online

I need create a PowerShell code to get the status of a workflow in a list items of the SharePoint Online. It's simple in On Premise SharePoint, but in online I have serious difficulties. Someone can ...
0
votes
2answers
38 views

Formatting the output using powershell

The following working as expected except the format. It appears the record of value $r and $s variable are display in the same column field. How i can make display in different column field? or when i ...
0
votes
1answer
58 views

New-SPWeb : Cannot find an SPSite object that contains the following Id or Url:

While Running Following command: New-SPWeb -url "https://xyz.com/sites/" -name "apple" -template STS#0 I received following error: New-SPWeb : Cannot find an SPSite object that contains the ...
0
votes
1answer
34 views

Get-SPUser and a Person field

What is the correct powershell syntax for finding all list items in a given list where a Person field matches a user retrieved from Get-SPUser? I.e. $user = Get-SPUser -web *web* -Identity ...