Questions tagged [powershell]

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 local and remote Windows systems.[except from WikiPedia]

Filter by
Sorted by
Tagged with
0
votes
1answer
131 views

Trying to create list with ECT

I'm trying to create list from External content types with powershell. I'm trying to get the model, through this line : $Model = Get-SPBusinessDataCatalogMetadataObject -BdcObjectType Model -Name ...
0
votes
1answer
236 views

Site Provisioning in Hosted Environments

I am looking for a solution that would allow me to provision sites, in environments where I don't have server access (hosting, Office 365). My issue: I need to provide site collections or sites to my ...
0
votes
1answer
1k views

field type URL. how to prepare csv for this?

I am running a powershell to import csv into a list. There is one field "ProviderURL" in the list. In the csv I had http://www.contoso.com and it imported fine. Howerver, I would like it to be Contoso ...
0
votes
1answer
185 views

Find assembly version from a web part solution

Is there a way to find the assembly version of a web part solution in sharepoint (via powershell)? Thanks
0
votes
0answers
2k views

enable web analytics customized reports

I'm running SharePoint Server Standard 2010. I don't see a "Customize Report" button in the Analyze tab of the Site Collection Web Analytics report. When I go to PowerShell and run Get-SPFeature -...
0
votes
1answer
340 views

create a content type managed property via powershell

Regarding this blog post, its very easy to do visually. But for easy deployment on other environments I would like to do this in a powershell script. http://www.glynblogs.com/2011/01/create-a-content-...
0
votes
2answers
450 views

Change SocialTag Url?

I want to change the url of my solution from mycompany.no to mycompany.com. How can I preserve the Social Tags. SocialTag Url property is readonly it appears. :( Does there exist a powershell or ...
0
votes
1answer
708 views

Change a list item's “Manage Copies” destination URL programmatically

I'm trying to write a PowerShell script that goes through every item in a document library and updates the "Manage Copies" destination URL to a new location. Is there any way to achieve this ...
0
votes
1answer
676 views

Empty exception using powershell to add a masterpage

When i try to add a masterpage to a web application using the following code : $MasterPage = "C:\test.master" $MasterPageName = [System.IO.Path]::GetFileName($masterpage); $SpWebApp = Get-...
0
votes
2answers
4k views

getting Create Error when using Powershell

I am receiving this error on following line Exception calling "Create" with "4" argument(s): "Value cannot be null. Parameter name: parentFolder" At x:\Dev\PowerShell\MoveFiles2DocSet.ps1:29 ...
0
votes
1answer
1k views

Multiple Managed Metadata Service Instances

I am seeing multiple Managed Metadata Web Services in my farm and am not sure what to make of it. I was expecting to see one instance why are there others? Get-SPServiceInstance | ?{$_....
0
votes
5answers
15k views

Restore-SPSite failure due to insufficient Content Database Space

I hope someone can help me solve this weird problem I'm facing for 4 days. I'm trying to restore the backup of Sharepoint 2010 web application. I'm using Windows Powershell command : Restore-SPSite ...
0
votes
1answer
2k views

Powershell command for Excel Services?

Is there a powershell to restart the excel services? If yes, what is the syntax to restart the excel services.
0
votes
1answer
1k views

Export all subsites

I am looking for a quick way to export all sub-sites from a web application and exclude the root url, is there a quick way to accomplish this?
0
votes
2answers
73 views

SharePoint 2010 & Powershell

I want to learn Powershell with SharePoint 2010, please let me know if there are resources available on the Internet.
0
votes
2answers
24 views

Is there a way to get report on IRM enabled Libraries and lists?

I am not able to find right PowerShell or a way to get a report on IRM enabled libraries and lists. What I am looking for is to get list of Libraries and Lists that has been enabled with "IRM ...
0
votes
1answer
28 views

Powershell: Check if page has unpublished version?

How can I use PowerShell to check if the latest version of a publishing page has been published?
0
votes
1answer
33 views

Run PowerShell Script on a Mounted Drive to Copy Files

I have written a PowerShell script that copies files from one mapped drive to another. Script runs fine when I run through PowerShell or command prompt. It mounts the both drives first and then wait ...
0
votes
1answer
403 views

could not save the list changes to the server” in designer

I am trying to create custom new/edit forms in a SharePoint online site but it shows this error: Could not save the list changes to the server I have tried these solutions: Deleted website cache ...
0
votes
2answers
1k views

Get items modified in last 24 hours from Site collection

I would like to have the report of items modified in last 24 hours from site collection Could anyone suggest me the best approach to hang with it either by going with SPaudit or with ...
0
votes
2answers
2k views

SharePoint Online Remove List Permissions using PowerShell

I'm banging my head against a wall trying to get this final piece written for an automatic SharePoint Online site collection script. The final piece is creating a list within the site collection (...
0
votes
2answers
348 views

Upload files to Sharepoint using Powershell and FSRM

I am trying to upload a bunch of files to a SharePoint server. But I want to set the file-metadata before uploading so that it matches with SharePoint property and buckets it. Need help in setting ...
0
votes
1answer
244 views

Copy file from on site collection to another with powershell. Problem deleting local temp file

I'm trying to copy a file from one site collection to another. I download my file to my local server and then upload it to the target site. My problem is that in the last step, the temporary local ...
0
votes
1answer
341 views

How Can I Output Enterprise Features List To CSV?

I am trying to output to a CSV file the list of activate enterprise features in our sites with DisplayName, GUID and Scope as the content that is written to the CSV file. I have the following ...
0
votes
2answers
211 views

What is the path of a site collection relative to a subsite if they are named the same “http://root/site”

I've been moving subsites into their own site collections and am now in the process of removing the old subsites. I know I can go through the UI in "Site Actions" -> "Sites and workspaces" to remove ...
0
votes
1answer
2k views

Running script with powershell of Sharepoint Server without connecting to the Sharepoint Server

I have a folder in Sharepoint Server. In the folder, there is a script(.ps1 file), that I can run with powershell. It works fine with powershell, if I run it when I'm in Sharepoint Server. But I ...
0
votes
1answer
1k views

How to associate sharepoint 2013 designer workflow to content type for retention policy using powershell?

I am having a requirement to write a powershell script which should attache workflow to content type in sharepoint 2013. basically it is require to create a retention policy which should start a ...
0
votes
3answers
2k views

PowerShell System.Reflection.TargetInvocationException on Line 1 - Permissions?

I've adapted a PowerShell script from Harry Chen's "SharePoint Connoisseur" blog to solve the broken Navigation Up issue he describes. My code is slightly modified, but only to reduce the data ...
0
votes
1answer
477 views

sharepoint 2010 Remote Blob Storage , RemoteBlobStorageSettings is false

Im following this article for enable RBS on sharepoint 2010 i thinks its best article for that after a lot of search : http://www.simple-talk.com/content/print.aspx?article=1280 when I try the Step ...
0
votes
1answer
560 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 = ...
0
votes
2answers
931 views

PowerShell script to Create My Site Host Site Collection

I am trying to create My Site Host Site Collection through PowerShell scripts. I am able to create a new web application, set Self Service Site Creation Enabled property on it, Create a new Permission ...
-1
votes
2answers
961 views

PowerShell Script to Update SharePoint Pages library [closed]

I have yes/no type column with default value is "Yes in Pages library. using PowerShell script I have to change the column default value to No I have 10 pages exist in Pages library. Suggest some ...
-1
votes
1answer
41 views

MOSS 2016 (EE): PowerShell add column description not work!

Help! I need somebody, help! Not just anybody, Help! :'( if ((Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue) -eq $null) { Add-PSSnapin "Microsoft.SharePoint....
-1
votes
2answers
3k views

PowerShell script for changing the identity of application pools

PowerShell script for changing the identity of application pools of my sharepoint server's IIS server.Am having a lot of appln pools and sites. so i think, I can write a PowerShell script and change ...
-1
votes
1answer
1k 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
votes
1answer
528 views

How to add Full READ permissions and remove Full Control Permission on web application using powershell

How do I give a user "full read" permissions to a web application with PowerShell? The Script below assigns "full control" to a user on this web application with "full control" and "full read". $w =...
-1
votes
1answer
451 views

get user name and email using powershell script from a document library

1) i want to get the user email and send email , who uploaded the documents from 8 to 9 PM using power shell script. i want distinct users these users are domain users who uploaded documents.
-1
votes
2answers
54 views

powershell problems

I'm A share point intern who's just discovered power shell. I want to start using it right away however the problem is that I'm stuck with a windows 7 pc with power shell installed on it. So i cant ...
-1
votes
1answer
85 views

How to remotely add term sets in the central administration term store using C# or Powershell

I would like to add remotely term sets in the managed metada service using C# or Powershell. How can I do it ? Regards, Arioule
-1
votes
1answer
688 views

Error when upgrading service databases

So, I have recently run a load of CU's (July 2017) and now my Search crawl isn't working. Reviewing the error logs, it seems to be because my databases are now too far out lf date. Chexcking the ...
-1
votes
1answer
2k views

Add AD group to Sharepoint 2013 using powershell as the AD group domain and name is changed

Currently SP 2013 site has domain1\abc AD group but this has to be updated/add new group domain2\xyz using powershell for 500 site collections. will the identity claim be generated if the group is ...
-1
votes
1answer
695 views

Powershell PnP error converting Microsoft.SharePoint.Client.Web object

I am trying out Franck Cornu's O365StarterIntranet, from Patterns and Practices (PnP). I have updated to the latest PnP powershell Online, the latest SharePoint Online SDK. Most of the things work ...
-1
votes
1answer
72 views

how to prevent adding extra version when copying items between lists using Powershell

I am working on SharePoint server 2013, and I wrote the below script to copy items from one list to another list along with the original item versions. $web = get-spweb "http://server/Delivery/" ...
-1
votes
1answer
246 views

Change Composed Look on muliple Site Collections

I need to create 100+ site collections in SP2013. I have a PowerShell script and XML file to achieve this (and is working). However, marketing want to brand and change the look of the Team Sites - I'...
-1
votes
1answer
1k views

PowerShell Script - list of MySite (OneDrive) quota usage

I am looking for a PowerShell Script that can export a list of our SharePoint users with the information of used quota (Total Quota, Used, Free, ...in Megabytes). I have only found the scripts where ...
-1
votes
1answer
870 views

Can I write a powershell script for creating sharepoint 2013 wiki page in bulk? [duplicate]

I need to create a power shell script for creating wiki pages in bulk from a XML file. Please help. Thanks
-1
votes
2answers
3k views

“Sorry something went wrong with adding the app. Click to retry”

I am unable to remove the app, it is corrupted. Can any give example using PowerShell how to uninstall the app?
-1
votes
1answer
1k views

Get absolute url of a page layout on a Publishing page

We have migrated a site collection using a third party tool(the question is not related to third party tool) and observed that in the migrated site, "Pages" library pages point to an altogether ...
-2
votes
1answer
7k views

Get count of documents for sharepoint Site collection using powershell and export to a csv file

I have tried with below script but it is not working,please share the script,if you have any idea. [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") Start-SPAssignment ...
-2
votes
1answer
10k views

Recursively loop through all sites and their subsites using powershell? (SP 2010)

I have tried many things but I only get the list of all sites in the main site. function LoopThroughSites { Param ([string]$url) $web = get-SPWeb $url $count = $web.Site....