Bulent's Blog

Personal blog on Microsoft Technologies

install OMS Log Analytics Agent and OMS Dependency Agent to all Windows VMs in the subscription using PowerShell

Save the following code as myscript.ps1 by replacing the ????? with the OMS workspaceid and OMS...

Author: Bulent Ozkir Date: 07/03/2017

Post data to OMS Log Analytics Data Collector API using PowerShell

Create the function to create and post the request Function Post-OMSData($customerId, $sharedKey,...

Author: Bulent Ozkir Date: 06/20/2017

The difference between [Switch] and[Bool] in Powershell function parameters

#switch parameter cls function MyAwesomeFunction1 { [CMDLetBinding()] param ( [string] $foo,...

Author: Bulent Ozkir Date: 06/20/2017

How to deploy OMS Log Analytics Agent and Dependency Agent using DSC

replace the ??????????? in the script Configuration MMAgent { $OIPackageLocalPath =...

Author: Bulent Ozkir Date: 06/15/2017

How to deploy OMS Log Analytics Agent and Dependency Agent to thousands of computers using PowerShell Workflow in parallel

workflow installOMS{ #fill in the computers.txt in temp folder as one computer per line with no...

Author: Bulent Ozkir Date: 06/01/2017

Create new user via Microsoft Graph using PowerShell

cls # Load Active Directory Authentication Library (ADAL) Assemblies $adal =...

Author: Bulent Ozkir Date: 04/09/2017

user management using the AzureAD powershell module

cls $cred = Get-Credential #Connect to your AzureAD tenant Connect-AzureAD -Credential $cred # Get a...

Author: Bulent Ozkir Date: 04/09/2017

Managing Azure AD using Graph API and ADAL inside PowerShell

replace ??????? before running the script cls # visit...

Author: Bulent Ozkir Date: 11/10/2016

All about Office 365 Pro Plus deployment and updates

I have consolidated the most essential information about Office 365 Pro Plus deployment and updates...

Author: Bulent Ozkir Date: 09/19/2016

Azure Resource Manager RBAC management practical tips

Please make sure that you have installed the latest Azure and Azure AD PowerShell libraries as I...

Author: Bulent Ozkir Date: 09/09/2016

Deploying your MFA Server On Premises that is integrated with ADFS server (Windows Server 2012 R2)

You can install MFA Server on ADFS server on premises. The installation steps are documented in...

Author: Bulent Ozkir Date: 08/18/2016

Export all NGS rules in ARM for all Subscriptions

You can associate different NSGs to a VM (or NIC, depending on the deployment model) and the subnet...

Author: Bulent Ozkir Date: 08/11/2016

how to resize your VNET Gateway from Basic to High Performance

Please note that when you create a VNET Gateway, the default Virtual Network Gateway SKU is Basic....

Author: Bulent Ozkir Date: 06/28/2016

how to export VM details in Azure Resource Manager (ARM)

  1. Run the following PowerShell script. $cred = Get-Credential (Login-AzureRmAccount -Credential...

Author: Bulent Ozkir Date: 06/14/2016

how to resize your OS disk of your Azure VM to maximum allowed size

  1. Run the following PowerShell. Modify the parameters accordingly. $cred = Get-Credential...

Author: Bulent Ozkir Date: 06/09/2016

AADConnect error: The management agent "xxx.com" failed on run profile "Delta Import" because the database or database log file is full.

On the AADConnect server's Windows event log, if you get an error similar to "The management agent...

Author: Bulent Ozkir Date: 06/01/2016

How can you move your running (not generalized) Linux VHD to Azure ARM in just a few steps?

  1. Prepare your standard Azure management client environment as explained in my previous blog. Keep...

Author: Bulent Ozkir Date: 05/26/2016

How can you move your generalized (sysprepped) Windows VHD to Azure ARM in just a few steps?

  1. Prepare your standard Azure management client environment as explained in my previous blog. Keep...

Author: Bulent Ozkir Date: 05/17/2016

Prepare standard management workstation that has all the PowerShell modules and other dependencies you may need

Try not to use your regular personal desktop for Azure or Office 365 management. Try to use...

Author: Bulent Ozkir Date: 05/16/2016

SPN registered incorrectly during ADFS setup when you use gMSA service account

On Windows 2012 R2, when you when you use group Managed Service Account (gMSA) service account, you...

Author: Bulent Ozkir Date: 05/14/2016

How can you enable auditing for AD FS?

  1. Click Start, point to Programs, point to Administrative Tools, and then click Local Security...

Author: Bulent Ozkir Date: 05/11/2016

Office 365 customers who have ADFS installed can do simple filtered MFA using ADFS claim rules

RECENT UPDATE:...

Author: Bulent Ozkir Date: 05/01/2016

Simple solution to collect applied Windows Updates List from Computers and Store them on any SQL Server Database Table

You can use the following simple solution to collect applied windows updates list from computers....

Author: Bulent Ozkir Date: 04/30/2016

PowerShell script to change PrimarySMTPAddress of Office 365 Distribution Group

run the PowerShell ISE as Administrator Import-Module Azure Set-ExecutionPolicy RemoteSigned...

Author: Bulent Ozkir Date: 04/06/2016

Azure AD Connect autosync and autoupgrade cmdlets

for enabling AutoSync... Set-ADSyncScheduler -SyncCycleEnabled $true for enabling AutoUpgrade......

Author: Bulent Ozkir Date: 03/23/2016

sysprep tips before uploading your OnPremise custom OS images to Azure as template

The following are my personal experiences with OnPremise sysprepped images for Azure custom image...

Author: Bulent Ozkir Date: 03/15/2016

Powershell error descriptions tip

If you do a “$error[0] | fl * -f” immediately after error, that would be more descriptive than that...

Author: Bulent Ozkir Date: 03/11/2016

Most significant perfmon counters for MS SQL server

Memory Available MBytes Memory Free System Page Table Entries Memory Pages/Sec Paging File %Usage...

Author: Bulent Ozkir Date: 11/03/2015

handling Persistent Reservation failures in Windows 2012 R2 and Windows 2012

Run Cluster Validation Wizard: https://technet.microsoft.com/library/jj134244#BKMK_RUN_TESTS If you...

Author: Bulent Ozkir Date: 04/22/2015

Windows Disk Storage Stack

Windows Disk Storage Stack Storage.pdf

Author: Bulent Ozkir Date: 04/10/2015

Azure concepts - Update Domain vs Fault Domain in Availability Sets - simply explained

In Windows Azure a rack of computers is indeed identified as a fault domain. And the allocation of a...

Author: Bulent Ozkir Date: 02/06/2015

PhysicalDisk/%idle time - should not be less than ~%60 PhysicalDisk/Avg. Disk sec/Read should not be...

Author: Bulent Ozkir Date: 02/14/2014

What if you suspect WMI is corrupted and running winmgmt salvagerepository or resetrepository is not sufficient on Windows 2012 and Windows 8

Run the following script in cmd.exe spawn using Run As Administrator privileges: @echo offsc config...

Author: Bulent Ozkir Date: 01/17/2014

Increase WMI Quota properties to maximum values

WMI related performance issues may arise due to extensive usage of WMI components. You can increase...

Author: Bulent Ozkir Date: 01/14/2014

We like to limit the size of the TokenAndPermUserStore. There are significant changes in SQL server...

Author: Bulent Ozkir Date: 01/09/2014

Please consider the following information if you are having memory related issues with...

Author: Bulent Ozkir Date: 11/27/2013

Modern apps over proxy authentication

Your Windows 8 app store Modern apps may not connect to their background services behind an...

Author: Bulent Ozkir Date: 10/30/2012

Great Info on Troubleshooting and Diagnosing Networking Issues

Great Tutorial on using Network Monitor –...

Author: Bulent Ozkir Date: 08/26/2012

How to convert Turkish characters to English characters in PowerShell

(Get-Culture).TextInfo.ToTitleCase("helloğüşiöçĞÜŞİÖÇthere")...

Author: Bulent Ozkir Date: 07/11/2012

I have needed to develop some powershell script to output SCOM business services (distributed...

Author: Bulent Ozkir Date: 05/30/2012

Analysis of SaaS and On Premise ICT solutions for SMEs in Turkey

This study is written to provide guidance for evaluation SaaS solutions and comparing it with on...

Author: Bulent Ozkir Date: 02/20/2012

Effective Meetings Code of Conduct

Fewer meetings on critical dates for most attendees. No laptops, no phone e-mail checks! No meetings...

Author: Bulent Ozkir Date: 11/17/2011

If you have already performed the emergency repair process and the computer still does not operate normally

If you have already performed the emergency repair process and the computer still does not operate...

Author: Bulent Ozkir Date: 09/22/2011

Get-AD Active-Directory powershell search and export script

This Script retrieves information from Active-Directory. It’s got a few Parameters and...

Author: Bulent Ozkir Date: 06/16/2011

Well-known security identifiers in Windows operating systems

A security identifier (SID) is a unique value of variable length that is used to identify a security...

Author: Bulent Ozkir Date: 05/23/2011

Synchronize Time in a workgroup environment or with a non-Windows time server

Use the following commands to synchronize time in a workgroup environment or with a non-Windows time...

Author: Bulent Ozkir Date: 05/20/2011

Prince2 Foundation exam readiness materials

  1. https://www.youtube.com/user/frankturley#g/u 2....

Author: Bulent Ozkir Date: 05/03/2011

KMS in a workgroup environment

First of all update all necessary fixes if your KMS host is running on Windows 2003 or Windows 2008....

Author: Bulent Ozkir Date: 01/26/2011

Is it Service Fulfillment Request, Standard Change, or Normal Change?

Change or request type Examples Service fulfillment requests are handled exclusively by the request...

Author: Bulent Ozkir Date: 06/22/2010

SOSMART criteria for risk and mission stataments

SOSMART criteria: Standalone - reads like a really good headline, no further reading or reference is...

Author: Bulent Ozkir Date: 01/18/2010

Next>