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 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
6 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
16 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
2answers
304 views

How to get a list of broken links using Powershell? for Sharepoint 2010

I need a SharePoint 2010 Management Shell script that is going to generate a csv file with a list of broken links in one of my site collection and its sub sites. The script should support powershell ...
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
68 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 ...
0
votes
2answers
967 views

Powershell to get template name site is using

I have a site collection http:/SC/ under which I have a site http:/SC/site. Can you provide powershell to check which template http:/SC/site is using?
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 ...
1
vote
1answer
8k views

Unable to execute: Add-PSSnapin Microsoft.SharePoint.PowerShell

I'm attempting to use the PowerShell ISE on a Win 2012 Standard Server. I followed the steps here (http://sharepointpromag.com/blog/powershell-and-sharepoint-step-1-loading-dlls-and-snap-ins) to add ...
0
votes
1answer
16 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 ...
1
vote
1answer
594 views

Creating SiteCollections using SharePoint Management Shell 2013

I am following the below instruction to create a NHSC, but at point D when I am creating a Team Site, I get the message that the new URL is not found! Do I need to create that before? Am I missing ...
0
votes
2answers
20 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
19 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
14 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
357 views

spadminV4 which could not be contacted in deployment

I have Sharepoint 2013 and Powershell deployment. I execute muy ps1 script in SPS01 machine. Farm servers are SPS01, SPS02, SPS03, SPS04. User for deploy is UserInstallerMoss , it's Farm ...
1
vote
1answer
523 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
478 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
27 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
531 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
469 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
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 ...
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 ...
3
votes
3answers
69 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
388 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
36 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
67 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
16 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
29 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
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: ...
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 ...
1
vote
1answer
25 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
21 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
27 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
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 ...
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 ...
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
633 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
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
2answers
30 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
399 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
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 ...