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

Change SharePoint Service Account using PowerShell

In the Central Admin you are able to change a registered Service Account to a specified service (as in the image) Is this possible to manage by powershell? Thanks
2
votes
1answer
506 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 ...
-2
votes
0answers
17 views

Problem in installing sharePoint prerequisite [on hold]

Can any one please tell me the way through which i can install prerequisite of sharepoint 2013. Because every time when i install SharePoint prerequisite it gave me error although i followed this ...
2
votes
2answers
36 views

SharePoint online power shell commands are not working

I installed Sharepoint online management shell in my local computer, and I want to connect to the remote sharepoint server. But when I type the command, it is wrong. I searched in some methods, one ...
1
vote
1answer
938 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 ...
5
votes
1answer
9k views

Adding a site column and add it to a content type from PowerShell issue

Within a PS script, I'm trying to add a site column and add this column to a custom content type. Here is my script : add-pssnapin Microsoft.SharePoint.PowerShell -EA 0 function ...
0
votes
1answer
14 views

Cannot find an SPSite object with Id or Ur

While trying to execute this Power-shell command: $site = Get-SPSite "http://mysite/" facing: Get-SPSite : Cannot find an SPSite object with Id or Url: http://mysite/. At line:1 char:9 + ...
0
votes
0answers
4 views

Get list of all custom field types present in SharePoint List using powershell

I want to get the list of all custom field types used in a SharePoint list through Power Shell. Currently it displays even the default field types e.g. Text, Note etc.
0
votes
3answers
62 views

Trying to check if a folder exists in document Library using powershell

I have written following powershell script to check if a folder exists in a document library. My function is not able to find the folder which is existing. I am not sure, if it is due to the pattern ...
0
votes
0answers
8 views

Sharepoint 2013 - Powershell Delete Multiple Files and Folders using supplemental txt/csv

I would like to delete specific files and folders in a named document library on a bulk scale (20-100+k file/folder items). Explorer View is not an option because the files and folders that must be ...
0
votes
0answers
27 views

back up restore a site from a site collection

so I have created a new site collection and web application. I have a site in a site collection that I want to back up and restore on. Was just wondering if it was possible and if it was how, to do a ...
0
votes
2answers
22 views

How to compare the versions of 2 SharePoint Servers

I want to know how to find out the versions of 2 SharePoint servers in my development environment. I tried with the PowerShell command (get-spfarm).buildversion I got the below result for ...
0
votes
0answers
23 views

invoke-restMethod uploading a file to document library in office 365

<# .Synopsis Stores the credentials for Invoke-SPORestMethod. .DESCRIPTION Stores the credentials for Invoke-SPORestMethod. This is done so that you don't have to provide your ...
1
vote
1answer
30 views

Update of field value in a file within document library using powershell is not working

I have associated a custom content type to a document library and this content type as multiple fields. The FieldXYZ termset from which this field is derived has 2 values ('Success' , 'Failed'). In ...
2
votes
1answer
953 views

Backup-Spsite always failing with HRESULT 0x80131904

While taking backup of Site Collection on SharePoint 2010 using powershell command "Backup-SPSite" I always encounter below error : "Backup-SPSite : Exception from HRESULT: 0x80131904 At line:1 ...
1
vote
0answers
13 views

invoke rest api office 365 powershell

### ENVIRONMENT SETTINGS $user = "domain\user" $pass = "thepassword" $doclib = "Documents" $url = "http://localhost/sites/teamsite" ### TOGGLE DEBUG MODE $debug = $FALSE ### DO NOT MODIFY $headers = ...
0
votes
0answers
25 views

Using powershell to upload large files using the rest api

I am wanting to use powershell to upload large files using the rest api, not on the sharepoint online shell or anything like that, just normal powershell. I have an office 365 site that i want to ...
0
votes
0answers
12 views

check if a sharepoint site and document library is correct

I have a script which adds files to a document library, but before I actually run this script I want to run another script to test if the site and document library are correct. I tried this : ...
0
votes
0answers
13 views

Adding file permissions from a file share to the same fileshare in office 365

I have this code that adds the permissions to folders from a fileshare to the same file share in office 365. How can I make it so it add the files permissions as well? Function MapPermissions{ ...
0
votes
0answers
40 views

Office 365 upload a file to a document library powershell

$Context = New-Object Microsoft.SharePoint.Client.ClientContext($SiteURL) $pass = ConvertTo-SecureString $credentials.Password -AsPlainText -Force $Creds = New-Object ...
5
votes
4answers
3k views

how to know Exact Document Library size

How to know exact document library size. any PowerShell code required? I used http://XYZ:4444/_layouts/15/storman.aspx but it doesn't show true size. I have Just Modified Nikhil's Script which ...
0
votes
2answers
19 views

Configure SSRS for SharePoint 2013 with PowerShell

So I have to configure SSRS on my box and i tried to search feature name "Report Server Integration Feature" and could not found and my search lead to below two post. Installing Reporting Services In ...
0
votes
2answers
39 views

Edited: Hide a userprofile property from sharepoint 2010 powershell

EDIT I have a created the property now using below url. now I want to assign a custom subtype to the section property and the existing property by using powershell. Any inputs? // Take list of ...
1
vote
2answers
91 views

configure claims authentication in Sharepoint Which has configurd in 2 different servers

I am trying to implement claims based authentication in SharePoint which is configured in 2 different servers, previously it was in one server and it worked fine with a custom STS(.net mvc ...
2
votes
1answer
575 views

SharePoint 2013 Online: List of all suspended workflows

Is there a powershell script or service out there that gives you a list of all workflow statuses? Primarily we are looking for a way to get a list of all current suspended workflows. Update: Here ...
0
votes
1answer
665 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
1answer
438 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 ...
3
votes
1answer
33 views

modifying a site column using powershell without affecting its child list columns

I have a site column of type "Text", and users have assign this column a default value at the list level. so now my site column contains null default value, while its child list columns are having a ...
2
votes
1answer
14 views

Wiki Home Page add Webparts

How can I add a WebPart with Powershell to a Wiki Home Page which was created with the site feature "Wiki Page Home Page" to a specific "zone"? I'm using the text layout "Two columns with header and ...
0
votes
1answer
24 views

get the rootweb for a office 365 for a site collection

i have a site collection called https://mysitedev.sharepoint.com/sites/migration is there anyway to get the first bit https://mysitedev.sharepoint.com with csom. will i have to do it with regex?
0
votes
1answer
40 views

How do I download documents from SharePoint Online?

I want to download all documents and their versions from a SharePoint Online site. I have tried achieving this by using a script by Nik Craik that I found here. It doesn't work because it keeps ...
3
votes
1answer
32 views

list all users in an office 365 site powershell csom

How can I list all the users from an office 365 account. I have tried this: $users = $Context.web.SiteUsers; $userinfos = $Context.web.SiteUserInfoList; ...
0
votes
1answer
819 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 ...
4
votes
1answer
1k views

Disable site collection health check rule

Is there anyway of disabling/bypassing a site collection health check rule. For example, I want to bypass Missing Site Templates rule when I upgrade a site collection in SP 2010 mode to SP 2013. For ...
0
votes
0answers
14 views

Call a PowerShell .ps1 file from Visual Web Part

I want to call a .ps1 file from my visual web part which is part of my wsp. Is this possible? Does it similar to calling a notepad.exe file from a console or web part's .cs file. Customer wants to ...
2
votes
0answers
19 views

Can I get overall click count for entire SP2013 farm?

We are using SP2013 on-premise standard. There are over 50 site collections. By checking each site collection's popularity trend we can see each site collection's click count. However it is too time ...
2
votes
1answer
489 views

Error while running the Powershell script

I want to run the following script but getting the error "Unable to find type [Microsoft.Office.Server.UserProfiles.PropertyConstants]" #Add SharePoint PowerShell SnapIn if not already added if ...
1
vote
1answer
25 views

SharePoint time differs from the time shown and time fetched using powershell scripts

I deleted a sub site at 7/13/2015 10:39 PM as per the server system time. But the entries in the recycle bin of the particular site collection shows 7/14/2015 10:49 AM which is ahead of the original ...
2
votes
2answers
16k 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 ...
1
vote
1answer
20 views

Create managed property via powershell in SharePoint 2013

I want to create a managed property via powershell in SharePoint 2013. I found the parameters here: https://technet.microsoft.com/en-us/library/ff608089.aspx Then I use ...
1
vote
1answer
50 views

check if a user exists in a sharepoint site

Is there anyway to check if a use exists in a office 365 site. I am adding meta data to items in a document library and I am using ensureuser but if the user is not there I don't want it to be added ...
1
vote
1answer
562 views

Issues updating/setting multi value lookup columns via powershell

I have an issue updating multi-values in a lookup field via powershell I can update a single value lookup field as below but can't get to update if its multi- value. As stated below when I hardcode ...
0
votes
0answers
53 views

REST API uploading a file powershell office 365

Add-Type –Path "C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll" Add-Type –Path "C:\Program Files\Common Files\microsoft shared\Web ...
0
votes
0answers
16 views

SPList.RootFolder.Properties is Null on some lists

I have a weird problem in production that I've been able to identify (and fix) but I don't know how to identify the cause. In this project every list is created by XML creating a Content Type, list ...
1
vote
0answers
33 views

Find out where the content type is still in use

I have deleted the content types from the libraries/lists using powershell, but now when I go to delete them at the site level it tells me the content type(s) is still in use. I have checked the ...
0
votes
0answers
10 views

Powershell upload documents and convert sub folders to Doc. Sets

I asked a similar question here: Previous Question however a unique library needs to be set up and thus I can not use that script. I need to upload a large batch of files that currently exist in ...
2
votes
1answer
750 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
0answers
17 views

Move list attachments to document library and set lookup field on document library to list item

I have a SharePoint 2007 list which holds thousands of items. Each item has potentially multiple attachments. I would like to move the attachments from the list and place these into a document ...
3
votes
1answer
55 views

Uploading a large file to Office 365 via CSOM PowerShell

I have the following code : $FileStream = New-Object IO.FileStream($File.FullName,[System.IO.FileMode]::Open) $FileCreationInfo = New-Object Microsoft.SharePoint.Client.FileCreationInformation ...
2
votes
1answer
30 views

Remove permissions on a folder in Office 365 with PowerShell

I am trying to remove permissions from a folder and then add new ones. My script adds the permissions successfully but when I try and get rid of the permissions it inherited it's just not working, ...