Author: csharp

Design A Simple and Reusable Word Document Template Using PScribo Part 1

In this post I describe creating a simplified PowerShell script for creating a customizable subject matter document template using the PScribo module from the PowerShell Gallery. Goals: Reduce the amount of typing required to produce the document outline, cover, common text, etc. Provide functionality over and above use of a static Word document or template. […]

Use PowerShell to save o365 email Attachments and delete the attachment from the message but don’t delete the message itself.

In this blog I describe creating a PowerShell Function to save email attachments to a local folder while keeping the mail message itself in your mailbox. Problem Statement: Like most of us I receive a lot of email every day. Some important, some not. Many that have attachments. I want to automate saving my email […]

Experiment with PowerShell and ServiceNow using ServiceNow free Developer Instance

Problem Statement: If the company you work for doesn’t use ServiceNow, or perhaps it does but you are unable to get the needed privilege’s to access it using the SNOW REST API. What to do? Solution: The ServiceNow Developer program. Through this program you are given full access to a ServiceNow instance at no cost. […]

Using Azure Role-Based Access Control for individual Key Vault Secrets

In this blog I describe my experience experimenting with the Azure Key Vault service RBAC support for implementing access control on individual Secrets. Problem Statement: Today Key Vault does not provide fine grained access control for individual secrets. The access control is at the Key Vault level. All users that have read access to the […]

Generating The CMDB True Up Report

Required PowerShell Modules: ImportExcel: Douglas Finke has created an amazing module for creating Excel workbooks, even when Excel is not installed on the system you run the script from. This is a must have for your pragmatic PowerShell tool box. I use it all the time. I’ve linked to it’s page on the PowerShell gallery. […]

Merge CMDB Data with AD Data

Required PowerShell Modules: ImportExcel: Douglas Finke has created an amazing module for creating Excel workbooks, even when Excel is not installed on the system you run the script from. This is a must have for your pragmatic PowerShell tool box. I use it all the time. I’ve linked to it’s page on the PowerShell gallery. […]

Gather AD Data For CMDB True Up

Required PowerShell Modules: ActiveDirectory: This module is installed when you install the Remote Server Administration Tools (RSAT). As of Windows 10 RSAT is installed as a optional feature. How you go about selecting computer objects from AD for inclusion in your CMDB true up activity is dependent on what your AD architecture is and what […]

Gathering Nutanix VM Inventory

The next step for performing a true-up of the ServiceNow server CMDB is to identify a source of truth for deployed servers. This could be VMware or some other virtualization platform, or maybe physical servers. In my environment I’m dealing with multiple Nutanix clusters, some foundation as Nutanix AHV and some with VMware installed. Required […]