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)

1
vote
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
501 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 ...
6
votes
1answer
7k 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 ...
0
votes
4answers
6k 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
718 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
967 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
564 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
7k 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
91 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
312 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
203 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 ...
1
vote
1answer
5k 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
607 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
938 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
152 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
105 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? ...
3
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
726 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
1k 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: ...
0
votes
1answer
3k 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
549 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 ...
2
votes
4answers
7k 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
6k 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
547 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
687 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...
0
votes
3answers
1k views

Error on recreating web application

I've written a powershell script to create a web application, add libraries and pages, etc. As I work through the script and fix bugs and issues, I delete the web application through central ...
1
vote
1answer
121 views

How to migrate existing choice columns (containing data) to Managed MetaData columns using PowerShell?

I have 5 choice columns on a SharePoint library, containing ~1000 rows. I would like to migrate these 5 columns into Managed Metadata fields and maintain the data. Any ideas?
0
votes
0answers
112 views

List View Webpart is not getting added while activating feature using powershell

I created a feature and on activation of it I am trying to add list view webpart. Using powershell command activating feature and it gets activated but List View Web part it is not getting added on to ...
1
vote
1answer
7k views

CAML Query in Powershell Issues

I have a powershell script that I am running that executes a caml query to get some list items. The problem I am having is that whenever I execute this query in CAML Builder I am only getting 3 ...
2
votes
1answer
96 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 ...
1
vote
2answers
2k views

Content type ID on a file different from actual content type ID?

Moving from "a sharepoint user" to "a sharepoint power user", I now am facing the world of Powershell and more. One thing that really puzzles me is the following. Ok, so I have a document library ...
1
vote
1answer
313 views

What is the difference? (Checked out files)

I am in the process of writing a powershell script to work with checked out files and I stumpled on this article: Find All Checked Out Files My question is what is the difference between the two ...
2
votes
1answer
1k 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) ...
0
votes
1answer
817 views

Custom Permission Level Using Powershell For Subsite

I am doing the following using powershell. I am creating a site collection with 4 subsites and 5 custom groups. Site Collection : Parent Child Site : One Child Site : Two Child Site : Three There ...
2
votes
1answer
348 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 ...
4
votes
3answers
8k views

How to export a list in SharePoint 2010 and import it into 2013

Is there a good free way of exporting a list in SharePoint 2010 and importing it into 2013. Need to keep structure, data, attachments and other data but revisions, permissions etc not necessary. ...
0
votes
1answer
865 views

Why are changes to navigation nodes by my Powershell script rolling back?

I've written some scripts that were supposed to help me correct links manually added to the navigation of a site. Basically I'm just doing a find and replace in all of the URLs. I've figured out how ...
0
votes
1answer
423 views

Backup-SPFarm not respecting ErrorActionPreference

I'm trying to setup a script in Jenkins to backup my SharePoint server. The problem I'm encountering is that it Backup-SPFarm is not correctly returning an error. So my $ErrorActionPreference is being ...
4
votes
2answers
2k views

Using PowerShell how do I change the column ordering for a SharePoint List

Been trying to search for the answer to this, what I need to do is re-order the fields of a SharePoint list and propagate that change down to 300+ sites (should have used a content type, but oh well) ...
0
votes
1answer
168 views

How can I create web application, site collection, and sites automatically with batch file and power shell

Is there any way that I can create a web application, site collection and sites using poweshell and batch file automatically? So, User has to click on executable batch file which will create the web ...
1
vote
1answer
170 views

Windows PowerShell Vs. SharePoint PowerShell for Deployments

I am using Windows Server 2008 R2 with SharePoint 2010. I see two PowerShell tools on this machine: Windows PowerShell and the SharePoint 2010 Management Shell. Does anyone know the difference? Can ...
5
votes
2answers
3k views

I dont have permissions to use SharePoint PowerShell, what to do?

I am a developer and would like to deploy a wsp to a server (win2k8r2) from my customer. I log in with some user created special for me. When I start SharePoint PowerShell I got this error: The local ...
2
votes
1answer
2k views

Powershell to set a Web Application's Trusted Identity Provider to an STS and NTLM?

I've created a custom STS and have setup trust with SharePoint via New-SPTrustedIdentityTokenIssuer. I can use Central Admin to configure a Web Application to use both NTLM and the STS, however I ...
2
votes
2answers
2k views

Powershell Enumerate through all site collections but not include one specific site collection

I am partially not even sure how to Google this question because whatever I type never seems to bring back any relevant search results. I currently have a working script that is set to go through and ...
1
vote
3answers
271 views

error when executing update-spsolution

Im trying to update a web part that has been distibuted across our sharepoint intranet and im coming up with an error ive never seen before. Ive googled but cant find any info. Can someone help. ...
3
votes
1answer
66 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
573 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. ...
1
vote
0answers
302 views

How do you Import a list item from a .cmp file using powershell?

I have implemented the code located at this link to export and import a list to a cmp file using powershell and the SPDeployment functions. While trying to better understand this code I came to the ...