Skip to content

Riyaz's Innovative Solutions Blog

Your one stop consultant for Digital Workplace

  • About

Tag: service

Register Managed Accounts

April 14, 2015 ~ msmriyaz
$account = New-Object System.Management.Automation.PSCredential "READYLAB\sp2013_c2wts", ` (ConvertTo-SecureString "M0dewh1z" –AsPlainText –Force) $managedAccount = New-SPManagedAccount $account

Display Service Applications along with app-pool names and user accounts used for them.

April 14, 2015April 14, 2015 ~ msmriyaz

image

 

Get-SPServiceApplication | Select Name, @{Name="SPAppPoolName"; Expression={$_.ApplicationPool.Name}}, @{Name="IISAppPoolName"; Expression={$_.ApplicationPool.Id}}, @{Name="ProcessAccountName"; Expression={$_.ApplicationPool.ProcessAccountName}}

By a minor tweak to the command – Get-SPWebApplication, you could use this for web application as well. though the process account name is not available.

Starting / Stopping User Profile Service (User Profile Synchronization Service stuck in stopping state in SharePoint 2013 farm)

November 26, 2014November 26, 2014 ~ msmriyaz

Fixing a state where the user profile service complains that it is starting or stopping

image

 

Get-SPServiceInstance | Select-Object TypeName, ID

image

To stop this , type the GUID of User Profile Synchronization Service

Stop-SPServiceInstance -Identity 53016725-d75a-43f6-9c7a-1e50b4502faf

IISRESET on the front end servers.

If the above does not work:

$service = $(Get-SPServiceInstance | where {$_.TypeName -match "User Profile Synchronization Service" } | where {$_.Server -match "613836-SEARCH1"})
$service.Unprovision()

Note: to find the un-provisioning ones:

Get-SPServiceInstance | where {$_.Status -eq "Unprovisioning"} | Select-Object TypeName, ID

TypeName                                Id
——–                                —
User Profile Synchronization Service    53016725-d75a-43f6-9c7a-1e50b4502faf
User Profile Service                    2e077c84-d260-47b0-9941-1faaff90bfb3
User Profile Synchronization Service    e055ff40-cc23-4ec8-bce0-793057ca0a63
User Profile Service                    14f74b42-a4a7-4cb1-9eb8-93ac90a317bd

Delete orphaned SharePoint Service Application Pool

November 26, 2014 ~ msmriyaz

Get-SPServiceApplicationPool | select id, name

 

image

Remove-SPServiceApplicationPool -Identity "UserProfileServiceApplicationPool"

PowerShell : Setting Managed Metadata Service Connection Properties

January 17, 2013 ~ msmriyaz ~ Leave a comment

Select the settings for this Managed Metadata Service Connection.

[x] This service application is the default storage location for Keywords.

[x] This service application is the default storage location for column specific term sets.

[x] Consumes content types from the Content Type Gallery at http://sp2010riyaz:9090/.

[x] Push-down Content Type Publishing updates from the Content Type Gallery to sub-sites and lists using the content type.

# Get Metadata service application proxy

$metadataserviceapplicationname = "Managed Metadata Service"

$metadataserviceapplicationproxy = get-spmetadataserviceapplicationproxy $metadataserviceapplicationname

# This service application is the default storage location for Keywords.

$metadataserviceapplicationproxy.Properties["IsDefaultKeywordTaxonomy"] = $true

# This service application is the default storage location for column specific term sets.

$metadataserviceapplicationproxy.Properties["IsDefaultSiteCollectionTaxonomy"] = $true

# Consumes content types from the Content Type Gallery

$metadataserviceapplicationproxy.Properties["IsNPContentTypeSyndicationEnabled"] = $false

# Push-down Content Type Publishing updates from the Content Type Gallery

# to sub-sites and lists using the content type.

$metadataserviceapplicationproxy.Properties["IsContentTypePushdownEnabled"] = $true

$metadataserviceapplicationproxy.Update()

Service Application Properties:

Content Type hub

http://sp2010riyaz:9090/

[x] Report syndication import errors from Site Collections using this service application.

Set-SPMetadataServiceApplication -Identity "Managed Metadata Service" -HubUri "http://sitename" -SyndicationErrorReportEnabled

Recent Posts

  • NVM is a life saver when you want to work with multiple version of node.js
  • Online Unicode characters Reference
  • Innovative Enablement of UX Drives Adoption
  • The IT as a Utility
  • Creating and Configuring Resource Mailboxes

Author Grid

Top Clicks

  • nodejs.org/en/download/re…

myTweets

  • A scam text message from JB HIFI. #scam #jbhifi #textmessage @JBHiFi https://t.co/5neqI8D5EA 2 weeks ago
  • Do not install the #Mono framework dependent application on new #Apple #Macbook Air M1 Chip. it crashes Safari and… twitter.com/i/web/status/1… 2 weeks ago
  • Spending the day at Nelson Beach youtu.be/FtzaXU9cGn8 4 weeks ago
  • China will expand trials of its #digital yuan Friday evening with a feature letting individuals send #money to each… twitter.com/i/web/status/1… 1 month ago
  • Australia seems high too - The top tier income tax in rival cities Japan’s 45%. Hong Kong has a 17%, while Singapor… twitter.com/i/web/status/1… 1 month ago
Follow @msmriyaz
Follow Riyaz's Innovative Solutions Blog on WordPress.com

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 100 other followers

myRSS

  • RSS - Posts
  • RSS - Comments

myTags

2010 account Add administration application Azure Branding bulk Cloud collection configure configuring content create Custom Customization data view web part Date debug Development Document e-mail email enable environment Error feature FILE Hotfix information install invoke library List Manage Master page migration Navantis Office 365 Outbound Page path Permission Picture policy PowerShell provisioning PS Reference script Server service SharePoint SharePoint 2010 SharePoint Designer site site collection SMTP Solution template test tfs Tool Update user id utility v4.master versioning View Virtual Visual Studio Visual Studio 2010 web wsp xslt
Website Powered by WordPress.com.