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)

3
votes
1answer
264 views

How to activate hidden features using Powershell

I want to activate site scoped and web scoped hidden features using Powershell Command. What will be the command?
1
vote
1answer
92 views

Collection was modified; enumeration operation may not execute Delete all libraries

I need to delete all libraries from a subsite, however I got this error: Collection was modified; enumeration operation may not execute $web = Get-SPweb($webUrl) foreach($list in $web.Lists) { ...
2
votes
1answer
135 views

Edit Lookup table programmatically via Project Server Interface (PSI)

I have a standard lookup table database table "LOOKUP_TABLE_VALUES" in a SharePoint 2013 solution with columns like: LT_UID - for the Lookup table GUID LT_VALUE_FULL - storing the values with the ...
0
votes
1answer
25 views

Feature code not upgrading

I am using a feature (with feature receiver) to create some lists by code on "my site". The feature is site scoped and is activated by a farm scoped feature (using feature stapling) when a new my site ...
0
votes
1answer
32 views

Can I run Export-SPWeb from another machine using PS Remoting?

I'm trying to run SharePoint Export/Import from a remote machine. I can get it to work if I remote on to the individual box, but want to run it from another machine. I’ve enabled PSRemoting on each ...
1
vote
1answer
21 views

Create A Page At Root And Set As Home Page

I am trying to iterate all the site collections and webs in a web application, create a blank page at the root, and set it to the home page. Setting the home page is no problem, but how to create a ...
0
votes
1answer
13 views

Foreach not recognizing close

I am trying to add items to a list from a CSV script. I have imported the code and established the variables and even test to ensure that the SP information is accurate. The following code does not ...
2
votes
1answer
37 views

No permission to retract/uninstall from CA, but from PowerShell

I have a weird permission-related problem. My account is entered as a local administrator, just to be on the safe side. If I want to retract or remove solutions within the CA I am getting either an ...
1
vote
1answer
44 views

Problems starting UPS sync service

When provisioning the User Profile Service Application via Powershell, we can not start the User Profile Synchronization Service, no matter what. It gets stuck on starting, and after a while gets ...
0
votes
1answer
45 views

How to add profile picture for other users?

I want to add profile pictures for some of our users in SharePoint 2013. How can I do that? Maybe with Powershell?
0
votes
1answer
66 views

Get-SPUser returning users no longer in the site

Good Day, Note: We are not using the Profile Service, so right of the bat, that may be the issue. The reason we are not using it, is because we use HandShake to pull AD profiles for display. If ...
1
vote
3answers
333 views

Cannot update Created By (Author) field through powershell

I'm trying to use powershell to add a new item to a SharePoint list AND set the created by/author field. I don't have much experience with powershell but this seems fairly straightforward. I have a ...
1
vote
1answer
27 views

Sharepoint Restore on Production environment

I have this scenario. I am not sure how to implement it. I am using Sharepoint 2010. I have a site on client environment and it has the production data. Now I have made some changes to the sharepoint ...
0
votes
0answers
34 views

List url property missing

We have 3 environments PRD, TST and DEV. Each environment is pretty much a clone as both TST & DEV were built from PRD. The other day I was testing a Powershell script and when I moved to PRD I ...
0
votes
1answer
46 views

How to delete all webs and all there subwebs using powershell

I want to delete all webs and subwebs like this, Add-PSSnapin Microsoft.SharePoint.Powershell Get-SPWebApplication https://portal.fruits.com | Get-SPSite -Limit All | Get-SPWeb -Limit All | where ...
0
votes
1answer
33 views

How to delete all lists in all webs using PowerShell

I want to delete all lists with title this and this using PowerShell but getting error Add-PSSnapin Microsoft.SharePoint.Powershell Get-SPWebApplication https://portal.fruits.com | Get-SPSite ...
3
votes
1answer
30 views

How can I get a listitem/page related resources from code behind

In the GUI it is possible to get the resources used by a page as shown by the image. Now I would like to get this information in the code behind so that I can modify only pages that are using a ...
0
votes
1answer
61 views

Move Document Library PowerShell

I am facing problems while trying to move a Document Library from one Subsite to another on a SharePoint 2013 on premise installation. I want to "move" a document library with powershell from one ...
0
votes
1answer
79 views

Pagination not working with XSLTViewWebpart when created using Powershell

I am having similar issue as mentioned in below URL's. Paging in XsltListViewWebPart is not working perfectly when added programmatically Why don't folders work when adding an ...
0
votes
0answers
33 views

SharePoint Online Management shell to add o365 Tenant Cloud group to Admin Group?

Is there any way to add an existing o365 Tenant Cloud group as System Admin to all Sites on our o365 SPO Tenant via power shell? I know we can do it with accounts. But apparently since o365 Tenant ...
0
votes
0answers
17 views

Configure peoplepicker across domians having two way trust

Hi I have a farm of 2 app servers 2 search servers and 2 front ends. Steps taken till now 1) Installed User profiles and crawled the successfully imported user profiles. 2) Ran the STSADM.EXE -o ...
0
votes
2answers
144 views

Powershell script to copy a value from one field to another

When I try to run the following powershell script: Add-PSSnapin Microsoft.Sharepoint.Powershell [System.reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") $site = new-object ...
0
votes
1answer
76 views

How to reverse GrantAccessToProcessIdentity(“Domain/User”)?

In our SP2013 on-premise farm, we have two web applications. One for standard team sites and one for MySiteHost. These 2 web application are running under two different IIS app pool with two different ...
0
votes
0answers
13 views

whats the best approach to copy andn sync lists - sharepoint 2013

I Have a list A and would create List B. I would like to copy List A to List B and then keep it synced. Any ideas? Thanks in Advance
0
votes
0answers
55 views

Generate PowerShell Tree View Report of SharePoint Folder Structure

I'm looking for a way to use PowerShell to iterate through all folders in all sites of the SharePoint farm and dump it out to a file that shows the folder structure in tree view. I've made several ...
0
votes
1answer
21 views

Install SharePoint Powershell addin locally to use against Office365

What do I need to install on my machine so that I can run Powershell scripts against our Office365 SharePoint farm? I want to be able to spider for our Sites and then the folder tree in each.
0
votes
1answer
53 views

Creating files in Document library in SharePoint 2010 using Powershell

I am using below script to copy files from one library to another: $SourceWebURL = "http://sitecollection/sites/site" $SourceLibraryTitle = "doclib" $DestinationWebURL = ...
0
votes
1answer
43 views

Error while creating a folder in sharepoint library using powershell

I am using below script to create a folder: $folder = $dList.AddItem("", [Microsoft.SharePoint.SPFileSystemObjectType]::Folder) $folder["Title"] = "Test" $folder.Update(); Error: Invalid ...
0
votes
0answers
57 views

How to re-register Workflow Service in workflow manager 1.0?

I am using SharePoint 2013 Management Shell to re-register my Workflow Service due the following error I am having in Sharepoint Designer 2013: Microsoft.Workflow.Client.ActivityValidationException: ...
0
votes
1answer
39 views

How Feature stappling will effect the existing site collections?

I have added a Farm scope feature stapler that staples an existing feature and that existing feature deploys master page. When i create a new site collection, the master page deploys automatically. I ...
1
vote
1answer
38 views

copying content from one document library to another

I am copying the contents from one library to another in SharePoint 2010 using powershell. I am new to powershell, so far I am able to get the files name and url using : Get-SPWeb ...
0
votes
1answer
20 views

Null items coming in library items results

I am trying to get items in specific library using Get-SPWeb http://sitecollection/sites/site/subsite | Select -ExpandProperty Lists | Where { $_.GetType().Name -eq "SPDocumentLibrary" -and ...
0
votes
1answer
18 views

Getting error while copying contents from one library to another

I am using below script to iterate through each folder/file in document library. $source = "http://sitecollection/sites/site/subsite" $dest = "http://sitecollection/sites/site/subsitearchive" ...
0
votes
1answer
29 views

Error Importing Site using PowerShell

I'm trying to Import a site using PowerShell via the command Import-SPWeb. During the import process I got a fatal error stating "Could not find Feature MobilePowerPointViewer". Since the ...
0
votes
1answer
25 views

Scheduled PowerShell Task Won't Write to a File

I have a PowerShell script that runs exactly the way I want interactively; creating two log files: one is a csv for graphing the output later, and the other is a basic status log, such as: Opening ...
0
votes
2answers
234 views

PowerShell Get all users in a SP Group from a subsite

Is it possible to get all users in a subsite. I found a script online but I keep getting the URL/ID cannot be found. The same command essentially works for the site collection but it doesn't work on ...
0
votes
1answer
75 views

Get-SPUser returns additional blank lines. How do I remove them when reading into array?

I am attempting to get a list of users for the site that are part of a specific domain. The end result will be putting them in a SQL DB, which is fine; I just need to get the array clean. I am not ...
0
votes
1answer
66 views

How to move OOTB profile properties into custom section

How to move OOTB user profile properties into custom section? How we can do it using powershell? I need a PowerShell script for doing this in SharePoint 2013.
0
votes
1answer
89 views

Page Not Found Error After Deploying The Solution Using PowerShell

I am a novice in sharepoint 2013. I have created a Sharepoint 2013 Solution using "Empty Project" as my template and added two aspx pages. When deploying the solution using VS2012 the solution ...
0
votes
1answer
59 views

Copy documents from one document library to another using PowerShell

I am using below Powershell script to copy contents from one document library to another, however I am getting this error: Cannot find an SPWeb object with id or url :...... Script: $ver = $host | ...
0
votes
1answer
21 views

Error while getting libraries name using powershell script

I am executing the below script to get all libraries name in subsite: Get-SPweb http://server:80/sites/sitename/subsitename | Select -ExpandProperty Lists | Where { $_.GetType().Name -eq ...
0
votes
1answer
25 views

Correct way of disabling a feature using PowerShell?

What is the correct way of disabling a feature using PowerShell? I'm gonna add a script to task scheduler that's deactivates the Minimal Download Strategy feature from all the new sites that are ...
0
votes
1answer
85 views

FIM Syncronization Services fails to start - User Profile Synchronization won't start

User Profile Synchronization was working ok and after one restart FIM Synchronization Services fails to start and User Profile Synchronization won't start. I have follow harbar.net article for ...
0
votes
1answer
51 views

Fix broken image urls

I have migrated some websites from SharePoint 2007 to 2013 and there are some broken links, like images and links. As far as I know they are absolute links. Can anyone show me how can I fix these ...
0
votes
1answer
85 views

How to create different Column Types in SharePoint Online using PowerShell cmdlets

I'm using below script that actually create the News List in my SharePoint Online site, but I'm stuck on how to create different Column (Field) types under that List, right now it's just creating a ...
0
votes
2answers
59 views

PowerShell script causes “The context has expired and can no longer be used. (Exception from HRESULT: X80090317)” issue

Currently I have 3 different SharePoint environments; DEV,UAT and PROD. These environments have same server topology and same software installations. I populate some SharePoint lists and a SQL Server ...
0
votes
1answer
93 views

Inventory SharePoint 2010 with Site Title, URL, ID, ParentWebId, & Size

I need to inventory a web app. I have this script below that works like a charm except that I'd really like the size of each Web. Is it possible to do this using this script? Get-SpWebApplication ...
0
votes
1answer
260 views

Powershell deleting/showing list items csom

I am trying to delete items in a list using CSOM powershell but it doesn't seem to work at all, Here is my code atm which is trying to print out the title of my list items but this isn't working ...
0
votes
1answer
24 views

How to add custom webparts on a webpage without editing the page.(powershell)

Every time after deploying the WSP. Editing the page and adding all the custom webparts on every page is tiresome. Is there any easy way to add all the web parts dynamically using powershell ??
2
votes
1answer
35 views

Does every service application have an application pool associated with it?

I was working on writing a script to list the app pool for each service application and I got to the State Service and Usage and Health and Data Collection Service and don't see any app pool property ...