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

2
votes
1answer
191 views

Is there a way to execute commandline-arguments via code from a feature/webpart (Sharepoint 2010)?

I mean, for example, something like a deployment. Is it possible to force something like this from within a webpart using the "standard" sharepoint functionality? Using the central-administration is ...
2
votes
2answers
7k views

Permissions error setting up SharePoint 2010 PowerShell account privileges

SharePoint Foundation 2010 SP1 on Windows Server 2008 R2 Std SP1 (Domain Controller) in a simple farm with a single SQL Server 2008 SP1/Windows Server 2008 Std SP2 backend I realise installing SP on ...
2
votes
2answers
4k views

How to read items in a BCS external list with PowerShell?

Is there a way that you get information from an external list (created from SPD for a specific ECT) differently than you do from a "normal" SharePoint list when using PowerShell? I did the following: ...
2
votes
2answers
577 views

Updating relative links and images in wiki library

I have a wiki library which contents is automatically copied onto another site. Some of the pages in the library contain images, the links to those images are relative. Example: page: ...
2
votes
2answers
2k views

How can I use Powershell to move a list from a development to a production Sharepoint 2010 box?

I'd like to copy a list (and its contents) onto our production server. I've been trying to use the Export-SPWeb cmdlet, using this article as a reference, but I can't seem to get it to cooperate. I've ...
2
votes
2answers
516 views

MOSS2007 PowerShell vs Console Application

I'm looking for a few examples of when you would be better off writing a PowerShell script vs writing a Console Application to perform some operations against the Object Model in a MOSS2007 or WSS 3.0 ...
2
votes
1answer
91 views

Get ULS log records programatically

Is it possible to retrieve records from ULS log using C#/SharePoint API without having to manually parse log files? I would like to display logged messages on a custom web page, and I would like to ...
2
votes
1answer
102 views

How to turn off MDS on all site collections and sites?

We have got a web application with 400 site collections and multiple sites, is there a way to turn off the MDS feature for entire web application?
2
votes
1answer
82 views

Need site inventory tool for SharePoint 2007 that doesn't require server access

We're migrating from 2007 to 2010 and I need a full inventory (site, libraries, lists) so I can remove stuff that's no longer being used. However, everything I've found so far requires server access. ...
2
votes
2answers
928 views

SharePoint 2010 PowerShell Getting List Column Object From Display Name Intermittently Gets Column

I'm trying to get columns in a list from the display name, however this isn't always working. Here is where I try to get the column, and check to see if it's null. I've tried it on display names ...
2
votes
2answers
177 views

List Template does not show up in PowerShell

I have about 15 List templates in the (gallery > List templates) and none of them show up when I run following script: $web.ListTemplates | ForEach{ write-host $_.Name } I think that is the reason ...
2
votes
1answer
66 views

How to display the values in powershell in Excel format

I have got certian output of list properties using powershell script. I need to display it in an excel format. I require the code to display the result in excel format?
2
votes
1answer
418 views

using powershell script update the page name in sharepoint 2013

I wan to change the page name with Power shell script. When I had run the script I was given an spexception error: Exception calling "CheckOut" with "0" argument(s): "The URL ...
2
votes
2answers
271 views

Is it possible to export/import a Sharepoint 2010 subsite?

Is there a way to import/export or backup/restore a sub site? I have a site collection at http://someurl.mycompany.com/sites/content. I have sub sites under that site collection that were created by ...
2
votes
1answer
32 views

Copy of Test Phase to Production Phase

If you have two phase, test and production phase and test phase has a database with 40 table + 55 views + all cubes from analysis service. The production phase is a reflection of test phase. Is it ...
2
votes
2answers
85 views

is it possible to compare environments?

I'm trying to find a tool or a PowerShell script which allow me to compare 2 environments, my goal is to compare my production farm and my pre prod farm and to compare as many settings as possible, ...
2
votes
2answers
913 views

Is it possible to change an existing list's URL?

Is it possible to change a list's URL from something like /site/Lists/ListName to /site/ListName in SharePoint 2010?
2
votes
2answers
153 views

Add AD user to sharepoint site

Please help me about adding new AD users, AD groups with Permission to sharepoint site. I can do it for lists and document libararys but adding to site seems to be different. This is what i do for ...
2
votes
1answer
115 views

SP2010 - Scopes.GetDisplayGroup error, page visit required first?

I'm having a very strange problem with the Scopes.GetDisplayGroup() method returning a "Specified cast is not valid" error. This is a cut-down version of the code I've been using: $SPWebApp = ...
2
votes
1answer
85 views

Changed URL to pages, but still redirects to Pages?

I have an external website which needs to show URL in lowercase only. I don’t want to use URL Rewrite or any third party tool. Instead we decided to change the actual URL’s of the Pages Library. I’ve ...
2
votes
2answers
216 views

How to collate/merge two different lists, with the same colums into one list

I have got two different lists. One is live updated by many users. The second list has the same fields and works as the master. I want to every day, at 6:00 o'clock a.m, merge List one with list two. ...
2
votes
3answers
4k views

Enable-SPFeature : The Feature is not a Farm Level Feature and is not found in a Site level defined by the Url

I'm trying to activate a web level feature using powershell with the following command: Enable-SPFeature –identity 3ad4787b-e859-432c-be22-c772725e0dbc -URL ...
2
votes
1answer
57 views

PS Script to output members of targetted groups into a file

I have an auditing / documentation requirement around my SP Environment upon which members of specific groups need to be listed. Now, rather than doing this manually via screen-shots and / or cut and ...
2
votes
2answers
544 views

Powershell script to schedule daily backup of Sharepoint Sites and Subsites?

I have one site collection at root level and which contains more than 50 subsites. I am planning to schedule a daily job to take the backup of sharepoint subsites. I also want to check the size of the ...
2
votes
1answer
838 views

PowerShell script in setting up multiple SharePoint Alerts

Another user (Charlie) is requesting to have alerts sent anytime a change is made on the "discussion board", "Batch Report" folder, "Reports" folder, and "Audits" folder within a single client site. ...
2
votes
2answers
331 views

Powershell script to retrive all the customization done on sharepoint site

How to write a powershell script which will display the customization done on a sharepoint site - customizations like custom features, custom workflows, custom site def, infopath form etc...
2
votes
1answer
584 views

Get document properties.Keys value

I'm iterating all lists in a site collection trying to get all metadata, their values and eventually count them. I'm not so far yet, but I'm stuck in getting the values from a documents (file) ...
2
votes
3answers
1k views

How to import term set with Use this Term Set for Site Navigation property selected using PowerShell?

$session = Get-SPTaxonomySession -Site $sitename $termStore = $session.TermStores[“Managed Metadata Application”] $group = $termstore.CreateGroup(“My New Group”) $group.Description = "My Term Group" ...
2
votes
2answers
54 views

How to know the root web memory size in a site colelction

I need to get the memory consumed by the root web of the site collection. How could we know this using powershell scripting? Any ideas, please share me. Note- My farm is running on MOSS 2007.
2
votes
3answers
801 views

Create a site collection policy programmatically

I have a requirement to create a site collection policy (retention policy) programmatically. It can be either a powershell script or in C# using Visual Studio 2010. I did a lot of research and am not ...
2
votes
2answers
4k 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: ...
2
votes
3answers
617 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 ...
2
votes
2answers
2k views

Mounted Office 365 sharepoint workspaces lose connectivity - how to fix?

I'm trying to get my sharepoint workspaces on office 365 to mount like network drives. I can achieve this following microsoft guidelines, but after a while this fails. The user has to login again to ...
2
votes
1answer
743 views

System.ArgumentNullException on feature enabling

I created a vs solution with site columns content type list template list instance. It compiles, it installs correctly, except when I click on activate I got the exception on the ULS logs: ...
2
votes
2answers
2k views

Restore-SPSite issue with versions

I'm trying to restore a SPSite using Restore-SPSite command. The command returns : Restore-SPSite : Your backup is from a different version of Microsoft SharePoint Foundation and cannot be ...
2
votes
2answers
2k views

Enable feature of SharePoint sandbox solution

I have a .wsp file that is deployed to the remote server by powershell script. The solution is deployed successfully and I can see the solution feature in the site collection features, I can activate ...
2
votes
1answer
2k views

Problem retracting a Sharepoint 2010 Foundation solution

I am retracting a globally deployed solution via Central Administration. Here is the info Name: familycareprl.wsp Type: Core Solution Contains Web Application Resource: No Contains Global ...
2
votes
1answer
2k views

Powershell - Update column with managed-metadata

I have used following PS script to update a manage metadata column. Not sure how to go by updating a managed-metadata column. I know I need to only populate with "10;#Wholesale Agreement" in ...
2
votes
2answers
263 views

Deleting Dead User Accounts from Sharepoint Alerts,Assigned to E-Mails ,Workflows

how delete Dead User Accounts from Sharepoint Alerts,Assigned to E-Mails ,Workflows.
2
votes
1answer
1k views

SharePoint 2010 - Add WebPart reference to PowerShell script

I want to add a new developed WebPart to a SharePoint site with PowerShell. How it is possible to add the WebPart reference from my WebPart to the PowerShell script? $web = Get-SPWeb $urlWeb ...
2
votes
2answers
376 views

Is there a way to assign a search server to a content database using PowerShell?

Is there a way to assign a SharePoint Foundation search server to a content database using PowerShell, either while creating an Sp-WebApplication using New-SpWebApplication or by updating an ...
2
votes
1answer
3k views

How do I export site security groups and memberships with PowerShell?

I'm looking for a PowerShell script (or tool) to export a site's groups and group memberships to a text file. These files would be used as backup for the current security configuration in case the ...
2
votes
1answer
2k views

Using powershell enable windows authentication on claims based authentication web application

I am creating a web application using Claims based authentication as follows: $databaseName = "WSS_Content_$port" $authMethod = "NTLM" write-host "Creating $title web application on port $port..." ...
2
votes
1answer
240 views

how to find the user profile property scope which user has set on his mysite - SharePoint 2010?

How can I find the list of colleagues/Team-members for a SharePoint 2010 user? and how can i find the scope for a specific user profile property (eg..birthday--->Everyone, Interest--->My Team)which ...
2
votes
1answer
433 views

Powershell script to add Content Types

Very new to Powershell 1.0 on Sharepoint 2007. I've got a site collection with many subsites. These subsites all have a document library called Reviews. What I need to do is add a new content type ...
2
votes
1answer
619 views

updating credentials using powershell

I am in a position where service credentials change quite a lot, I would normally use central admin to change the credentials but quite often the application pool that runs that is using the same ...
2
votes
1answer
725 views

Migrating My Sites to new dedicated site host

We have taken over a site where My Sites are placed in the Intranet web application. I want to migrate the My Sites to a dedicated host site. From what i have been able to find out so far, I will ...
2
votes
4answers
241 views

Administering SharePoint with PowerShell

I have a limited knowledge on Powershell, but from what I've seen, it can be very useful in admin/dev tasks. What would I have to develop to get a nice toolset for WSS/Stsadm administration? Is ...
2
votes
1answer
14 views

Set New Page Default Settings to “Inherit default page layout from parent site” in sharepoint 2013 using powershell script

I want to set New Page Default Settings to "Inherit default page layout from parent site" in sharepoint 2013 subsites using powershell script. I have tried with publishing-web ...
2
votes
2answers
129 views

Using Powershell to create wiki pages from an xml file

I'm trying to batch create wiki pages from an xml file, and have found a few posts that I'm trying to combine, such as this one. There's some problem with my code (Sharepoint isn't creating the ...