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
1answer
516 views

SPSiteDataQuery for Documents using caml query

I am tring to query an entire site collection for all the documents where a certain field is equal to something. For example where LoanCategory = Insurance. I am trying to do this using an ...
0
votes
1answer
469 views

Creating a calculated column with replace in Powershell

I am trying to create a caluclated column through powershell script. Below is the Script: Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue $site = Get-SPweb ...
0
votes
1answer
21 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
522 views

How to find the guid of the User Profile Service?

I'm looking into an issue where employees that have already had their accounts decommissioned in Active Directory are displaying in our new starters and birthday web parts after they have left the ...
1
vote
2answers
450 views

App Pool created with Powershell name appears as GUID in IIS

I just installed SP 2013 in a test environment. I created an app pool to be used by the service applications using the Powershell command below: New_SPServiceApplicationPool -Name "Default ...
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
14 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 ...
2
votes
1answer
26 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 ...
3
votes
3answers
67 views

Can I suppress Import-SPWeb log created message

Using the SharePoint Administrator PowerShell command Import-SPWeb, I loop through many backup files, each generates the output: Log file generated: C:\somepath\backup.cmp.import.log With the ...
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
382 views

How to register a new SharePoint App using PowerShell (instead of appregnew.aspx)?

I'm uploading my SharePoin Provider Hosted App and installing everything via PowerShell, but the only thing that I cannot find is if it's possible to register a new app using a PowerShell command ...
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
62 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 ...
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?
1
vote
1answer
27 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 ...
2
votes
2answers
106 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: ...
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 ...
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
18 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
26 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
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 ...
0
votes
1answer
41 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 ...
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 ??
0
votes
1answer
623 views

How to set Navigation in Office 365 site using powershell?

I am creating some Global / Current navigations nodes on a SharePoint site (SharePoint 2010 in house site) by fetching them through a csv file. Below is the script: #Script to create Global/Current ...
0
votes
1answer
21 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
2answers
26 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 ...
3
votes
1answer
398 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
0answers
18 views

SharePoint microfeed cant be migrated?

I just used a 3rd party software to migrate Project sites data from 1 SharePoint site to another. Worked like a charm except for the microfeed. The tool doesn't support migration of microfeed. Anybody ...
1
vote
0answers
16 views

Deploy a file to the “Forms” folder of a Document Library using Powershell

I am dynamically building up a file that I then want to upload to SharePoint 2013 using PowerShell. I want to upload this file into the "Forms" folder of a Document Library - So not into the Document ...
1
vote
0answers
28 views

Install app for SharePoint using PowerShell - permissions on user profiles

I'm trying to install our app using the PowerShell and after running the application I get an error while accessing the user profile data. We are using the following permissions in our app: ...
1
vote
0answers
20 views

Unable to add link in the Summary Links web part by power shell script

I want to add links to the summary link web part using the power shell script. I have found a script for it on this link, but is it not working as per the requirement. I have a publishing website and ...
1
vote
0answers
13 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 ...
2
votes
0answers
530 views

Getting Null returned from taxonomy field in PowerShell?

I am trying to update a metadata field when adding an item to document library. All the other columns are updating. The error is on this line and basically $taxfield is returning null. $taxField = ...
2
votes
0answers
845 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 + ...
2
votes
0answers
323 views

Configure welcome pages on sites and subsites with powershell

I have to configure the welcome page for all my sites, and sub-sites. Is it possible to add content in the welcome page ? I mean : a little text, a calendar, and sections on the page's right side ...
2
votes
0answers
95 views

How to assign the metadata for folders and sub folders

I am migrating the SharedFolders and files from Windows to SharePoint Library. So here i am able to add metadata for only files, but not for folders. Here the below is the code i tried for adding ...
2
votes
0answers
72 views

Is it possible to read the contents of deleted folders in the RecyclingBin?

I've been playing around with scripts that read deleted files from the recycling bin such as the one below but I can't figure out how to read the files within a deleted folder without restoring it ...
2
votes
0answers
81 views

Not able to connect to service with windows account in mix mode authentication

I am trying to connect web service in mix mode/claim based environment with powershell, Below is the sample code for your reference, $WebSrverUrl = "sharepoint:2013/_vti_bin/authentication.asmx" ...
2
votes
0answers
47 views

How to speed up saving a list as template

I want to save a library as a template. For this I use the following PowerShell code $id = [Guid]::NewGuid() $templateName = [String]::Format("{0}-{1}",$list.Title,$id.ToString()); ...
2
votes
0answers
54 views

Managed Metadata import/export in subsites

I am attempting to export/import the managed data in a library of a subsite on my intranet. When I attempt to use the taxonomy tools that are up on Codeplex, or when I use code such as this, I am ...
2
votes
0answers
93 views

Powershell list.workflowassociation not working right

I encountered recently a weird problem. I'm using a powershell script to : - save all workflows autostart properties (from all lists/webs/sites) - make modifications to items in the lists - restore ...
2
votes
0answers
104 views

Download Root level folders starting with A to J

I have the following script to download documents from document library. Is there any way I can download folders starting with A to J from root level which should include all of their sub folders from ...
2
votes
0answers
196 views

Copying Modified Date in Window Explorer from Powershell

I have the PowerShell script which download Documents from SharePoint Document Library.i want to copy the modified date of documents including folders to the window explorer. Where I am going wrong ...
2
votes
0answers
61 views

update GeoCodes latitude and longitude in sharepoint 2013 with powershell

I am trying to update the latitude/longitude via powershell but can't get it to work. I am basically hitting the bing service with an address retrieving the longitude/latitude then trying to assign ...
2
votes
0answers
386 views

How to delete a Task that is associated to an item and workflow that have been deleted

I have a task that is associated with an item (in another list) that has a running workflow. However, the item was deleted over a year ago and therefore it is no longer recoverable from the recycle ...
2
votes
0answers
137 views

Usage and Health Data Collection using SQL Authentication

I'm having an issue with trying to set my Usage and Health Data Collection to use SQL Authentication. I have tried setting my database credentials to SQL Authentication using both Powershell and ...
2
votes
0answers
233 views

Unable to remove app from SharePoint 2013 site

I've seen this problem in several places in our dev and test implementation of SharePoint 2013. Especially in sites where there has been a lot of testing where people uninstall and install apps. The ...
3
votes
0answers
246 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 ...