Tagged Questions
0
votes
0answers
11 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
41 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
1answer
23 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
19 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
33 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
48 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
64 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
61 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
81 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
66 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 ...
1
vote
0answers
20 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
17 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
1k 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
35 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
117 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]
...