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 ...
2
votes
1answer
202 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
377 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
556 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
690 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
232 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
64 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
1answer
136 views
How to get all lists in a site collection along with their Guid and URL
I've created a Powershell script to get all the lists in my site with their Guids. This is working but I also want the script to the return the URL.
$_.Lists | ForEach-Object {Write-host ...
2
votes
1answer
34 views
how to access patches programatically
I know I can access the SharePoint-buildversion using
(Get-SPFarm).buildversion in PowerShell.
I also know that by accessing /_admin/PatchStatus.aspx from central administration I can view each ...
2
votes
1answer
113 views
Microsoft.FASTSearch.Powershell Snapin not available
On a Sharepoint 2010 Server, i tried running a script that needs to use Get-FASTSearchMetadataCategory.
Add-PSSnapin "Microsoft.FASTSearch.Powershell" returns an error, that the snap-in is unknown. ...
2
votes
1answer
39 views
Including Assembly in PowerShell Script
Apologies if I'm missing something really basic here but in all the tutorials I've read that discusses the use of set-fastsearchmetadatamanagedproperty, it mentions how it belongs to the ...
2
votes
1answer
261 views
How to import a library from Export-SPWeb outputs?
I am trying to understand how to restore an arbitrary library to an arbitrary site in an arbitary site collection - inspired by some future user announcing he accidentally deleted a document from the ...
2
votes
1answer
118 views
Add Administrator to User Profile Server via Powershell
I was recently directed to an article that explains how to add a user to the permissions list for the User Profile Service using Powershell, which worked a treat. [My original question]
I'm now ...
2
votes
1answer
304 views
Remove app from SharePoint with PowerShell
I have deployed an app to SharePoint 2013, but something went wrong during deployment. Now I cannot remove or redeploy this app.
Can I force remove this app with powershell or STSADM, like you can ...
2
votes
1answer
158 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
525 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 = ...
2
votes
1answer
564 views
SharePoint 2010 People Picker Does Not Resolve USERS/GROUPS.Please Help!
I am Running SharePoint 2010 Site , recently we migrated Web App from Development Server to Production Server(Different Domain Controller). In Development Server I used to be able to Use People ...
2
votes
3answers
187 views
Deny user access from SharePoint Native but allow it from custom application
How can i restrict a user from entering SharePoint - unless he is using my custom application?
For example, a user tries to open http://Mysite , he gets an access denied error.
But as the same time, ...
2
votes
1answer
524 views
download profile pictures powershell way
I am using following powershell (that I got from here http://spsatheesh.wordpress.com/2011/06/03/download-all-the-profile-pictures-through-powershell-using-web-service/)so I can download all the ...
2
votes
3answers
2k views
powershell script to add a managed metadata column
I'm looking for a powershell script that allows me add metadata column in SharePoint list. Thanks
2
votes
2answers
356 views
Office 365 SharePoint, can you script (powershell) or code provisioning of the site?
I am trying to figure out if you can use Powershell with Commandlets to provision a new site.
Basically if a customer calls for our solution can I write script that sets it all up?
(Creating the site ...
2
votes
1answer
344 views
Connect all SSRS Reports in SharePoint library to DataSource using Powershell
We are migrating MOSS to SP2010 and have a library with hundreds of SSRS reports that use a Shared DataSource (in SharePoint Integrated mode.) Since the ReportServer database location has also ...
2
votes
2answers
1k views
Restoring SPSite not working with different versions
I'm having issues with restoring my .bak files to my own sharepoint environment due to version difference.
My version is currently:
Sharepoint Server with Enterprise Client Access License
Ms ...
2
votes
1answer
147 views
automatically create metadata properties in the search application
I want to create a number of metadata properties in the search application in sharepoint 2010. I don't want to do this myself. I know it is possible to create a powershell script to create the ...
2
votes
1answer
873 views
Powershell script for adding imported user profiles to SP group?
I've managed to import user profiles from our AD. Now I want to add all the imported user profiles into a specific SharePoint group, let's say Visitors, and doing this by using the People Picker takes ...
2
votes
1answer
507 views
Querying multiple lists with GetItems not returning viewfields
I have written a script to get the items of a specific list leveraging the GetListItems method, but I am now being asked to join multiple lists, so I believe I must use the GetItems method. The code ...
2
votes
1answer
3k views
Activating a WebApplication Scoped Feature for a particular WebApplication
I developed a SharePoint 2010 WSP that contains a custom HTTP Module for performing short-url redirects. The WSP also contains a WebApplication scoped feature that consists of a feature receiver that ...
2
votes
3answers
4k views
SharePoint 2010 - Install Site Template using Powershell script
I want to install site template in SharePoint 2010.
Basically i want to know how use install-spwebtemplate
wsp name : SPT_SiteTemplate.wsp
Name : SPT_SiteTemplate
2
votes
2answers
528 views
How to view what a user has access to with PowerShell?
A user has limited access but I don't know what for. How can I view what this user has access to?
I'm on WSS 3.
Does anyone know of a PowerShell script to perform this method?
2
votes
1answer
309 views
User not showing on People page although listed when using Powershell
I'm using SharePoint 2010 (14.0.4763.1000) and have a user that is not showing on the People page (_layouts/people.aspx?MembershipGroupId=3). MembershipGroupId=3 is the Owner's Group.
When using ...
2
votes
3answers
745 views
Object Reference Not Set Error in SPImport.Run()
I'm trying to move my site from a server to another.
I exported my site using Export-SPWeb, moved the data to destination server and ran the function below: (Taken from here.)
function ...
2
votes
1answer
560 views
Powershell script to list LastContentModifiedDate
I'm a beginner to Powershell 1.0 and I'm looking to pull some information out of the Sharepoint 2007 farm as we start the upgrade to 2010 planning. This is what I'm wanting to do, but having some ...
2
votes
2answers
675 views
Updating a list column thro' a PowerShell script?
I have a sharepoint 2007 list and it has many items, I want to update a column in an item thro' a powershell script even if the item is current edited/locked by someone else.
Is it posssible?
2
votes
0answers
22 views
Update Custom Forms with Powershell
I'm trying to update custom forms of SharePoint lists in a large amount of SharePoint 2010 subsites with powershell.
I'm not quite sure what the correct approach is. The form itself can be found as ...
2
votes
0answers
48 views
Import-Spweb is changing the user id if the user does not exist in the organisation anymore
We had to restore a list (which has versionsing enabled) in our PROD enviornment SP 2010 August CU 2012. We used the following command metioned below:
Import-SPWeb http://example.com/projects/myList ...
2
votes
1answer
48 views
Error while running the Powershell script
I want to run the following script but getting the error "Unable to find type [Microsoft.Office.Server.UserProfiles.PropertyConstants]"
#Add SharePoint PowerShell SnapIn if not already added
if ...
2
votes
1answer
560 views
Uploading a file using powershell and updating column values
I am trying to upload a file from a local drive to a sharepoint doc lib, this much I have been able to find, however, I also want to update a column relative to the file, foe example, I have a company ...
2
votes
1answer
46 views
How to add security to a page using powershell
I am new to SharePoint and am writing PowerShell scripts to create a number of libraries. Each library will be added as a list webpart on a webpart page for added security. Finally, the page is added ...
2
votes
1answer
80 views
Warm-Up Script not writing to log file
I have been working on implementing the warm-up script from Ingo Karstein Warm-Up Script
The script runs without any issues, but the log file (.txt) is not being generated as expected. I have the ...
2
votes
1answer
290 views
Users cannot open workflow task (custom form) - Unexpected exception
I have created a custom approval task form for an approval workflow. It works fine for me as a site collection administrator, but for normal users (the users getting the task) there is an error ...
2
votes
1answer
663 views
creating site collections using SharePoint management shell 2013
I am creating Site Collections for Testing SharePoint. I am using Host Named Site Collection to do that instead of the path based site collection addressing.
For that
Got a reference to the HNSC ...
2
votes
1answer
426 views
How to change name and description website?
I need to create a script that creates a page based on a tamplate.
New-SPWeb -url http://site/project/project01 -template OFFILE#1 -name "01"
Import-SPWeb http://site/project/project01 -Path ...
2
votes
1answer
95 views
Programatically update field/column name in a list on all sub sites [Powershell]
What I want to do is with a Powershell script programatically go through all subsites in a site collection and change a column name in a list from "Web" to "Site".
So in easier words:
Go through ...
2
votes
0answers
196 views
Filling a External Data field (BCS) in a list trough Powershell
I have a list of which one of the columns is of the "External Data" type, linked to a BCS service.
We called this column "Organisation", and when I check the generated fields in powershell (with ...
2
votes
1answer
291 views
How to access the web-application hosted on the another Farm using SharePoint 2010 Management Shell?
I am trying to access the web-application that is hosted on the another SharePoint 2010 Farm using SharePoint 2010 Management Shell cmdlets but it is failing with the below error message
$spsite = ...
1
vote
5answers
7k views
Editing property bag values using powershell
What is property bag in SharePoint 2010?
How do I retrieve values from a property bag and get/set the values using powershell?
1
vote
4answers
7k views
List of databases used for a sharepoint 2010 farm?
How to find the list of databases are used by a SharePoint 2010 Farm, including content databases, service application databases and configuration database.
1
vote
2answers
829 views
use powershell to check whether or not a sharepoint list is a document library
I want to make some changes to all of the document libraries in a site collection, but not make changes to any other lists. In PowerShell, how can I check whether a list is a document library, or a ...
1
vote
3answers
388 views
How to set columns visible only in Display Form on a Column used by a Content Type
I have a column that we will call C. This Column is associated to a Content Type (CT).
If I go to the properties of the CT -> Column C I can set the column to be Facoltative or Hidden:
If I put it ...
1
vote
3answers
2k views
Powershell - Item Level Permission by Content Type
Here is the scenario. I only need to run this once as business team just decided their contents are confidential. User Group is "Marketing", will use OOTB "Contribute" and all of marketing items are ...
1
vote
2answers
298 views
Get all the machines in a SharePoint farm
I'm writing a really big script which will get a lot of info from my farm. I'd like to make it work dynamically, so I would need to:
Get all the database servers in the SharePoint farm
Get all the ...


