How To: Deploy Multiple Virtual Machines Using Bicep, PowerShell and a little XML.
Following on from my previous post I thought it would be interesting to look at how I can use Bicep to deploy multiple Virtual Machines.
Read articleExpert insights on Microsoft Azure, Cloud Architecture, and Enterprise Technology
11 articles
Following on from my previous post I thought it would be interesting to look at how I can use Bicep to deploy multiple Virtual Machines.
Read articleAs I think I mentioned in another post I have recently re-joined IBM and part of my normal onboarding activity would be to get access to the corporate Azure subscription for testing etc. However, I have not got around to doing this as yet. This has not been a problem up to now as I… Continue Reading →
Read articleI came across the below error when trying to create a new web application via PowerShell against a 2013 farm. “Specified value is not supported for the domainname parameter error when creating web apps” This appears to have been caused by the machine loosing connectivity to the domain so even though my server was domain… Continue Reading →
Read articleBy default deleting a site collection in Office 365 just moves the site collection to the recycle bin for 30 days, but there is not an option in the admin screen to remove it from the recycle bin. This is fine, unless you want to use the same url for a new site collection. In… Continue Reading →
Read articleThe following PowerShell can be used to create a publishing page and assign a page layout. #Get SPWeb $spWeb = Get-SPWeb(“Site URL”); #Get Publishing Web $pubWeb = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($spWeb) #Finds the appropriate page layout $pl = $pubWeb.GetAvailablePageLayouts() | Where { $_.Name -eq “Page Layout Name”} $pages = $pubWeb.GetPublishingPages(); #Create the page; $page = $pages.Add(“Page Name”, $pl)… Continue Reading →
Read articleThe following PowerShell can be used to update a terms sets submission policy to open or closed. #Connect to Central Admin $Session = new-object Microsoft.SharePoint.Taxonomy.TaxonomySession(“Central Admin URL”) #Connect to Managed Metadata Service $Store = $Session.TermStores[“Managed Metadata Service Name”] #Get the group $Group = $Store.Groups[“Group Name”]; #Get the Term Set $TermSet = $Group.TermSets[“Term Set Name”]; #Update… Continue Reading →
Read articleI had just completed a PowerShell scripted deployment of a SharePoint farm and was just performing the final checks when I noticed the following error in the crawl logs. “The filtering process has been terminated” This turned out that because in the PowerShell script I had specified that the SharePoint installation location should be different to… Continue Reading →
Read articleThe following script will iterate through all the user profiles and return the account name. Add-PSSnapin microsoft.sharepoint.powershell; #Load SharePoint User Profile assemblies [System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint”) [System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.Office.Server.UserProfiles”) #Get Context $serviceContext = Get-SPServiceContext -Site “[Site Name]” #Instantiate User Profile Manager $userProfileConfigManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($serviceContext); #Get All User Profiles $profiles = $userProfileConfigManager.GetEnumerator(); #Loop through all user profiles and display account name… Continue Reading →
Read articleTo update or create a shared property for a term in your term store run the following script. #Load SharePoint PowerShell Snap In Add-PSSnapin Microsoft.SharePoint.PowerShell; #Get Taxonomy Session $session = new-object Microsoft.SharePoint.Taxonomy.TaxonomySession(Central Admin URL); #Get Managed Metadata Service $Store = $Session.TermStores[“Managed Metadata Service”]; #Get Term Group $Group = $Store.Groups[“Group Name”]; #Get Term Set $TermSet =… Continue Reading →
Read articleThis script has already been produced in a previous post, but for convenience I thought I would replicate it here. #Get the Site Collection $SiteCollection = Get-SPSite http://%5BSharePoint Site] #Change to you site URL #Get the Term Store ID $TaxSession = Get-SPTaxonomySession -Site $SiteCollection $TermStore = $TaxSession.TermStores[“Managed Metadata Service”] #Change to your service name $TermStore.Id… Continue Reading →
Read articleI was recently asked to provide some code which could query the managed metadata service of a SharePoint 2010 implementation and extract the terms for use in a separate web site. This turned out to be a bit more complicated than I initially thought as the architecture called for use of the SharePoint Web Services,… Continue Reading →
Read article