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)

2
votes
0answers
25 views

How can a document with version “1.0” have a status of “Draft”?

I have a set of documents which appear to have no problems in the browser, but when I inspect the properties of the document in PowerShell, it reveals that it is actually a Draft document: PS ...
3
votes
1answer
66 views

how I can know if I have missing CU using “get-spproduct -local” command

I have SharePoint 2013 with build number = 15.0.4763.1000 which represents October 2015 CU. now we have installed the security updates for December 2015. but when I run the product configuration ...
1
vote
1answer
39 views

Export and Import a Site Page using PowerShell

I am familiar with how to export/import a site using PS. My question is, is it possible to do the same operation with a Site Page? For example, SiteA/default.aspx contains 2 Site Pages called ToDoList ...
2
votes
0answers
46 views

Issue in migration from SharePoint 2013 On-Premise to Office 365 [closed]

We did migration from SharePoint 2013 On-Premise to Office 365. At source (SharePoint 2013 On-Premise) there are more than 16,000 items (files and folders) but at the destination (Office 365) there ...
1
vote
2answers
62 views

How to use PowerShell script to copy document library with meta data to other site collection?

I need to migrate a document library includings all its documents and all meta data to another site collection. I did some research and quickly found a script that would seem to do the job, see source ...
2
votes
2answers
146 views

Add multiple users, groups and groups permission from *csv file to SharePoint 2013 using powershell

I am looking for script to add multiple users and multiple groups to SharePoint 2013. I have CSV file with cointains two columns with header "user" login and "group" name with are separated by (;) as ...
2
votes
2answers
60 views

Changing Column Settings for a Content Type using Powershell

I'm trying to change the setting of a column to make it not a required field. This is the code I'm using: $site = new-object Microsoft.SharePoint.SPSite("abc.com") $web = $site.OpenWeb() ...
3
votes
1answer
64 views

PowerShell Script to restart the Application Pools of WFEs

Need to create a PowerShell script to recycle the Application Pool of my WFE - Dev,Staging & Production servers of my SP 2013 Farm. I tried code mentioned here But somehow as mentioned in ...
3
votes
3answers
70 views

How to Archive a Site as a Sub Site

I'm having a tough time cracking this and need some assistance. Below is a site called TestSite, that is used to archive other sites not in use located at ...
2
votes
2answers
60 views

Export a custom Document Library using PowerShell

I would like to know how to export a document library (SharePoint 2010) using PowerShell and also saving metadata about content. I need to repopulate the document library with items coming from ...
3
votes
3answers
76 views

Get-SPUser without specify a site collection

I am going to migrate users with Move-SPUser. To do this, I am getting the user first: $user = Get-SPUser -Identity $adAccount -web https://sharepoint/site-collection The moving them: Move-SPUser ...
0
votes
0answers
28 views

Getting User from Active Directory through PowerShell and updating SharePoint List

I have created Windows 2012 R2 as a domain controller as bellow Server Name :- Server Domain :- milind.intra I have all users in user container only and not all user have manager in active directory ...
1
vote
1answer
33 views

What influences the deployment speed on SP2013?

I have an Hyper-V machine running Sharepoint 2013 connected to an hosted server with 16GB ram, where the database is installed for that Sharepoint server. I wanted to improve the local deployment ...
2
votes
1answer
27 views

Dispose of Get-SPOSite in SharePoint Online

In Powershell for sharepoint server, we use dispose() for disposing SPSite objects, do we do the same in sharepoint online management shell? or it's not needed?
2
votes
1answer
36 views

How to add a confirmation to powershell script?

I have a script to undeploy my solution and I want to simply add a confirmation message. I found hundrets of blog entries, how to remove a confirmation via -confirm:$false parameter, but I find the ...
5
votes
2answers
76 views

PowerShell SharePoint online ISE IntelliSense

I want to write PowerShell for SharePoint online using ISE, but I can't seem to be able to make it use the intellisense for the object. When I run the Import-Module ...
2
votes
2answers
105 views

Create Content type with metadata field

I made the following Powershell script to create a content type with a text field and a numeric field: $url = "http://my-sharepoint-site" $web = get-spweb $url $ctypeName = “Content type X” ...
2
votes
2answers
38 views

Setting SharePoint Group as SPGroup Owner using PowerShell

How can i set existing SharePoint Group as Group Owner (instead of SPUser, set SPGroup as owner) using PowerShell at the time of creation of new Group?
0
votes
0answers
18 views

Powershell for workflow not recognizing URL

I have a powershell that kicks off a workflow but my system is not allowing me to run it. The error I'm getting is as follows: Get-SPWeb: Cannot find an SPWeb object with id or URL: xxx.com and site ...
3
votes
1answer
30 views

Set Default user when EnsureUser fails

I made the following Powershell script to check if a user exists in Sharepoint 2013: $siteCollUrl = "http://my-sharepoint-site" $spSourceWeb = Get-SPWeb $siteCollUrl; $test_user = ...
3
votes
2answers
44 views

Break permissions and assign a group at top level of document library using powershell

How to break permissions for a folder at the top level of sharepoint library and assign Sharepoint groups ? I dont want to break permissions for sub folders only the root folders needs to breaking ...
1
vote
0answers
31 views

Configure a Term Set to be used for this property

I am creating user profile properties by using powershell, on SP 2013 on prem. Some of the properties need to be configured with termsets, and I don't want to have multi value option. I am ...
1
vote
0answers
34 views

Powershell Query - Columns are missing While selecting Items from List

I am trying to get records from Office 365 SharePoint list using Powershell Script, through "Microsoft.SharePoint.Client.CamlQuery" query. It fetches all the items and the values. However, there are ...
0
votes
0answers
27 views

Content Organiser Rule creation via powershell running slow

I am using a variation on this script posted here How to create Content Organizer rules through powershell in sharepoint 2010? My script pulls from a CSV file because I have over 600 rules to add. ...
0
votes
1answer
23 views

Sharepoint Online Management Shell Functionality

I am trying to script the deployment of multiple site collections online. This will enable us to create site collections from powershell. I have previously used the dll's (shown in the image) and ...
0
votes
0answers
30 views

How to update existing list lookup column reference through powershell

How to update existing list lookup column reference through powershell. I wrote the following code to add lookup column. Now I need to update column reference. $myCustomList =$_.Lists["Test A"] ...
5
votes
1answer
126 views

Multi line text field with unlimited length in document libraries allowed

What I am doing: Migrating Documents to SharePoint Online using PowerShell Script. Once document is uploaded I am simultaneously setting property values. Case: In a Document Library, I have a field ...
0
votes
0answers
16 views

Export Crawlog and filter it

I wrote a script that exports the crawl log, in order to get everyday an excel file contains the errors and warning in the last day crawling. I used : $ssa = Get-SPEnterpriseSearchServiceApplication ...
0
votes
0answers
18 views

Sharepoint 2013 Rename Profile Photos

For some reason, all my user profile photos have something added in front of them. We just migrated from 2010 to 2013 and now they don't show up because the MySite is looking for something and it's ...
3
votes
1answer
54 views

Update choice field SchemaXml using powershell

I want to change the choice field from drop down to MultiChoice. How to Update choice field SchemaXml using powershell. Also how to get SchemaXml property.
1
vote
1answer
47 views

Change choice column from Drop down to Checkbox(allow multiple selections) using powershell

I want to change choice column from Drop down to Checkbox using powershell
1
vote
1answer
34 views

How to correctly include file in Powershell?

How do I correctly perform includes in Powershell? I have this script: & .\config.ps1 & .\scripts\functions.ps1 Write-Host -f yellow "Saving root site collection" backupSiteCollection ...
1
vote
0answers
53 views

How to install app from app catalog using PowerShell?

Does anybody know a way of installing app from app catalog using PowerShell? There is an article on MSDN about adding apps: Add apps for SharePoint to a SharePoint 2013 site. It describes the way of ...
1
vote
0answers
14 views

Find out, if managed property is user generated or created by SharePoint via Powershell

We have a solution where several developers (from different companies) are working on the system and need to create a deployment solution. Now we finally have naming conventions (thank god), but at ...
2
votes
1answer
46 views

PowerShell Cmdlet Not Recognised

While researching the timer job App State Update I was wondering if I could find the URL it accesses so I could retain its functionality by whitelisting that single URL and blocking all other internet ...
3
votes
1answer
69 views

How to retrieve workflows in powershell?

I'm trying to write a script to check the status of workflows in a list. I have tried a couple different ways but I never get anything to return. foreach($item in $list.Items){ $item.Workflows ...
0
votes
1answer
22 views

Is there something similar to the PHP in_array() function in Powershell? [closed]

Is there a way of finding out if a given value is in an array without iterating through it? Something like the in_array function in PHP...
1
vote
3answers
31 views

SharePoint 2013 Pre-Requisite Package

Is it possible to download all the pre-requisite files as one zip file from somewhere? I have a requirement to install SharePoint 2013 but some of the links I can find for the pre-requisite files ...
1
vote
1answer
45 views

Powershell: Is there a way to extract the Identity from a WSP file?

I want to automatically add and install some wsp files. To check if the file is already installed I (think I) need the identity of the solution that I am about to deploy. How can I extract the ...
1
vote
0answers
31 views

How does sharepoint deal with the column internal names as defined inside the site level Vs. as defined inside the list level

I want to move my lists items from one list "SourceList" to another List "Destinationist", so i write the following script:- $web = get-spweb "http://*****/teamsites/SoftwareDevelopment/" $list = ...
1
vote
0answers
30 views

Column 'TaskDueDate' does not exist. It may have been deleted by another user

I have the following Power-Shell script to copy an item from one list named "Action" to another list named "Risk Issue":- $web = get-spweb "http://***/businessfunctions/UserSupportDelivery/" $list = ...
1
vote
0answers
39 views

Sharepoint 2010 powershell applywebtemplate returns error

I want to create a site from site templates. I use this code: 1 $MainWeb = Get-SPWeb "http://sitecollection" 2 $SiteTemplates = $MainWeb.GetAvailableWebTemplates(1033) 3 $SiteTemplate = ...
3
votes
0answers
27 views

Method GetAppInfoByName does not exist?

I am trying out the tenant APIs towards an on-premise SharePoint 2013 Server install. This server is up to the October 2015 CU. I following the guidance on Vesa's post: I registered the server-stub ...
2
votes
1answer
59 views

Set-SPOWeb -RequestAccessEmail

I found in this post that it is possible to Set-SPOWeb properties, in particular RequestEmailAddress. Obviously the guy did not dream it up and the number of upvotes suggests that it works for other ...
0
votes
2answers
32 views

workflow that sends a reminder 10 days before start date field

I am trying to create a workflow that sends a reminder to the director approver in case he does not approve it 10 days before start date field. Here is how I initially though it: If current item ...
0
votes
1answer
60 views

Assign a field of type Date Only using powershell will always subtract one day

I have the following powershell script to create a copy of a item:- $web = get-spweb "http:*********" $list = $web.lists["Action"] $list2 = $web.lists["Risk Issue"] foreach ($i in $list.items) { $a = ...
1
vote
1answer
51 views

Create new Image Rendition in PowerShell

Is it possible to create a new Image Rendition using PowerShell? I have only been able to find .Net or XML solutions, such as... using (SPSite site = new SPSite("http://spsite")) { ...
0
votes
0answers
33 views

using Item.Update() will not create a new version and will not modify the “Modified” & “Modifed by” fields

I wrote the following power-shell script to create an exact copy of an item inside another list:- $web = get-spweb "****" $list = $web.lists["Source"] $list2 = $web.lists["Destination"] ...
0
votes
1answer
46 views

Error when adding calculated column to list through powershell

I have two almost identical calculated fields that I want to add to a list on several sites through Powershell . "Calculated risk" formula: =Konsekvens*Sandsynlighed "Revised calculated risk" ...
1
vote
1answer
110 views

Export SharePoint Online list to csv via Powershell

I tried to export a SharePoint Online list to .csv by using this script: How to save a list in a csv file via Powershell Below is the script: ...