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)

0
votes
0answers
3 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
10 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
7 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
12 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
25 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
16 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
5 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
12 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
22 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
19 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
13 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
23 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
17 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
22 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
20 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
0answers
15 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 powershell script in SharePoint 2013 for this?
0
votes
1answer
28 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
24 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
16 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
16 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
22 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
27 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
26 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
31 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
31 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
24 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
17 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
27 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 ...
0
votes
1answer
28 views

Powershell Error handling CSOM [closed]

I am currently writing some scripts in powershell client side and I haven't got much error handling. Can anyone give me any advice I have a few try and catches but that's about it. I noticed ...
0
votes
1answer
30 views

Huge padding in powershell created webparts

I add a webpart page via powershell like this: $idLayout = 2 $list = $oSP.GetList( $sList ) $xml = "<?xml version=""1.0"" encoding=""UTF-8""?><Method ID=""0,NewWebPage""><SetList ...
0
votes
1answer
35 views

Deleting Search Nav node in powershell CSOM

I have created a script that adds my search nav to my search site but it is still left with what was already there as out of the box. I am having trouble with finding how I can delete the nodes I ...
1
vote
1answer
26 views

SPQuery ProcessBatchData from folders

I'm using the following script to try and delete items from a Doc Library rather unsuccessfully. There are no files in the root, just all in subfolders under this doc library. Where am I going wrong ...
0
votes
1answer
22 views

How To Copy List Item Object Using Powershell

Given the powershell snippet below I am trying to complete the last part which should copy the list item object from the source list to the destination list. This is for archiving purposes and ...
0
votes
1answer
44 views

Delete all Enterprise Keywords in Sharepoint Online

How can I delete all Enterprise Keywords in our Sharepoint Online. It seems that the Term Store is already populated with many, many entries. Is there a way to "reset" or delete all Enterprise ...
1
vote
1answer
37 views

SharePoint Add List Attachment Programmatically 404

I'm not having much luck with this... [System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true} $lists_pxy = New-WebServiceProxy -Uri ...
0
votes
2answers
38 views

Backup-SPsite command

I want to use the Backup-SPsite powershell command to backup my SharePoint Enterprise 2013 site collection but want to keep only a week worth of backups A backup will run everyday Monday to Sunday ...
1
vote
2answers
77 views

Powershell script to get list of AD groups used from site collections in SharePoint 2010

I need to list all the AD groups used in all the site collection. Can any one please help. $SPWebApp = Get-SPWebApplication https://*******.com/ foreach ($SPSite in $SPWebApp.Sites) { write-host ...
1
vote
0answers
16 views

Editting a Search Results Web part changing the result source CSOM

I am doing some CSOM powershell to edit a search results web part and change the result source. Don't really know where to start with this as I am new to the world of CSOM powershell. Any help would ...
0
votes
1answer
78 views

Exception calling “ExecuteQuery” with “0” argument(s): "The remote server returned an error: (400) Bad Request. CSOM SP13

I'm trying to add a page to my search centre in sharepoint 2013. Trying out cSOM too. Here is my code, I am getting a bug Exception calling "ExecuteQuery" with "0" argument(s): "The remote server ...
-1
votes
1answer
33 views

Add web part to SitePages using PowerShell

I want to add a web part to my page created in SitePages, using PowerShell script.
2
votes
1answer
31 views

Get-SPWeb with a cross domain url throws an excepton

I want to migrate list items held in our dev sharepoint farm to site collection hosted on our live farm. Ok I have RDPed onto the server and I am running ISE as administrator I do another account I ...
2
votes
2answers
55 views

Tag SharePoint pages with “I like it” tag programmatically

I need to tag a lot of pages with the tag I like it. Is there any way of doing it programmatically? (i.e. PowerShell)
0
votes
0answers
10 views

Powershell, design manager, uploading html file not creating associated master page file

I am uploading a xyz.html file through powershell for 2 site collections, when .html file is uploaded and published it automatically creates xyz.master file. It is working fine for first site ...
0
votes
1answer
47 views

Problem deleting list item in Sharepoint 2010

I want to delete a specific list item from a list. If I go in UI and try to delete it, it throws access denied error. Even if I try to delete using below powershell it says the same thing. If I ...
0
votes
0answers
13 views

Update Workflow with PowerShell

I have a MOSS 2007 environment which we are upgrading to SharePoint 2013. I have a lot of Designer Workflows in 2007 that usually involve simple activities like sending mail. However some of the mail ...
0
votes
1answer
37 views

PowerShell try catch

I need you help Im using the next script: How to get all groups within all webs in SharePoint 2010 using Powershell The script perfectly, but some user can not be found, so I'm trying to control the ...
0
votes
1answer
19 views

Cannot return any SharePoint 2013 list or library data via PowerShell - no errors, no data displayed

I want to update some documents metadata (several thousand) in SP2013. Simple do it with a PS script, I'm new to PS but not to programming and there are loads of examples out there - it can't be hard ...
0
votes
1answer
29 views

Removing permissions from a sharepoint folder in a for loop

I am trying to remove all the permissions from folders in sharepoint using a powershell script but only some of the permissions are being removed. When I manually run the powershell commands I can ...
0
votes
0answers
51 views

Unable to update the User Information list using Powershell

I am using the following Powershell script for updating User Information List in SP2013 environment. I am a member of Administrators group and also Site collection administrator. $Site = Get-SPSite ...
0
votes
1answer
32 views

Powershell - get a list of all the document libraries for a web application including content types - output to csv

I have following code and it works great. However, business unit now wants to see content types for each document library. Most document libraries come with Document and Folder content types. Now, ...