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
4 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
16 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
18 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
13 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
23 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
21 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
15 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
20 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
26 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
23 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
29 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
27 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
23 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
27 views

Powershell Error handling CSOM [on hold]

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
29 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
30 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
24 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
16 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
43 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
35 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
36 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
60 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
0answers
62 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
24 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
54 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
8 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
46 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
27 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
50 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
27 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, ...
0
votes
3answers
48 views

Get all the document libraries where IsContentTypeAllowed is enabled

I am using this PowerShell code to get a list of document libraries where allow content type is enabled. But it does not return anything. Get-SPWeb http://intranet.site.net | Select ...
2
votes
2answers
107 views

SPO Retrieve HasUniqueRoleAssignements property using Powershell

I am trying to retrieve HasUniqueRoleAssignements property for multiple SharePoint Online lists using Powershell. I can do it for each one in SharePoint on-premises: ...
1
vote
2answers
50 views

Exclude users whose names contain

I am trying to automate my O365 licensing and have had some success, but I am not sure how I can accomplish the following... I have users who I do not wish to license and they all share the value ...
1
vote
1answer
28 views

Powershell changes are not affected in Web UI

Not the first time I noticed that sometimes PowerShell changes are not seen in UI. By example this script: # change web description example Start-SPAssignment -Global $myWeb = Get-SPWeb ...
0
votes
1answer
15 views

Get search service Application name via PowerShell

I'm trying to write some automated scripts to update the web.config, is it possible?
0
votes
0answers
14 views

Memory Leak for Update-SPSolution using Powershell Remoting and Sharepoint 2010

I use PowerShell remoting to deploy scripts ps1 for SharePoint 2010. I get Memory Leak in any cases using Update-SPSolution cmdlet. I get timeout error for deployment. And powershell.exe process in ...
2
votes
1answer
107 views

CSOM powershell to update search navigation sharepoint 2013

I am wanting to write some client side powershell to update the search navigation on global search. I have found many examples of this with server side but none using client side. anyone with any ...
0
votes
0answers
30 views

how to archive sharepoint 2013 list items using powershell

I have a list where user drop there request for new site within my farm. Request goes through workflow where i have 2 outcomes approved and rejected. If item is approved it goes though other approval ...
0
votes
1answer
34 views

Can't create search service application in powershell

I'm working on creating a SP2013 search service application based on Todd Klindt's work (http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=378). It worked down to the line ...
1
vote
2answers
64 views

Why do I get this error creating a web part page in Sharepoint 2010?

The following appears to be the way to create a web part page in Sharepoint 2010 using Powershell: $web = Get-SPWeb http://somesite $pWeb = ...
1
vote
1answer
34 views

How do I move a list item to the owner's recycling bin?

I have a need to run a PowerShell script against a list that deletes items older than 15 days. I have the script written, as well as user notifications, however I am puzzled as to how I can recycle ...
1
vote
1answer
24 views

get all the child terms from a parent term

I am trying to get all the child terms from a parent term from my termset. $Group = $termStore.Groups["grp1F"] write-host Connection made with group - $Group.Name $termset = $Group.termsets["ts1"] ...