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
vote
2answers
2k views

Create sptimer job in c# and/or powershell

Can anyone tell me how to go about creating a timer job for sharepoint 2010 either using C# or Powershell. All the best
1
vote
3answers
8k views

Install-SPSolution : This solution contains no resources scoped for a Web application and cannot be deployed to a particular Web application

I have a powershell script that deploys about 12 web parts. They have all been created in the manner through visual studio 2010 and are being deployed to sharepoint 2010. I am getting the following ...
1
vote
2answers
1k views

PowerShell to backup a Web application

I need a PowerShell script which could perform the following: How to Back up and Content Database of a Web Application Restore a Content Database on a newly created Web Application
1
vote
2answers
513 views

SharePoint 2010 - Find WebPart in WebApplication

I´m searching for an good way to find the ContentQuery WebPart in my WebApplication. My plan is to write a PowerShell script and create a url list. I found the following possible ways: SharePoint ...
1
vote
1answer
1k views

PowerShell script for searching lists for specific links?

being both quite new to both PowerShell and SharePoint 2010 I'm wondering if there is any way to make a script for searching a lists for links that begins in a certain way? I want to find all the ...
1
vote
1answer
1k views

How can I get an SPList's URL?

Say I have a list named Links. Is there a way, through .NET and Powershell, to retrieve the URL for this list? In this case, the URL I'm looking for would be "/Lists/Links".
1
vote
6answers
843 views

“Specified Cast is Not Valid” in PowerShell When Getting a Display Group for Search

When run, this code returns an error on the last line "Error Calling GetDisplayGroup with 2 arguments, Specified cast is not valid". $site=get-spsite http://xxx/sites/xxx ...
1
vote
2answers
898 views

Problem adding sharepoint sandboxed solution using powershell

I have powershell script which will create the WebApplication and SiteCollection and upload the solution. Creation of WebApplication and SiteCollection for user X works fine but Add-SpUserSolution is ...
1
vote
3answers
2k views

Why are Taxonomy Term Stores always empty?

Using the following code I should be able to access the Taxonomy Term Stores: $site = new-object Microsoft.SharePoint.SPSite("http://localhost") $session = new-object ...
1
vote
3answers
55 views

Powershell - call to document library does not have items

I am using Powershell to iterate through items in a document library and when I am running the ISE debugger there are no items in my list. I can see that the list is recognized, but I do not see any ...
1
vote
4answers
382 views

Advantages/disadvantages of Timer Jobs vs. PowerShell scripts

I've worked with several examples of both SharePoint Timer Jobs and PowerShell scripts, some of them doing the same things as the other. In my experience, PowerShell scripts are far more flexible, ...
1
vote
1answer
580 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 ...
1
vote
1answer
1k 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
1answer
2k views

Updating Sharepoint List items

I got a custom Sharepoint list which has the following list items Hostname - IP - OS - CPUs - RAM - Disk Server 1.1.1.1 Server 2003 3 8 Disk C: 20gb If i then ...
1
vote
2answers
379 views

Get list of items awaiting publishing in web site

Is it possible to get a list of all items (list items, publishing pages, library items) that are checked out and not published yet? We've noticed that if we use the content deployment feature in ...
1
vote
1answer
674 views

When would you flush the cache of a SharePoint web application?

I stumbled upon this PowerShell script (source) to flush the cache of all SharePoint web applications. Write-Host -ForegroundColor White " - Enabling SP PowerShell cmdlets..." If ((Get-PsSnapin ...
1
vote
2answers
2k views

Export-spweb / Import-spweb leaves the lookup columns empty

The export / import operations seems to be working quite well except for lookup columns. The lookup columns and other columns associated with the lookup are all empty. Is this a limitation? Is there ...
1
vote
1answer
1k views

Powershell script to add local user to user profile

Lt me know if this is possible : i have around 100 local user and i want to add them to user profile.Can any on help me out to create scripts to add the user to user profile. Also i want the ...
1
vote
2answers
264 views

Creating a disaster recovery policy for SP2010

I'm working on creating a SharePoint 2010 Enterprise Server disaster recovery (and backup-restore) policy for our organization. From what I've read, there are several options for doing backup-restore: ...
1
vote
2answers
2k views

upload master page using powershell

What i am trying to acchieve is to write a script that will automatically update all master pages on all site collections in a certain web application. The only problem i am having is that when i ...
1
vote
3answers
302 views

Automated PowerShell scripts

If I wanted to create a PowerShell script how can I make one that include the sharepoint commandlets
1
vote
2answers
4k views

Set default value in a document library column via Powershell?

I'm looking for a powershell script that allows me to set the default value for a column in SharePoint. Thanks
1
vote
2answers
43 views

Recreate a List in many subsites of a site collection using powershell

I have to recreate the same List in several subsites within a site collection. I saved my List as a template but it will be very time consuming to add the List manually to all of my subsites using the ...
1
vote
2answers
90 views

How to remove a starting url via powershell from an existing content source?

I have been trying to find a cmdlet to do this but I havent been able to. I want to create a content source with a starting url, the problem is that url already exists on the default content source so ...
1
vote
1answer
542 views

SPLimitedWebPartManager throwing “File is not checked out” error on AddWebPart and DeleteWebPart

I'm writing a powershell function to add custom webparts (i.e. not Out Of The Box webparts such as ContentEditor) to publishing pages on a SharePoint Server 2010 site. I encountered a frustrating ...
1
vote
2answers
3k views

How to add Add-PSSnapin Microsoft.SharePoint.PowerShell to machine without SharePoint 2010

How I can add Add-PSSnapin Microsoft.SharePoint.PowerShell to machine without SharePoint 2010? I try to run PowerShell script to Backup Farm on Windows Server 2008 R2 without Sharepoint but while I ...
1
vote
2answers
339 views

Error Handling with Powershell Scripts for SharePoint 2010

I am very new to writing PS scripts for deploying solutions and activating features. In my current scripts I get errors some time like feature not activated or deactivated properly. I am looking ...
1
vote
3answers
635 views

What would be powershell version from this c# code?

What would be powershell version of this c# code? I am having hard time get this work in Powershell especially stringbuilder and files.add line where utf8encoding is. Here is my powershell version of ...
1
vote
1answer
450 views

Indexing sharepoint lists with ps

I would like to index a column in a list with powershell. I have a problem, when i retrieve the list how can i set what field should be put to index? Is there a special command, can anyone provide me ...
1
vote
2answers
529 views

PowerShell Scripts

Does anybody know if there's some way to delete items from an SPList using PowerShell scripting? If is this possible, has anybody any good tutorial? Thanks!!!
1
vote
2answers
855 views

This powershell runs but why is it so slow

I ran this powershell which automates wsp addition, activate, deploy web parts and it runs fine. However, it takes about 3 minutes to go through the whole process. Is this norm? = = = powershell code ...
1
vote
2answers
342 views

A way of setting custom configuration properties that can be changed via power shell

I have a few custom settings for my feature that I am creating. I want a way to populate these values on install with some default values. However if needed an admin should be able to change the ...
1
vote
5answers
6k views

Enable-SPFeature not working

I am using PowerShell script to deploy and activate a feature in the same script. Everything works fine and I can see my feature in the Sharepoint Root folder (14 hive). I run it using Farm Admin. ...
1
vote
2answers
1k 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 ...
1
vote
1answer
749 views

SharePoint 2010 - Add filter to a list with PowerShell

How it is possible to add a filter to a list with PowerShell? (I want to add a filter to multiple lists) Is there any tutorial, articel or example?
1
vote
1answer
959 views

Setting the top level navigation sort order with PowerShell

I've created a few sites using this command, > New-SPWeb -url "http://server" -Template "STS#0" -Name "test99" -Description "test99" -UseParentTopNav The sites are appearing in the navigation ...
1
vote
3answers
369 views

Cannot enable feature with feature receiver via PowerShell

I have a problem where I can enable a feature from the UI and code in FeatureActivated method works as expected. However, if I try to enable the feature via powershell as a scripted deployment, the ...
1
vote
2answers
27 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. ...
1
vote
1answer
154 views

Powershell script to iterate all site collections and set another quota template

I have a site collection with inside of it alot of sub site collection for each mysite instance. I would like to create a powershell foreach script which will set a quota template to each site ...
1
vote
1answer
100 views

Powershell to list specific user profiles

Is there a way to list specific user profiles instead all the users? Ex: List all the accounts starting with IT. It should list all the users with ITUser1,ITUser2, ect.... The following script ...
1
vote
1answer
43 views

give user full rights on a list via powershell

I have messed up my rights on a list, so I can still view it, but cannot edit it. I need full permissions on it again. Is there a way to set my admin account back to full rights via powershell? ...
1
vote
1answer
87 views

Windows PowerShell Vs. SharePoint PowerShell for Deployments

I am using Windows Server 2008 R2 with SharePoint 2010. I see two PowerShell tools on this machine: Windows PowerShell and the SharePoint 2010 Management Shell. Does anyone know the difference? Can ...
1
vote
1answer
185 views

Powershell to set a Web Application's Trusted Identity Provider to an STS and NTLM?

I've created a custom STS and have setup trust with SharePoint via New-SPTrustedIdentityTokenIssuer. I can use Central Admin to configure a Web Application to use both NTLM and the STS, however I ...
1
vote
1answer
325 views

Not able to delete site collection using powershell

I am trying to delete a just created site collection but it keep giving me this error, PS C:\Users\svc_spadmin> Remove-SPSite -Identity "http://intranet.sharepoint2010 .com/portalll/DeleteMe" ...
1
vote
1answer
142 views

How to use Power Shell cmdlets with batch file?

I have bit interesting requirements. My client want to develop the Sharepoint 2010 administration UI from Java application. So I suggest him to user Sharepoint web services. As we all know its good to ...
1
vote
2answers
148 views

PowerShell cleaner script work badly after New Year?

I have strange situation with PowerShell script which delete older Backup Files in SharePoint Backup Folder. I use two PowerShell script, first make Backup Farm and second check Folder with Backup and ...
1
vote
1answer
282 views

How to create a PowerShell script that accepts one or more SPWebApplication and use it in an expression?

I'm trying to create a custom function that can uninstall and reinstall any SharePoint solution. Some solutions requires the -GACDeployment switch, some requires the -AllWebApplications and some ...
1
vote
1answer
337 views

How to modify sealed columns (Powershell)?

I'm trying to build and customize a group calendar list created with "Group work site" template. I have stumbled upon some sealed columns, like "All day event". I need to modify them, therefore I need ...
1
vote
1answer
713 views

Export-SPWeb with Where Clause to filter List Items?

I am trying to export list items to a local folder but I only want certain items, not the complete list.Is this possible? I have tried to iterate through the SPListCollection with the "Modified" ...
1
vote
1answer
409 views

Get Identity of my Service Application

I have written following powershell code $list = Get-SPServiceApplication | ?{$_.DisplayName -eq "AmOwaWordSvcApp"} | %{$_.ServiceInstances} | ?{$_.Status -eq "Online"} For these 2 online ...

1 3 4 5 6 7 14