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

PowerShell script for Site map

In this thread they have a script that does what I need. However when I put in my intranet site location for SharePoint I get an error saying it cannot find the object. Is the reason why the script ...
0
votes
0answers
8 views

Activate Globally Deployed Master Page

I tried to deploy a solution to Sharepoint 2013, consisting with only master page. However, while I can activate it with GUI just fine, I cannot find a way to activate it using powershell. ...
0
votes
0answers
18 views

How to delete a non-responsive query component from search topology using PowerShell?

How to delete a stuck and not responding query component from a search topology in SharePoint 2010? This query component worked fine before but it is not responding because the web front end server ...
0
votes
1answer
25 views

Import-SPWeb Into Host Named Site Collection

I have made a backup of a SharePoint Site using Export-SPWeb. I have also added a new Host Named Site Collection and I would like to Import the Site into this newly created Host Named Site Collection. ...
0
votes
1answer
23 views

Move subsite programmatically

I have to move a subsite in a site collection to a new site in the root level. I want to achieve this through powershell. The "Content and Structure" page located at /_layouts/15/sitemanager.aspx ...
0
votes
0answers
10 views

Installing Install-SharePointPnPPowerShell.ps1 - PnP-Powershell responsive package

I'm trying to install the Install-SharePointPnPPowerShell.ps1 but i'm stuck with the options listed. I want to use the PNP-Poweshell responsive package. I typed in " SharePoint Online" and enter but ...
0
votes
0answers
13 views

Get .app path after publishing SharePoint hosted app

How can I get the path of the new .app that's created on publish? I want to use it in a post-build event (powershell). Obviously the path pops up after publishing so I know where it is, just can't ...
0
votes
0answers
11 views

Register-SPWorkflowService : The remote server returned an error: (404) Not Found

My environment consists of two servers, which are as follows: SharePoint 2013, installed on Windows 2008 R2 Workflow Manager 1.0 (version 2.0.20922.0), installed on Windows 2012 R2. This box does ...
0
votes
1answer
16 views

Import-SPWeb command not working

Trying to import one subsite from one site to other exported the site successfully using Export-SPWeb –Identity http://sitename -Path E:\backups\site.cmp but when trying to import using the below ...
0
votes
0answers
21 views

Load SQL and SharePoint in PowerShell script

I need to create one PowerShell in which i am using SQL and SharePoint both. In my development environment it works fine because there is single server for Content DB server and WFE server. But in ...
0
votes
0answers
17 views

Powershell script to automate, attaching workflow with association form data

I have a custom workflow with custom association form and my requirement is to attach the existing custom workflow to any of the newly created site and provide the values to the association ...
0
votes
1answer
13 views

PowerShell SharePoint Online CSOM Delete Versions

How do I delete all versions from a file except for the last 10?
3
votes
0answers
28 views

Thesaurus in SharePoint

In a SharePoint 2013 on-prem environment, I am trying to set up thesaurus. I am doing this for a Norwegian site. I can successfully import the .csv thesaurus file, but I am not satisfied with the ...
0
votes
1answer
23 views

But how can I check and wait with PowerShell if provisioning of the SiteCollection is complete

I have used CSOM and PowerShell to create a SiteCollection in o365. $tenant.CreateSite($properties) $ctx.ExecuteQuery() But how can I check and wait if provisioning of the SiteCollection is ...
0
votes
1answer
31 views

Migrating Team Site from OnPrem to SPO

I've been trying to get whole site migrated from OnPrem environment to SPO, using following instructions: https://technet.microsoft.com/en-us/library/mt210445.aspx#PrepContentPackage OR ...
0
votes
1answer
15 views

How To Access Individual Rows from an Import-CSV Object? [closed]

I need to split a large file upload into many parallel processes and want to use a single CSV file as input. Is it possible to access blocks of rows from an import-csv object, something like this: ...
0
votes
1answer
32 views

How do you delete a persistent column/field for a library with SharePoint Online?

One of my users added a column/field named Active. She was not aware that it would be flagged a persistent column/field in SharePoint. Now when she adds huge swaths of documents to this library she ...
3
votes
2answers
110 views

Move or copy a O365 SharePoint subsite

How do you move or copy a O365 SharePoint subsite and all of its children subsites in one site collection to another site collection? I have looked at using PowerShell but it does not seem possible ...
0
votes
3answers
33 views

How do I update CreatedBy field of List Items based on criteria?

I need to update the CreatedBy field of a number of list items based on the criteria of Title and another user defined field. If I could run some powershell similar to the following it would be great. ...
0
votes
0answers
20 views

Associated owner group is always null

I am using PowerShell to create site collections, and add users by code. I add users as visitors, contributors and as owners. In my powershell code I can get both the Visitors and Contributors group, ...
0
votes
0answers
12 views

Alerts Changed via Powershell do not show updates in SubEdit.aspx

I'm having a weird issue when trying to update user alerts via Powershell. I am able to update the alerts, and getting properties on the alerts as well as practical testing shows that the alert ...
0
votes
0answers
23 views

How to use List.Rootfolder.Files.Add to add Check-In Comment?

I am bulk loading 288K files to a DoclIb on SharePoint Online using OfficeDevPnP.Powershell.V16 and need to add a Check-In Comment programmatically. Currently I first upload the file, then call ...
1
vote
1answer
27 views

Move-SPUser - only changing upa but not mysite url with new id

SharePoint 2010: Move-SPUser works however in SP 2010 it does not change the mysite url to reflect user's new id. for example, mysite.fu.bar/sites/oldid so it should be mysite.fu.bar/sites/newid. The ...
1
vote
1answer
19 views

Getting error on PSConfig - SharePoint 2013

I am trying to run this command PsConfig -cmd secureresources in the Windows PowerShell ISE. But I am getting following errors: "Psconfig: The term 'Psconfig' is not recognized as the name of a ...
0
votes
1answer
29 views

How to add a content type field to a SPList using PowerShell

This the scenario: I have created a new LookupField (Content Type) called MyLookupField which derives from SPFieldLookup as shown below: public class MyLookupField : SPFieldLookup { ... } Here's ...
0
votes
0answers
13 views

How do I get a document set into a Powershell array instead of a SPListItem

I'm writing some powershell to supplement a 3rd party application. I'm trying to get a group of specific document sets into an array. the problem is the array is being populated as SPListItems, not ...
0
votes
1answer
27 views

PowerShell/CSOM - SPFeature definition is blank

I'm using this PowerShell/CSOM script to return a the GUIDs of the features on my SharePoint site. It works as expected, however I would like to get the name of the feature as well. Here is the ...
0
votes
1answer
17 views

how to restore a subsite after being deleted via powershell

I deleted a subsite by mistake using PowerShell but now I can't find it in Recycle Bin of the site collection. I used Get-DeletedSite, but I don't see the subsite there. Anyone has got any idea how ...
0
votes
1answer
30 views

Is there a way, with CSOM/JSOM/REST, to find all the managed property names for a list or content type?

I'm writing a PS script to update them to be searchable and to add aliases, and the task is taking a while. I need to find the managed properties that exist without manually searching for them or ...
0
votes
0answers
25 views

Cannot delete item that “does not exist”

I can see the item in the browser and I can find and return the item in powershell, but when I try to delete the item, I get "Item does not exist. The page you selected contains an item that does not ...
0
votes
1answer
23 views

CAML to get all checked out docs

I ran the following powershell however, it only list 20 items and in reality I have about 50 items for the site I am running for. I am the farm and site admin. I see 50 files when I go to the library ...
1
vote
3answers
34 views

Powershell script to get users who has edit access

I need to get a PowerShell script to get all the users and their email address who have edit access. It would be good if we can filter it to have only one selection only as there are only users who ...
0
votes
2answers
18 views

power shell scritpt to back up a site collection with no content

Can you please let me know if we can backup a site collection with out data using poweshell. I know how to do with data, but i dont want with out content, Any help is greatly appreciated
0
votes
2answers
43 views

Timeout in Import-SPMetadataWebServicePartitionData method - Powershell

We are having an issue with importing managed-metadata from our live environment into the test environment (Sharepoint 2010 Standard). We are using this code to import the managed-metadata: ...
0
votes
0answers
15 views

SharePoint Powershell rekove site-permissions

Based on a .csv with all the students, i am creating a subsite for each schoolclass and a document library for each student. I am breaking the inheritance for the sites and libraries, but the Admin ...
0
votes
0answers
27 views

SPO Management Shell: ConvertTo-SPOMigrationTargetedPackage

I've been having some problems with the SharePoint Online Management Shell that I hope someone here can help me out with, as I quite frankly think the error documentation is scarce, to say the least. ...
0
votes
1answer
26 views

Powershell Date Parsing for Sharepoint Set-SPOListItem Update

I am trying to parse a CSV file in Powershell for a bulk file and metadata upload to SharePoint Online and am failing on the date fields. The incoming date format is '2007/12/24', the expected SPO ...
1
vote
0answers
24 views

CSOM PowerShell - $folder -PropertyName “HasUniqueRoleAssignments”

I'm trying to use the Load-CSOMProperties.ps1 made by Gary Lapointe to report me if a folder "HasUniqueRoleAssignments". This is working fine for webs and lists but it doesn't seem to work for ...
0
votes
2answers
21 views

get-spmanagedaccount how to get the samaccountname and not sid

When I do following i get sid. How do i get the account name (domain\svc-search) etc. foreach($ma in get-spmanagedaccount) { write-host $ma }
1
vote
2answers
94 views

SharePoint Online CSOM PowerShell Script to create folders and add permissions

I am rather new to this place but quite few previous posts helped me out a great deal while creating some PowerShell scripts. I have been trying to create a script that will create a couple of folders ...
0
votes
1answer
22 views

changing service accounts password - powershell way

I have about 10 service accounts for SharePoint 2013. Is there a good PowerShell script that I can use to change the password for all of these accounts? I have seen this ...
0
votes
0answers
22 views

Powershell Script to find URL's on content pages, lists and libraries that point to a specific url in SharePoint 2010

I'm trying to search through SharePoint 2010 to find links that point to a broken URL using PowerShell. Is there an easier way?
1
vote
1answer
76 views

Client Side PowerShell script to add a managed metadata column in 0365

Somehow I am not able to add a managed metadata column using client side PowerShell script. Here is the code I am using: #Specify tenant admin and site URL $User = "-" $Password = "-" $SiteURL = "-" ...
1
vote
4answers
33 views

How to set master page on team sites?

I am trying to set a custom master page on SP 2013 team site (on-prem). All the samples I can find involves the publishing feature, so I am turning here for tips on how set custom master page for a ...
3
votes
1answer
27 views

Updating a UserCustomAction ScriptSrc

I'm trying to update a UserCustomAction that is set on a web. I am trying to update the ScriptSrc url of the action to include a query string parameter, ?rev=1, but it does not seem to be taking. ...
0
votes
0answers
33 views

Sharepoint 2013, access Most Popular Items in Library via Powershell

I'm creating a script to get some of the statistics SharePoint 2013 offers in a single file. The problem I'm facing is that I'm not able to get the most popular items for my document libraries. My ...
-1
votes
1answer
44 views

Powershell command to get all the users in domains

Is there any command or script to get all the users belonging to any domains in SharePoint 2010. Any help is appreciated.
1
vote
1answer
51 views

Remove sandbox solution from SharePoint online

I am working with Custom Ribbon Item development in SharePoint Online, i have created a custom sandbox solution and deployed on my SharePoint Online site. Once i activated the solution my site has ...
0
votes
0answers
28 views

How to deactivate webparts using powershell script

I want to deactivate forum and note board web part form my SharePoint site using powershall script. Any help please ? Thanks in advance :)
1
vote
0answers
30 views

Powershell Access user liste for SharePoint online

I would like to have a SharePoint online report for all users groups site, sub sites,library,items. For example: a user : Tood , i would like to know all the groups that he belongs to,all permission ...