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)

4
votes
3answers
3k 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 ...
1
vote
1answer
3k 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
134 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 ...
2
votes
3answers
722 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 ...
6
votes
1answer
542 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
1answer
283 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 ...
1
vote
2answers
1k 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 ...
2
votes
1answer
7k 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 ...
2
votes
3answers
10k 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 http://win-p8f03cpnjn5:5555/gateway/home/...
1
vote
1answer
5k 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
249 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
758 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
874 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
137 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
12k 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
69 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 ...
3
votes
1answer
777 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
2answers
268 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
3k 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
548 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
63 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
871 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, ...
1
vote
1answer
3k 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. http://jeffreypaarhuis.com/2012/06/07/scripting-...
2
votes
2answers
2k 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 ...
2
votes
1answer
626 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 ((Get-...
6
votes
1answer
10k 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
4answers
8k views

Get-SPWeb: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

I'm having issue with Get-SPWeb: I did everything suggested at Error - Get-SPWeb in Powershell but still not working. weird thing is: it worked before. Did MS change something? the account i ...
2
votes
2answers
833 views

Powershell script to schedule daily backup of Sharepoint Sites and Subsites?

I have one site collection at root level and which contains more than 50 subsites. I am planning to schedule a daily job to take the backup of sharepoint subsites. I also want to check the size of the ...
0
votes
3answers
1k views

How can I view Developer Dashboard from a custom master page or PowerShell?

I need to view Developer Dashboard data to investigate a bottleneck on a SharePoint deployment, but the master page has been customized and the Developer Dashboard is not available (after enabling it ...
0
votes
1answer
785 views

How to associate sharepoint 2013 designer workflow to content type for retention policy using powershell?

I am having a requirement to write a powershell script which should attache workflow to content type in sharepoint 2013. basically it is require to create a retention policy which should start a ...
1
vote
2answers
8k views

How to get all managed accounts and create a new one using PowerShell in SharePoint 2013

I need to get all Managed Accounts in SharePoint 2013. If there are nothing, I need to create a new one. How can I do this using PowerShell?
0
votes
0answers
107 views

Enumerate BCS Object Permissions

Hi I am looking for a method via PowerShell to enumerate the various ETC's that have been created to determine who currently has access. I realize that I can do this via the front end, however I need ...
3
votes
0answers
1k views

Move-SPUser : pixels

Migrating users from one domain to another, I get this error on a couple of users. The migration still seems to occur. Move-SPUser : pixels At D:\UserMigration\MigrateUsers.ps1:10 char:28 + $...
0
votes
1answer
359 views

PowerShell - Dispose SP Objects

I want to use PowerShell to loop through my SharePoint and dispose all objects properly. I don´t want to generate entrys in the SharePoint log like this: An SPRequest object was not disposed ...
0
votes
1answer
248 views

enhancedSearch.aspx not working on a site collection

I want to change the search settings on a site collection to point to search center I created. However when I go to site settings, search settings this page throws me An unexpected error has occurred....
1
vote
1answer
8k views

How to iterate each folders in each of the sharepoint websites using powershell

I've a requirement to find all the files under all websites present in sharepoint. I've use .SubFolders , but it works for a single root folder only. Is there any alternate way for recursive ...
1
vote
1answer
755 views

Upgrading Sharepoint 2010 CMP file to 2013

I have exported a team site from Sharepoint 2013 into a CMP file. However, when I try to run Import-SPWeb, I get the Version package is different. I am looking for anyway possible to upgrade this ...
0
votes
2answers
1k views

powershell backup site cillection

I am trying to take a BackUp of a Site Collection from a remote computer, but I am getting a error that i am not sure of the script is Invoke-Command -ComputerName remotecomputername -ScriptBlock {...
2
votes
1answer
2k views

PowerShell script in setting up multiple SharePoint Alerts

Another user (Charlie) is requesting to have alerts sent anytime a change is made on the "discussion board", "Batch Report" folder, "Reports" folder, and "Audits" folder within a single client site. ...
1
vote
1answer
161 views

PowerShell unable to open my Site Assets

Hi I have knocked up a quick powershell function that downloads all the files in my Site Assets dir so that I import these into Visual Studion ( and not the shortcuts if you just copy and paste) Now ...
1
vote
1answer
117 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? ...
4
votes
1answer
2k views

Access denied after creating site collection by using Powershell

I am using SP2013 single server dev environment. I use following scripts for creating web application and site collection. but when I browse to it, it says this site has not been shared with you. I am ...
2
votes
0answers
939 views

New-SPSite gives ERROR: Failed to OpenThreadToken, LastError=1008 in Timer job

I have a timer job that is running some powershell. The script creates a content database and then attempts to create a site collection. If run from powershell prompt the script works fine. If I ...
2
votes
1answer
2k views

Remote Powershell: New-SPUser : Access is denied. (Exception from HRESULT: 0x80070005)

I am running a remote powershell script which attempts to setup a web-application and site collection and then attempts to add a user to that site collection. I receive the following error: New-...
1
vote
1answer
4k views

Setting permissions

I am looking to set a site admins as the only people who can use a certain page via powershell, so far I have only been able to check permissions not set any
2
votes
2answers
718 views

SharePoint 2010 - List CanReceiveEmail Disable/Enable

After migration from SharePoint 2007 to 2010 the list feature to receive emails is not working on migrated sites. The functionality is enabled in the UI and when I´m checking $list.CanReceiveEmail ...
3
votes
4answers
8k views

SharePoint 2010: What is the difference between backing up a Site Collection and exporting a Site Collection?

Lectori salutem, I am reading into backup and restore operations in SharePoint 2010. I have noticed that in Central Administration > Backup and Restore > Granular Backup there is the possibility to ...
3
votes
1answer
8k 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 ...
0
votes
3answers
676 views

How to hide quicklaunch

I am writing powershell scripts and have been trying to find a solution for this but haven't been able to. I just wanted to find out how to hide the quicklaunch using powershell. Is it a property of ...
2
votes
2answers
906 views

Powershell script to retrive all the customization done on sharepoint site

How to write a powershell script which will display the customization done on a sharepoint site - customizations like custom features, custom workflows, custom site def, infopath form etc...