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 ...
0
votes
1answer
9 views
SharePoint 2013 : Updating user profile property using PowerShell
I am working on a powershell script to update the following user profile property on my SharePoint 2013 enviornment,
Personal Site
Personal Site Capabilities: 0
Feed service provider defined ...
0
votes
1answer
40 views
How to remove specific file types (i.e. docx) from multiple specific Sharepoint libaries?
I am a newbie when it comes to Powershell so I'm asking for help. In Sharepoint 2010 I have several document libraries in a single site collection that all start with the name of 'PT-' and in those ...
0
votes
1answer
31 views
If-exist-then-do condition
I'm new to powershell and I don't get how to do this:
if exist
$versions | select * | where {$_.versionid -eq "1024"}
then do
$List.GetItemById($_.Id).file.undocheckout()
0
votes
0answers
10 views
SharePoint Error when I run PSConfig
I am getting the following error when I attempt to manually run PSConfig following an update on this server from the June/July 2012 CU to the April 2013 CU (this is from the logfile):
06/10/2013 ...
1
vote
1answer
20 views
Delete List Items Using PowerShells with Date Filtering
I've been trying to delete more than 10,000 list items in SharePoint using PowerShell. So far, this is what I've had
[System.Reflection.Assembly]::Load("Microsoft.SharePoint, Version=12.0.0.0, ...
0
votes
1answer
48 views
Need to remove permission level from a SharePoint group using PowerShell
I was able to create a PowerShell script that creates a new permission level and assigns it to a group. However, I noticed that it doesn't replace the previous permission level of that group. So how ...
0
votes
0answers
14 views
Reverting Document Versioning in Document Library
I accidentally published a new major version causing a document going from version 4 to 5.
How can I revert the version number?
I want the version number to be 4, and delete the 5. So that next ...
0
votes
0answers
14 views
Get All Users in Powershell Not Returning All Displayed User Accounts
I am using the following powershell command to list all users in a site collection:
$sites = get-spsite "http://mysite/sitecollection/"
$web = $site.RootWeb
$web.Users | select-object
$web.sitegroups ...
2
votes
1answer
31 views
GetListItems Exception
I am trying to get the contents of a Sharepoint 2007 list using Powershell. I'm able to connect to the web service but receive an exception whenever I try to call the GetListItems method.
# Create ...
1
vote
1answer
28 views
Need to change the owner of an existing SharePoint group using Powershell
I have succesfully been able to create a SharePoint group and assign it an owner. But now I noticed that it only works if the group has not been created. So now I need to add a way to modify the ...
0
votes
2answers
28 views
Locate empty folders in Sharepoint 2007
I'm trying to work out how I can locate empty folders in Sharepoint 2007 using Powershell. Folder.itemcount doesn't appear to work in 2007.
1
vote
3answers
69 views
What is a user friendly way to run Powershell scripts?
I've made several powershell script for my customers. They have very little knowledge about SharePoint and Powershell.
I want to let them run these scripts when they want, but don't want them to ...
1
vote
2answers
42 views
Copy picture from Document Library to Mysite Profile Picture
Today we have picture of all the users in a document library.
https://site.url/.../username_jpg.jpg
I would like to use these pictures of them on mysite. Can I use powershell or something else that ...
2
votes
0answers
28 views
check for password protected office documents
I have a need to check through a site collection and find all password protected office documents. My organisation has decided on a policy where password protection on documents will no longer be ...
0
votes
0answers
15 views
how to change Catalog settings of a list by powershell
I would like to change catalog settings of Pages list to make it akt like a Catalog by using powershell. It includes adding Title as "Catalog Item URL Fields" and choosing a Term Set for "Navigation ...
0
votes
1answer
102 views
SharePoint 2013 Create Variation Labels with powershell script
I'm actually trying to add variation labels to a site using powershell script (SharePoint 2013), and i know there is no powershell script for the job so im looking at some c# object model and i found ...
0
votes
1answer
50 views
Automatic Logout the User after “X” time in Sharepoint 2013
I need to logout the user in SharePoint 2013 after x amount of inactive time. I tried these options:
Modify the node with the timeout attribute.
Run some PowerShell code to modify the ...
0
votes
2answers
34 views
Cannot retrieve a list by display name via PowerShell
I am replacing a colleague for the support of a SharePoint 2010 intranet.
In PowerShell console : I can retrieve a list by its display name from the Lists collection of a SPWeb object.
In a PowerShell ...
1
vote
2answers
36 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.
...
0
votes
0answers
35 views
Get-SPSite : There was no endpoint listening at securitytoken.svc
Get-SPSite : There was no endpoint listening at
http://mydomain.com:32843/SecurityTokenServiceApplication/securitytoken.svc
that could accept the message. This is often caused by an incorrect
...
4
votes
2answers
120 views
How do I fully automate Restore-SPFarm?
I have heard that it is a best practice to maintain a QA environment for SharePoint. I would like to script a nightly restore from our production SharePoint 2013 farm, which I'm successfully backing ...
0
votes
0answers
10 views
Activating features like FeatureManifest order
I am deploying a solution using powershell. When I activate the features of the solution some of them have dependencies and I get an error when using Enable-SPFeature command. In the package of my ...
0
votes
0answers
27 views
One or more field types are not installed properly, how to check in which field is it failing?
I am getting this error in a timer job that I did not develop.
Error: One or more field types are not installed properly. Go to the list settings page to delete these fields. ...
0
votes
0answers
76 views
Powershell: Move up arrow in user profile property doesn't work
I have used a PS script to create a User Profile Property within a User Profile Section and setting a DisplayOrder in that section.
The Script works as expected, the problem is that when I click on ...
0
votes
0answers
99 views
Upload to SP 2013 Document Library with metadata, Powershell problem
As a Proof of Content Assignment i was asked to implement a SharePoint 2013 Document Library to a Local Program. I'm relatively new to Power-shell and have tried to upload .docx files and succeeded.
...
0
votes
0answers
22 views
Sharepoint 2010 upgrade failed
The health analyzer needed a "Product/path installation or server upgrade required" so I ran the powershell script psconfig.exe -cmd upgrade -inplace b2b -force -cmd applicationcontent -install -cmd ...
1
vote
1answer
47 views
Get SharePoint Group Permissions Via PowerShell
I am looking for a PowerShell command to get the permissions of a SharePoint group on a securable object.
I have googled for a while but without success.
I am aware of the ...
0
votes
1answer
23 views
Restore SharePoint 2010 Site - Different schema version
I have a backup of a SharePoint site (14.0.6114.xxxx December 2011 CU??) and I tried to restore it to a different farm with version 14.0.6106.xxxx April 2011 CU???. As expected I got the schema ...
1
vote
2answers
77 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 ...
2
votes
0answers
40 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 ...
0
votes
0answers
64 views
Indexed columns and the change of locale (SharePoint 2010)
If I change the locale under regional settings in SharePoint 2010, I get an exception like this:
The column "column1" in the list or library "list1" has been marked for indexing. Please turn off ...
1
vote
1answer
54 views
“User cannot be found.” error in Powershell
I am writing a PowerShell script to re-sync my users to the AD because of a problem I have described Here. From time to time I get a "Set-SPUser : user cannot be found." error but when I call the same ...
0
votes
2answers
68 views
Backup-SPFarm hangs silently on MOSS 2013
I have a 3-server SharePoint 2013 farm (db, app, web) set up and working enough to put in some demo content, and am trying to configure backups. I've successfully backed up using Central Admin but I'm ...
0
votes
1answer
111 views
PowerShell: Upload documents to folder in document library
I'm using SharePoint Foundation 2010.
I have to make a PowerShell script that copies a structure found on a network share. Its all good except for one thing... I know how to make Document Library's ...
0
votes
1answer
92 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 ...
0
votes
1answer
176 views
Powershell Script to generate site collection administrators, site URL, Site Name,Members in the group named 'owners'
I have a requirement currently to generate all the Sharepoint site in a Web application with the following information:
Site URL
Site Name
Site Collection Administors : ID or name
Members in the group ...
0
votes
0answers
88 views
Workflow history no longer accessible-object reference error WrkStat page
The workflow history was >6m records, so I have redirected all workflows to rite to other custom history logs while running a job to purge 1k records every 15 minutes. When I attempt to check the ...
1
vote
1answer
50 views
How can I find the Feature Activation Dependency Powershell
I am running a recursive function that activates many features in powershell however I need to find the child feature a feature is dependent on before it is activated. How can I do this in powershell.
...
1
vote
1answer
67 views
Application pool not visible in IIS, SharePoint or PowerShell
I have a PowerShell script that creates a web application using New-SPWebApplication. It crashed for some reason a while back and now it keeps telling me the application pool exists. I've looked in ...
2
votes
1answer
45 views
RoleAssigments are being assigned by default to all new pages
I am pretty new to SharePoint, so please let me know if there is some more info or clarification required. I am creating a webapplication with certain SP groups, libraries and pages in that order by ...
1
vote
1answer
262 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 ...
2
votes
1answer
37 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
0answers
65 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 ...
1
vote
1answer
56 views
SharePoint 2010 backup: differential size almost as big as full
My question is similar to this one except my full and differentials do not happen as often. I do a full once a week and a differential on weekday evenings. My differential backups at the beginning ...
0
votes
2answers
125 views
Removing all Enterprise SharePoint Features from a web application
I am having a hard time determining which features to include in the removal process. Additionally, I am struggling to determine the order in which they should be removed. Could you please help me ...
1
vote
3answers
89 views
Move Files from a SharePoint Library into a Folder
I have a problem. I want to move files from a SharePoint library into a folder using PowerShell. To be more specific I need to move all the files in the library for whose a SharePoint field value ...
0
votes
2answers
53 views
which is better building sites/libraries through Ul or programmatically?
Apart from the fact that an automated approach is quicker, consistent and less prone to human error I was wondering if there are other advantages of provisioning sites using a programmatic approach. ...
0
votes
1answer
64 views
Exception error when getting master page in powershell
I wanted to see which site collections in our 2010 environment are not following the rules and are deactivating the Master Page in the settings.
I have some powershell code that works just fine, ...
0
votes
1answer
186 views
Powershell scripting for creating lists Online version of SharePoint 2013?
I would like to know if we can script list creation and modification (i.e adding, deleting columns, etc..) using PowerShell for SharePoint online.
...
1
vote
2answers
164 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 ...



