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

Determine via code if workflow is stuck in error state

There is a workflow (Visual Studio and SP 2010 style WF) that seems to be getting stuck every so often when it errors. I see the item in the WF history for the list item saying something like "An ...
0
votes
0answers
43 views

powershell to select a lot of files in folders and subfolders

First my problem : I started to move a big library into a document center in Sharepoint, everything went fine, except people couldn't see files in it. After a short research I discovered the check out ...
0
votes
0answers
79 views

sharepoint 2010 powershell to delete workflow history

I'm looking to put together a powershell for sharepoint 2010. I want to delete workflow history after 30 days, for everything in my farm/sites BUT I want it to exlucde certain lists that we need to ...
0
votes
0answers
387 views

Retrieve SharePoint 2013 Product key script

I've tried many scripts, but all of them retrieving another key then product key, that i wrote in start of installation (i remember first symbols). Is there any way to get the right Product key, that ...
0
votes
0answers
158 views

How to get documents within each document set from a document set library using powershell

I have to set a value of particular column for all documents in the ABC library. This library contains many Document Sets, within which there are different documents. #instance of Client Context ...
0
votes
0answers
112 views

PowerShell code to get managed navigation

I have written the below powershell code to get the managed navigation throughout the sites. ## SharePoint DLL [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") ...
0
votes
1answer
18 views

shareopint powershell pointing the field of an element inside the collection

I have a question about the follow code: $web = Get-SPWeb http://localhost $list = $web.Lists["Style Library"] $fields = $list.Fields.InternalName $fields | Where {$_ -like '*workflow*'} output: ...
0
votes
1answer
44 views

How can I generate a report to display all users' access to a site?

I would like to generate an Excel (or CSV) file to have a list of all users and what type of access they have to a certain 2010 site? This site is secure, but I do have administrative permissions to ...
0
votes
0answers
74 views

Version count not showing what it should do

$Upload = $DestinationFolder.Files.Add($FileCreationInfo) $Context.Load($Upload) $Context.ExecuteQuery() Write-host "Adding the meta data to the document in O365" $ListItem = ...
0
votes
2answers
16 views

Cannot reach PowerShell profile

I am trying to open PowerShell profile, I typed: $profile in Windows PowerShell, and it gave me the following path: ...
0
votes
1answer
147 views

How can I run REST from batch or powershell?

I want to create an item (Title,ID, description) in Mylist by using REST/batch/powershell/SQL store procedure Any reference or information will be appreciated.
0
votes
0answers
133 views

Remove indexing from SharePoint 2013 Document Library using PowerShell Script

I have a document library and indexing has been added to this library through site setting. In Indexing there is value in primary column and Secondary Column. Suppose that in Primary column there is ...
0
votes
0answers
29 views

Import Visio Workflow in SharePoint 2013 using powershell

I received a .vwi file, which is a Visio workflow and now I would like to add it to the SharePoint workflow of a site collection. So far I have found that it can only be imported using SharePoint ...
0
votes
1answer
210 views

Powershell - Publish Designer workflow on all sites

As a follow up to my previous question on editing a workflow; Activating a Sharepoint 2013 Workflow Feature I have been able to change the contents of the workflow and publish it, however the ...
0
votes
0answers
13 views

Syntax problem Powershell create list SharePoint

I have some syntax problem in my script, I have this error : http://puu.sh/jEpzO/aac536695f.png Here you have the code : http://puu.sh/jEpB7/bcd85b70df.png Can you help me? Thanks :)
0
votes
0answers
28 views

Powershell Error while creating specific Folder in Library!

I am trying to create nested folders in a library based on an input. Below is my code. This works for all other values except few. I am not getting what wrong i do. It works for values less than 50 ...
0
votes
0answers
26 views

How to migrate a wiki library using powershell?

I have a number of wiki libraries on a SharePoint 2013 On-Premise system I'd now like to move to SharePoint Online. I've found a number of cmdlet's relating to moving a document library - does the ...
0
votes
1answer
28 views

Add user in group with permission problem

In my site, I add user with powershell to a group. Set-SPUser -Identity $User -Web $siteCollUrl -Group $group The user appear in the groupe but when I do a "check permission" on the SharePoint ...
0
votes
1answer
25 views

How marge SpLogFile by colrelation in sharepoint online?

Merge-SPlogfile –Path "Path" –Correlation "id" I know that above command is the way of finding log file in on-premise environment. How can I do this in sharepoint online (office 365). I am getting ...
0
votes
0answers
55 views

Sharepoint 2010 Remote Blob Storage failure

I am currently trying to configure remote blob storage in the SharePoint environment. The SQL sever (2008 R2) and the SharePoint servers are running on the windows Server 2008 R2 enterprise edition. ...
0
votes
0answers
133 views

$list.RootFolder.Url empty

I get an empty url when I try to retrieve the list root folder url. I use these Powershell commands on a Sharepoint 2010 server. $web = Get-SPWeb -Identity "http://mywebsite" $list = $web.lists["My ...
0
votes
0answers
99 views

Powershell Added groups not showing in Site Permissions

I'm using Powershell to do the following: 1. Create Custom Permission levels 2. Create new SharePoint Groups based on these levels 3. Add AD Groups to the SharePoint groups The SharePoint groups are ...
0
votes
1answer
42 views

The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered

I encountered this error message everytime I open management shell, I'm local administrator and farm administrator, the account is in WSS_RESTRICTED_WPG_V4 group and I run the management shell as ...
0
votes
1answer
30 views

Updating the Quick launch node titles only using Power-Shell in SharePoint

I am trying to update the title of quick lunch navigation in my SharePoint sub sites. Since there are hundred of Sites, scripting sounds a better idea. I wrote a script but it is not updating the ...
0
votes
0answers
8 views

CSOM Powershell get the files of a specific folder in a document library [duplicate]

I am wanting to get the list of files that are in a specific folder in that document library using powershell CSOM Tried this but it didnt work saying it didnt recognise getfolder $folder = ...
0
votes
2answers
935 views

List files in a specific folder in a document library

I there anyway to output the files of a specific folder in a document library? Listing them will be like foreach $file in $folder.files { write-host $file.name } But how do I tell it to look ...
0
votes
0answers
21 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 ...
0
votes
0answers
101 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
64 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
36 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
0answers
380 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 ...
0
votes
0answers
113 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
19 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
37 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
318 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
153 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
1answer
85 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
56 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
32 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 ...
0
votes
0answers
247 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
147 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 ...
0
votes
0answers
59 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
108 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 ...
0
votes
1answer
105 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 ...
0
votes
0answers
173 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
0answers
45 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
40 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
119 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 ...
0
votes
1answer
69 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 ...
0
votes
1answer
631 views

Deleting and creating the Domain Group “Everyone” in Sharepoint 2013 using Powershell CSOM

With Powershell CSOM and SharePoint 2013, I am trying to reset the permission to the domain group "Everyone", with the name "c:0(.s|true". Therefore I want to delete and recreate it, so that all the ...