0
votes
0answers
12 views

SharePoint 2010 PowerShell Delete folders in Document Library - See SharePoint/event Log?

I wonder if its possible to see a log file of events (deleted folders in big document library) when actions are invoked by PowerShell? The PowerShell-script it self don't push anything to a log-file ...
0
votes
0answers
24 views

Default/location based metadata at site level via powershell

I can access metadata defaults at a document library level using: [Reflection.Assembly]::LoadwithPartialName("Microsoft.Office.DocumentManagement") $metadatadefaults = New-Object -TypeName ...
0
votes
2answers
40 views

Powershell script to change locked for editing to sharepoint\system status, ID not found?

I am trying to target a file to change the check out status. So I can delete it. SharePoint Management does not work. Manage Content & Structure does not work. So I am trying PowerShell. ...
1
vote
1answer
28 views

Can I add the sharepoint module to powershell? 2010 / 2013

I apologize if this has been answered but I couldn't find any answers to my question. I want to practice the power shell commands for Sharepoint (either 2010 or 2013) but I can't seem to find a ...
0
votes
1answer
30 views

Sharepoint 2010 managed metadata via powershell: can't access some fields

I'm trying to learn about accessing/setting managed metadata fields using powershell (v2) in sharepoint 2010. Based on various tutorials/forums I have the following minimal (not)working example: ...
0
votes
1answer
37 views

List.GetItems is running slow for certain sites

I'm running a pretty simple query to get back items using List.GetItems and it seems to be performing horribly on some of my sites (differing site collections). The lists being queried are essentially ...
0
votes
1answer
21 views

Get-SPExcelServiceApplication Cmdlet not recognized during Powerpivot configuration

I am trying to run the sharepoint powerpivot configuration tool however I am getting a message saying: The term 'Get-SPExcelServiceApplication' is not recognized as the name of a cmdlet, function, ...
2
votes
0answers
37 views

PowerShell script to update ContentType of existing records in Document Library

we are using Document Library in SharePoint 2010 environment. there are about 200 document present in the document library which have been identified (based on location - England and employee type - ...
1
vote
1answer
30 views

How to identify the jobs which are running?

I need to find the jobs which are running currently. This is to check the longest running jobs. Is there any powershell sript to get this done?
0
votes
1answer
30 views

Changing URL / Moving document Libraries with Powershell

I have 100s of Document Libraries with documents in them. The path is: CustomerNumbers/Lists/Documents, I would like to move them 1 folder out; to CustomerNumbers/Documents. All metadata must be ...
4
votes
1answer
49 views

Unable to delete timer jobs

I have a few timer jobs which I cannot delete. Using Get-SPTimerJob I am able to find the jobs and the GUIDS, but when I try to delete them I receive the following error: PS C:\Windows\system32> ...
0
votes
1answer
43 views

Trying to restore backup for version 14.0.0.7105

We've been given a SP2010 backup (.bak) file to restore. At this time I don't know if it contains a site collection or a site or a farm, or how it was generated, and have no way to find out (just ...
0
votes
0answers
38 views

UserProfileService GetUserProfile Modified Date in 2010

I have a problem when loading a UserProfile from the UserProfileService in Powershell. I am able to get a list of properties, however I can't seem to find when the profile was last modified. The one ...
3
votes
2answers
126 views

Powershell regular expression syntax for matching exactly 6 characters that start with two letters at end of url

I have been trying to get a regular expression right for the powershell match command. I am looping through all site collections in a web application (my sites have URLs SC followed by exactly 4 ...
1
vote
1answer
25 views

IRM enabled different for interface than with powershell

Learning about IRM and how it works, please help me understand this situation. Why does powershell show that IRMenabled is true, but the web interface doesn't reflect that IRM is being used? IRM is ...
1
vote
1answer
42 views

Viewing the existing MySiteHostLocation for the SPProfileServiceApplication

I've found plenty of example of how to set the My Site host location for the User Profile service application. On the Start menu, click All Programs. Click Microsoft SharePoint 2010 Products. ...
2
votes
0answers
25 views

Powershell list.workflowassociation not working right

I encountered recently a weird problem. I'm using a powershell script to : - save all workflows autostart properties (from all lists/webs/sites) - make modifications to items in the lists - restore ...
2
votes
0answers
26 views

Managed Metadata import/export in subsites

I am attempting to export/import the managed data in a library of a subsite on my intranet. When I attempt to use the taxonomy tools that are up on Codeplex, or when I use code such as this, I am ...
1
vote
2answers
35 views

Use of powershell with sharepoint

I was wandering what were the possibility of interaction between powershell and sharepoint. Almost all our documentation at work is on sharepoint and was wandering if I could access the metadata ...
0
votes
2answers
24 views

Copy site collection without duplicating guids

On our DEV farm I've got a site collection containing a variety of sites and subsites within. Many of them came from our PROD farm. Now, I'd like to copy this site collection on our DEV farm back to ...
0
votes
1answer
29 views

Unable to remove site collection: Operation failed due to an error in Identity Mangement

I've restored a site collection to a different SharePoint farm. Now i am trying to delete the site collection: Using Powershell: Remove-SPSite http://farm/sites/Site_Collection Error: ...
2
votes
0answers
37 views

How to speed up saving a list as template

I want to save a library as a template. For this I use the following PowerShell code $id = [Guid]::NewGuid() $templateName = [String]::Format("{0}-{1}",$list.Title,$id.ToString()); ...
0
votes
0answers
43 views

Error when trying to sync Actve Directory Photos

I am trying to sync the photos from the Active Directory with Sharepoint 2010. I am following the instructions at : ...
1
vote
1answer
128 views

Download/Export solution from site solution gallery

I'm trying to automate the process of downloading one solution and then add/install the same solution to other site collections. The first thing to do would be to download the freshly created solution ...
3
votes
2answers
61 views

Access Denied from Migrated SP2010 -> 2013 Web App

I've migrated a web application's content database from SP2010 to SP2013. After the migration was complete, I am completely locked out of the web application. Navigating to the root site collection ...
2
votes
2answers
204 views

Powershell to delete checked-out documents with no checked-in version

I have created a script to delete all documents inside a library, including documents in folders and the folders themselves. However, it seems that the script will not remove documents that have no ...
2
votes
3answers
255 views

Differentiate between custom timer jobs and system timer jobs

Is there a way to differentiate between custom timer jobs and system timer jobs. Under Central Administration - Monitoring - Job Definitions I see all the jobs defined on the farm. I´m new to this ...
2
votes
1answer
42 views

Retrieve Custom Workflows Info

Via SharePoint Designer it's possible to verify all Site Collection Workflows (on the Workflows List) grouped by type. How can I via Powershell retrieve all that info displayed in the SPD Workflows ...
0
votes
2answers
97 views

Powershell and accessing Audiences

I'm trying to build a fully functioning powershell script that will merge user accounts, loop through all the site collections and delete the 2 user accounts, then execute audience compilation. I've ...
1
vote
2answers
42 views

Upgrading PowerShell to 3.0 [closed]

I've just installed PowerShell 3.0 (KB2506143 - Windows Management Framework 3.0) on my SharePoint 2010 Web server (Windows Server 2008 R2 SP1). When I checked version with PowerShell using ...
2
votes
2answers
173 views

Error in calling SystemUpdate

I have the following PowerShell script which will update the TemplateUrl field for all forms in a form library. $newTemplateUrl = "http://SPSERVER/FormServerTemplates/NewFormTemplate.xsn" $web = ...
1
vote
1answer
78 views

How do I modify the elements.xml for the default.aspx page using powershell or C#?

On SharePoint 2010, I have a site template solution created by saving a site as a template. Recently I modified the template in Visual Studio - I needed to change the markup for several ...
4
votes
2answers
2k views

Powershell script to find permissions for a specific user

what am i doing wrong user.ps1 $user = "sp2010\systemsacct" $site = $gc | Get-SPSite sp2010 $site | Get-SPWeb -Limit All | Get-SPUserEffectivePermissions $user Out-GridView -Title "Web ...
1
vote
0answers
56 views

Remove Content Type Hub URL

I used a Powershell script to add the URL for the Content Type hub, as in the picture below. Now I wish to remove this URL. Not replace it, but remove it altogether using PowerShell. Is this ...
1
vote
1answer
64 views

Create GUI to run sp-commands using c#

I have a requirement to create a GUI that talks with sharepoint management shell and gives the output then and there. i tried the solution given here ...
0
votes
2answers
56 views

SPCopyDestinationCollection.Add() Method Does Not Persist to the Database

I'm attempting to run a basic PowerShell script to fix a lot of broken "Send To" destination links that resulted from a site migration from one farm to another. I wanted to proof-of-concept this on ...
1
vote
1answer
66 views

How can I load PowerShell 2 PSCX modules on a SharePoint Server that has PowerShell v3 installed?

My current environment of SharePoint 2010 Enterprise Server is having some of the servers updated to support PowerShell v3. At the moment we utilize PowerShell to manage some of the SharePoint Server ...
0
votes
0answers
131 views

Error during Import-SPWeb

I am trying to exporting from my developing machine which has a backup of the content database, and importing it back in the production farm. Running: Export-SPWeb -identity http://mysite -Path ...
0
votes
2answers
221 views

Cannot export a Document Library with Powershell, but other Lists work

I'm trying to do an "export-spweb" command in Powershell to mass-transfer lists and libraries from one site to another. Now, it partially worked, in that all my Lists that were not Doc Libraries ...
1
vote
1answer
137 views

PowerShell script to update Task “Outcome” and “% Complete” fields

I have a problem (see Workflows do not continue after user completes a task nor do they update task outcome and percentage) that I can't get around. I thought about running a powershell script every ...
1
vote
0answers
276 views

SharePoint 2010 - setting peoplepicker-searchadforests, unable to remove property and get <Property Exist=“No”> after setting with no -url param

Interesting behavior that I was hoping someone could help with. Trying to adjust the "peoplepicker-searchadforests" property using the stsadm command in Powershell, I ran the below command: stsadm ...
2
votes
2answers
128 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 ...
0
votes
1answer
251 views

Delete permissions from site with powershell

I know how to delete permissions from lists and document libraries. Simply I can use the BreakRoleInheritance, and I can remove every user. But I couldn't find a way to do this with a site. Like ...
2
votes
1answer
88 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 = ...
0
votes
0answers
35 views

Powershell-registered Managed Accounts not showing up in Central Admin

I'm trying to set up a work laptop for SharePoint development. To get it up and running quickly, I used my corporate domain user account as the first managed account. Now, I want to use a local ...
3
votes
3answers
3k views

Powershell to view last login date for users?

I tried Googling this, but had no success. Is there a PowerShell script, or would it be possible to write one to show the last login date of each user into the SharePoint environment?
1
vote
0answers
45 views

Problem with File.Checkin only on certain files

I have a powershell script that is copying files from a mapped drive into sharepoint and setting some meta data. All is working as expected with the exception of certain files lose most meta data when ...
1
vote
2answers
350 views

Powershell exception when updating ContentType

I have a strange issue when using PowerShell to modify a library ContentType. The following script works correctly: $web = Get-SPWeb $url $lib = $web.Lists[$libName] ...
0
votes
1answer
105 views

Is it possible to add a Shell Admin when the SP server is installed on the DC?

I know there are many reasons why a SharePoint 2010 Server should not be on a Domain Controller but this is for a test Server that was rolled up quickly. The current problem is I need to run ...
2
votes
1answer
79 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 ...