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

How to move content within fields in a page layout?

I'm working on a requirement where I'm adding a few fields in an already existing Page Layout and also renaming all the fields. After adding the fields via code,I want to move content within fields ...
0
votes
1answer
4k views

Error: The file or folder name contains characters that are not permitted. Please use a different name

I took backup from our staging server and restored on my local development machine. My Powershell script is not raising any error while restoration. But when I open the site in browser, it's giving me ...
1
vote
2answers
3k views

Add multiple farm solutions using power shell (Not Deploy)

I am trying to migrate around 200 wsps from one SharePoint 2010 farm to another. I have already copied the wsp files to a folder in the new farm. I need a powershell script that can take the path of ...
7
votes
9answers
23k views

How to delete all items in a List using PowerShell

I am using following PowerShell script to delete all items of the List. It's working fine but take too long for huge lists. Is there any efficient way of clearing list items, something like truncate ...
0
votes
3answers
3k views

Can an InfoPath Form call a PowerShell script that makes use of the submitted form values?

I would like to build an InfoPath form that users can use to request a new Active Directory account (e.g. for a new employee). Once the form is submitted, I would like it to then run a PowerShell ...
1
vote
2answers
2k views

New-SPWebApplication application pool account is not found

I am trying to create a new web application using PowerShell. I keep getting the error application pool account is not found! How do I solve this? I tried adding the new web application to ...
2
votes
3answers
4k views

DisableEventFiring using PowerShell

How can I call DisableEventFiring using PowerShell? C# code like this : Type typeInfo = typeof(SPEventReceiverBase); MethodInfo disable = typeInfo.GetMethod("DisableEventFiring", BindingFlags....
3
votes
2answers
739 views

Is it possible to use powershell to change the content type of a page layout after its been uploaded to a masterpage gallery?

Im trying to automate as much of the upgrade I am working on and one of the manual steps is to change the page layout of 5 root webs of site collections, each of which has to have this new page layout ...
2
votes
3answers
722 views

Installed TFS 2010, where is SharePoint Management Shell?

I just did a fresh (single-server) install of TFS 2010, which has all the Sharepoint (WSS 3.0) components. But I want to move the SharePoint log files to a different drive, and all instructions point ...
1
vote
1answer
671 views

User Profile Property

In share point i have defined a custom property and in central admin it is showing that 414 users are using this property is there any way that i can get the details of the user using that property
0
votes
1answer
87 views

Right Management Sharepoint

I have a sharepoint list. Users should be able to create new items and change some attributes. I gave full access for the users on the list items. But now I think there is a security gap: what ...
0
votes
1answer
131 views

How to open or access a webpart's XML and rename its namespace Using PowerShell?

We have some web parts deployed in our Sites, which are not working due to Migration from MOSS to SPS2010, and I need to replace the namespace used by power shell by accessing the Webpart's XML..
1
vote
1answer
285 views

Using powershell to list managed metadata terms

I'd like to gather statistics on managed metadata use. Instead of quering the content by the terms (one by one), I'd like to run through selected lists, listing the used terms per item. Is this ...
2
votes
2answers
6k views

Change Document Library folder's Modified timestamp to latest timestamp inside

I have a Sharepoint 2010 Document Library with a range of subfolders and some files within each of them. The problem is, right now every subfolder has the same Modified timestamp, and I want each ...
2
votes
2answers
6k views

get Items from Sharepoint-list

I've created a list in sharepoint by using visualstudio. The List is based on a custom contenttype. Because I want to delete the title field I've switched off inheritation of the Contenttype: <...
3
votes
1answer
319 views

Enumerating Features in a WSP or Deployed Solution using PowerShell

I am creating a build script that will automatically create a Test Site, Deploy all wsp to that site and activate all the features. The problem I have is how do I enumerate the feature Names or GUID's ...
2
votes
5answers
4k views

Adding new webparts to an already deployed solution

I have a webpart project built in visual studio 2010 and it has been deployed successfully to my production environment. I recently had to make some changes to the webpart and also needed to add a ...
1
vote
1answer
2k views

Setting Document Library's Created and Modified timestamps to reflect actual file's timestamps

I have a Document Library in SP 2010 with a bunch of files organized into folders. Each file has the Last Modified timestamp and Created timestamp set to the time they were uploaded. However, we need ...
1
vote
2answers
2k views

PurgeNonImportedObjects doesn’t remove user accounts?

Our customer has switched his AD to a new one. We have migrated users in SharePoint, but the User Profile Service doesn’t work for 73 of 7024 users. These users can log in to SharePoint, but doesn’t ...
8
votes
4answers
11k views

Update-SPSolution does not Deploy Solution

I am trying to deploy or update a WSP solution to SharePoint in a script using Update-SPSolution. The problem I have is that if this is the initial install I need to use Add-SPSolution and then ...
0
votes
1answer
752 views

PowerShell or script to make all lists and libraries unsearchable?

I realize I can do this at the site or site collection level (can't remember which). However, I need every one turned off individually so that I can then go back and choose which libraries/lists are ...
4
votes
3answers
4k views

Sharepoint Master Page Powershell

We have over 80 Site Collections in our Web Application is there a way through power shell that i can set the same master page for all the site collections.
0
votes
2answers
1k views

Powershell to find specific feature in a list or library

I have a particular feature which has been orphaned and I no longer have access to re-install it. However it is locked in to three lists that I have in my site collection. I can find it in one of the ...
0
votes
1answer
119 views

Trying to create list with ECT

I'm trying to create list from External content types with powershell. I'm trying to get the model, through this line : $Model = Get-SPBusinessDataCatalogMetadataObject -BdcObjectType Model -Name ...
7
votes
1answer
9k views

Remove a single user from all site collections in a web application using powershell

Is there a way I can choose to remove a single user from all site collections within a single web application using powershell. There are number of user profiles whose domain account has been blocked ...
0
votes
1answer
739 views

Remove all custom sharepoint 2010 features

I want to remove all custom sharepoint 2010 features from my farm: The scritp below gets them, but doesn't remove them. How should this be modified to remove them? $url = "Your site URL here" $site=...
0
votes
2answers
293 views

How to update values in a list for everyone's personalizedView?

We have a custom list that has a personalized view of important links for each of our employees. ListName is "Important Links". Column names are: URL, OwningUser, etc. For example, CNN could be one ...
2
votes
3answers
2k views

How do I set the OSearch14 Service Account via PowerShell

I'm in the process of Scripting a deployment of SharePoint 2010 and FAST. Normally to set the Service Account of a SharePoint service one would use the ProcessIdentity property, like so: $procId = (...
0
votes
1answer
1k views

people picker in sharepoint

I have recently configured a two way domain trust between two domains.And I want people picker to be able to see across only one domain. I have done this by setting stsadm property through command.I ...
1
vote
3answers
1k views

Cant´t activate a custom feature with PowerShell but with the GUI

I want to activate a custom feature with PowerShell on a few sites in my environment. When I´m doing this job over the GUI, everything is perfect. But when I´, doing it with my script, the feature ...
3
votes
3answers
16k views

How do I programatically change the content type of an existing file?

Is there some way to change the content type of a file using PowerShell? Ideally I'd like to write a function that one would point at a specific document library and it would pull down an array of ...
0
votes
1answer
227 views

Site Provisioning in Hosted Environments

I am looking for a solution that would allow me to provision sites, in environments where I don't have server access (hosting, Office 365). My issue: I need to provide site collections or sites to my ...
0
votes
2answers
2k views

Script to reset list item versions for all Sites

I'm looking for a way to reset the number of versions to "2" for all lists and libraries that have version control enabled. Is there a PowerShell script or something that can handle this? The idea ...
4
votes
4answers
1k views

Add a Web Part Zone to “My Newsfeed” Page via PowerShell

I've done a fair amount of looking into this idea without promising leads. Let me define my problem: I need to add a third column (as a Web Part Zone) to the "My Newsfeed" page in My Sites. The ...
2
votes
1answer
6k views

Filter return results on Get-SPUser?

Having an SharePoint 2010 installation I try to filter the return result of Get-SPUser but I don't see any possible ways to get a single user or filtered users back. Get-SPUser -Web https://intranet....
1
vote
3answers
2k views

Is there any powershell editor available for sharepoint?

I am looking for a free powershell editor that supports intellisense for SharePoint related object and methods. Can anyone suggest me anything?
4
votes
4answers
17k views

How to activate feature using powershell script?

I need to activate specific feature to all site collection which is inside the particular web application using powershell script?
2
votes
1answer
1k views

How can i update a cross site list (all items) from another list with the same ID numbers

I am trying to copy a list from one site to multiple other sites, i have tried to do this in powershell on an hourly basis using scheduled tasks, i was intending to write a powershell script to do the ...
4
votes
1answer
2k views

Update vti_author in SPDocumentLibrary item using PowerShell?

I want to update the property vti_author in an item in a SPDocumentLibrary, but it doesn't work. The items original vti_author is the same even after running this script, why? $spSite = Get-SPSite ...
1
vote
1answer
926 views

How to add file to a SharePoint Library that is in a subsite

I can successfully connect to the "Shared Documents" library at root site and add a file to it. What I can't do is connect to a library that is a few layers down so I can add the file: The Root Site ...
1
vote
2answers
4k views

PowerShell to Remove Site User Permission

I am looking for some help removing a User Permission from a site using PowerShell.
6
votes
5answers
11k views

Get name of Farm account using Powershell

How can I get the name of the Farm account ? I can see it listed in Get-SPManagedAccount, but do not see any properties on the SPManagedAccount objects to be able to dynamically filter by and ...
0
votes
2answers
637 views

foreach “Webs” works on dev but not in staging

I had a script I was working on a while back that got put on the back burner, but now I'm trying to finish it up, and I thought I had reached that point. I was running this script on our development ...
3
votes
2answers
2k views

PowerShell - Create Search Service App Pools (All 3)

How many App Pools are created when you create the Search Service Application? How can I create all the Search Service Application App Pools using PowerShell and give them all unique names? I've ...
0
votes
2answers
3k views

Using Import-SPweb -IncludeUserSecurity slow

I am quite often asked to move lists/document libraries etc. between Sharepoint sites and retain the Author, Modified by data and the like. Now I can do this fine using the -IncludeUserSecurity switch ...
0
votes
2answers
331 views

Is it possible to start a workflow instance on a list item when the workflow is not associated with the list?

I am writing a powershell script to find out all the In-Progress workflow instances in a site collection. Usually, the suggested way to do this is to find associated workflows to a list and check the ...
0
votes
2answers
5k views

Getting SPUser object from “Group or People” SPListItem field

I am using a Powershell and CAML query to return items from a list. The list contains a "Group or People" field in which I have not seeing how to get the email and login information of the user. I ...
0
votes
1answer
2k views

User profile Audience Using Power shell

#Add SharePoint PowerShell SnapIn if not already added if ((Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue) -eq $null) { Add-PSSnapin "Microsoft.SharePoint....
0
votes
1answer
242 views

how to set webapplication.RightsMask via PowerShell

trying to change one of the rights assigned in RightsMask with Powershell on a SharePoint 2010 server. $webApp=get-spwebapplication http://myWeb $webApp.RightsMask I want to be able to enable/disable ...
1
vote
1answer
1k views

Using get-spuser returns null SIDs

I am very new to SharePoint (2010 in this case) and have been tasked with writing a PowerShell script that will synchronize some information between Active Directory and SharePoint users. I figured ...