Logo Ajo Mathew
  • Home
  • About
  • Skills
  • Experiences
  • Education
  • Posts
  • Notes
  • Dark Theme
    Light Theme Dark Theme System Theme
Logo
  • Tags
  • ACI
  • Alert-Processing-Rules
  • ARM
  • Automation
  • Azure
  • Azure Container Groups
  • Azure Container Instances
  • Azure DevOps
  • Azure Network Service Tags
  • Azure-Monitor
  • Azurerm
  • Blob
  • CI
  • Copy Function
  • Customization
  • DevOps
  • DSC
  • Dual Boot
  • English
  • Function
  • Git
  • Linux
  • Logrotate
  • Monitoring
  • Multiple Resource Properties
  • Notion
  • NSG
  • Pipeline
  • Planned-Maintenance
  • POP
  • Powershell
  • PTE
  • Send-Mailmessage
  • Sendgrid
  • Smtp
  • SQL
  • Tar
  • Terraform
  • Timedatectl
  • Tips
  • UIEF
  • Variables
  • Vivaldi
  • Vscode
  • Windows
  • YAML
Hero Image
Uninstall Az Powershell Module forcefully and completely

I’m primarily using PowerShell to address Azure automation activities from running from local to Azure itself. The most painful task encountered is about upgrading PowerShell Az modules and making it work with VsCode. After many trial and error, this is the best method I could recommend to uninstall the PowerShell Az module. Get-installedmodule Az.*| foreach-object{Uninstall-Module -Name $_.Name -Verbose -AllVersions -force} If you encounter running the above code snippet from the no-Admin account, switch to the Admin account. Incase Az.Accounts module is adamant in getting uninstalled, open a cmd - As Administrator and run below command. This will rid your system of Az modules.

  • Azure
  • Powershell
Monday, June 8, 2020 | 2 minutes Read
Hero Image
SendGrid SMTP using Powershell and REST API

Sendgrid stopped accepting account username and password. I was using powershell cmdlet send-mailmessage to run some of auditing scripts from VM’s and it all broken due to this. Final solution with out much modification our script is done by setting username as apikey and password as APIKEYVALUE. Details of the same is available with SendGrid Support page Let me know if this helps you. You can reach me on twitter for any queries.

  • sendgrid
  • smtp
  • send-mailmessage
  • powershell
Friday, May 15, 2020 | 1 minute Read
Hero Image
Grant SQL Server account access to Lock Pages in Memory using PowerShell DSC.

Lock Pages in Memory is a setting that can be set on 64-bit operating systems that essentially tell Windows not to swap out SQL Server memory to disk. I was implementing SQL server hardening via PowerShell DSC and one of the requirement was to have Lock Pages In Memory enabled for SQL Service account. There was a powershell script created and available from blog post by keepingitgeek. I converted this to a DSC module for my use. The code snippet is added below.

  • SQL
  • PowerShell
  • DSC
Tuesday, March 7, 2017 | 1 minute Read
Navigation
  • About
  • Skills
  • Experiences
  • Education
Contact me:
  • ajomathiu@gmail.com
  • ajomathew
  • Ajo Mathew

Toha Theme Logo Toha
© 2026 Ajo Mathew.
Powered by Hugo Logo