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
5 views

Create Multiple Document Sets from List

I need a document set created for every name in a SharePoint 2010 list. The Document set title is the first and last name of the person and the document set has Committee name property that needs to ...
-1
votes
0answers
26 views

Powershell Script Inside C# Code for SharePoint Administration [on hold]

How do we write a PS Script inside C# Code?
0
votes
2answers
25 views

Trimming a URL in Powershell [on hold]

How do I trim http://eng.portal.cs.com to get eng.portal.cs.com ?
-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
40 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 ...
0
votes
1answer
15 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
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
3answers
63 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
30 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
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
26 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 : ...
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 ...
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
42 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 ...
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 ...
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?
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
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 ...
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 ...
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 ...
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 ...
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 ...
0
votes
2answers
41 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 ...
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 ...
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, ...
0
votes
1answer
13 views

Create calendar view with powershell, set Day View Sub Heading value

I am trying to create a SharePoint calendar view with powershell. I need to be able to set the "Day View Sub Heading" value but can't find the fieldref for this type. This is what I have so far (and ...
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 ...
1
vote
0answers
13 views

how to enable the calculated value using power shell?

We want to enable the calculated value option for the Date field,add some formula in that text box. can any one help on this?
0
votes
0answers
29 views

How to set value in SPS-MemberOf User profile property

I am using below powershell code to set values in the SPS-MemberOf user profile property, The code runs without any error. On the other hand I have a page on which using JavaScript Object Model I ...
0
votes
1answer
27 views

How to find the deleted sites under a site collection?

There is a commandlet for finding the deleted site collections in sharepoint ( Get-SPDeletedSite). How can i find the deleted sites under a site collection?
1
vote
0answers
29 views

How can I deploy wsps to SharePoint without downtime?

I have created a powershell script for deploying wsps to the SharePoint Farm. The script also uses psremoting to login remotely to the servers (WFE and Application servers) to recycle the application ...
1
vote
1answer
32 views

PowerShell script uploads files, operation times out on big files

I have a script that uploads files to Office 365 but when a big file is uploaded it fails and says operation has timed out. Is there anyway of increasing this in PowerShell or some settings to allow ...
0
votes
0answers
8 views

SharePoint Tracing Service (SPTraceV4) stuck on stopping when installing SharePoint 2013

I'm trying to install SharePoint 2013 on Windows server 2012 R2 using autospinstaller. The SharePoint Tracing Service (SPTraceV4) being stuck and the configuration database cannot be created. Any ...
0
votes
2answers
21 views

SPDisposeCheck equivalent for SharePoint Powershell scripts

I have used SPDisposeCheck tool for SharePoint Visual Studio SharePoint solutions. I want to know is there any such tool available to check SharePoint PowerShell Script object disposal? I have ...
0
votes
0answers
19 views

Get Info about Site Collection that not used during the last 180 days

I need help to get a list of Site Collections, that where not used during the last 180 days. I´ve found the "LastModified" Attribut, but it´s not the goal i needed. I´ve a SharePoint 2013 Environment ...
2
votes
1answer
104 views

Add +2 years based on created date in SharePoint using powershell

I want to add a date based on item created date +2 years for all existing items in the New Column Date , can any one help on this using PowerShell? Example: Created date: 7/9/2015 Date: ...
0
votes
0answers
14 views

Why updating of InplaceSearchEnabled of the listview webpart does not reflect on the page?

We have a script that generates pages that contains list view web part. The script sets the InplaceSearchEnabled of the web part true, but when we check the pages, the search box does not appear. I ...
1
vote
0answers
23 views

App for sharepoint Development Environment

Can anyone guide me on how can I set up an environment for developing SharePoint Apps. I have a windows server 2012 virutal machine configured with SP2013 server in it. I followed the steps as ...
0
votes
1answer
35 views

Cannot access the local farm -Error while running PowerShell Script on Remote Server in SP 2013

I am trying to run a SP PowerShell script remotely from my SP 2013 dev server.The target server is also a SP 2013 server with same configuration. I am able to get the folders, items, accessing the ...
1
vote
1answer
42 views

How can I remove all documents from a SharePoint 2010 Web Application

We would like to restore our entire production environment in our stage environment. After completing the restore, we would like to strip out all the documents to just leave the "structure" behind. ...