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
votes
1answer
71 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
25 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
34 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
21 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
35 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
29 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
36 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
31 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
131 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
66 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
27 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 ...
1
vote
1answer
55 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
46 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
115 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
43 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
28 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
50 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
62 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
16 views

PowerShell code to check if the document have IRM

It's possible check with PowerShell if a document have IRM?
0
votes
1answer
82 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
183 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
30 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
66 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
37 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
137 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
292 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
46 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 ...
1
vote
1answer
381 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
70 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 ...
0
votes
1answer
32 views

Provision SharePoint Site using Data stored in List via Powershell

I have a custom list where users submit there request for new site, which stores, information such as Site Name, Site url, template type, Size of the site, Site Owners etc. Can I use powershell ...
1
vote
1answer
60 views

Powershell Script to approve all the pages,masterpages,layouts in a site collection

Need some automated way for publishing the content throughout the site within the one action using some commands, powershell or some custom code or any utility available for SharePoint 2013. Any ...
0
votes
0answers
19 views

Update folders to folder content type

I have a document library with root folders and then sub-folders. I need to update the sub folders to a newly created content type. Is there a way to do this with powershell? Example: Document ...
1
vote
2answers
55 views

moving sharepoint 2013 site collection from dev to prod

I have a sharepoint 2013 site and would like to this to be moved to another server. I have some few branding and customization and will be good if that can be moved across too if not can re apply the ...
0
votes
2answers
68 views

What's a better way to handle errors for Get-SPWeb?

I've noticed my favorite traps don't work as intended when attempting to get an SPWeb object. Example: trap { write-host "an error occurred. continue."; continue } & { nonexistant_command } ...
0
votes
0answers
55 views

SharePoint PowerShell Script deployment. Only errors outside of Visual Studio?

I have a problem regarding deployment of WSP package. I develop the solution using Visual Studio and use No Activation + a PowerShell script as 'post-deployment' command. The PowerShell script is the ...
1
vote
2answers
81 views

PowerShell script to create hundreds of sub sites

What's the best way to create hundreds of sub sites in a site collection for testing purposes? It doesn't matter what their names are. Doing some research, I found a few scripts that either require ...
0
votes
1answer
149 views

Uploading Files to Sharepoint Document Library and Updateing Column Fields Using Powershell

I'm a new learner to Powershell and a bit new to SharePoint as well. I'm learning powershell to create a script that uploads files to a sub-site library inside SharePoint. I managed to get it working ...
1
vote
0answers
42 views

Get master page object in Powershell / Update master page containts using Powershell

I have to create one Powershell script. This will iterate though all the sites/subsites in one site collection and access master page used by the site. Once i get it, i have to update that master page ...
0
votes
0answers
55 views

Creating SPNavigationNodes via PowerShell

Unfortunately I don't have my screenshots since they are at work so I'll try to explain this as best as possible. On a site collection's top level site at work, I would like to have the top navigation ...
0
votes
2answers
41 views

Programatically sort choices in a list field

I'm updating choices in a list field and want them to be stored alphabetically, however when I try to sort the choices I get the following error: $web = Get-SPWeb "mysite" $list = ...
0
votes
1answer
252 views

Powershell to delete all items from a list based on created date

I have this powershell script to delete all items from a list: $siteURL = "URL" $site = new-object Microsoft.SharePoint.SPSite ( $siteURL ) $web = $site.OpenWeb() $oList = $web.Lists["ListName"]; ...
0
votes
2answers
33 views

After deleting all nodes, QuickLaunch throws “You cannot call a method on a null-valued expression”

If QuickLaunch has nodes, the following causes the error "You cannot call a method on a null valued expression". If not, it carries on as normal. $nodes = $subWeb.Navigation.QuickLaunch write-host ...
0
votes
1answer
103 views

Using PowerShell variables in CAML Queries?

I'm trying to reconfigure scripts I made to move list items from one list to another. At the time the list were not going to change so all the variables were hard coded. Is it possible to use a ...
2
votes
1answer
127 views

Create a People Search Result Source Using PowerShell

I want to set Type="People Search Results" and in Credential Information want to set default authentication using PowerShell. I have used below code to create result source but I am not able to set ...
0
votes
1answer
31 views

Clone site collection vs web templates provisioning (team site)

What's the drawback of cloning existing team sites? Fist I created team sites based on web templates, but after a while with tons of changes from the client I'm thinking of just cloning a "team ...
0
votes
0answers
48 views

Powershell Automation of Workflow Visio Exports

In Sharepoint 2013 I'm working on a solution for automated backups at the list level (as opposed to full site backups). Thus far it's a two part solution involving powershell commands that would run ...
0
votes
2answers
30 views

Powershell - creating document libraries and wish to add an existing group

I have a powershell script I developed in order to create document libraries across multiple sites under a single site collection. I wish to now add the appropriate Site Administrators with ...
0
votes
1answer
35 views

powershell - get permissions for users

I have a csv file with users (domain\user) that I need to find their access. I found a good link here (Powershell script to find permissions for a specific user) on SP Forum. I am calling the function ...
0
votes
0answers
7 views

Powershell how to set a List field by Display User, or set by

I don't have a User Login Name. I have got a Display User Name. With this form - "User Surname User Name", If i have do it by workflow its works, but after 180 elements workflow crashed me. How could ...