PowerShell Null Routing Function

This week, while troubleshooting a networking problem for a customer, I wanted to limit or block network connectivity to some remote endpoints from a test workstation.  To accomplish this, I created a quick PowerShell function to null route the traffic (send it to an invalid/null next hop). You can copy/paste this and save it as…


Get-NetConnectionProfile for Windows 7

As customers are still working with Windows 7 and PowerShell (PS) versions before 3.0, sometimes there are work a rounds needed. You can upgrade your PS version on Windows 7 to a newer version, but that’s not always an option for everyone. One of the newer cmdlets available in PS 3+ is the Get-NetConnectionProfile that…


Configuring a PowerShell DSC Web Pull Server to use SQL Database

Introduction Hi! Thank you for visiting this blog to find out more about how you can configure a PowerShell DSC Web Pull Server to use an SQL database instead of the “Devices.edb” solution we currently use. Since you made it his far I assume that you’re already familiar with PowerShell and PowerShell Desired State Configuration…


Host and run your PowerShell scripts in Azure

Few days ago, I was working with one of my customer. I advised him to host his O365 scripts in Azure instead using a local server. In this post, I would like to share why I recommended this to my customer and what solutions we’ve identified for hosting PowerShell script in Azure. Why in my…


How To Install the MSOnline PowerShell Module

Introduction In recent months, Microsoft has changed the distribution method for the MSOnline PowerShell Modules from the use of the .msi self-contained download to exclusively having it installed from the Online Gallery via the Install-Module cmdlets. Unfortunately, not every Windows-based operating system that you might be working from has the latest and greatest version of…


SharePoint Online で IE ドキュメント モードを 10 に変更するサンプル コード

以下のサイトに記載された IE のドキュメント モードを 10 に指定するコードが記載されております。 本投稿では、これを応用し SharePoint Online の全サイト コレクション (OneDrive for Business 個人用サイトを除く) を対象として設定を適用します。 タイトル : Display a classic SharePoint Online site in Internet Explorer 10 document mode アドレス : https://support.office.com/en-us/article/4b4572b7-9223-45ec-8497-557a643da12a 機械翻訳 : https://support.office.com/ja-jp/article/4b4572b7-9223-45ec-8497-557a643da12a   事前準備 下記の内容を実施済みのクライアント環境においては、事前準備の項目を再度実施する必要はございません。 1 : SharePoint Online 管理シェルのダウンロード サンプル スクリプトを実行するための実行環境として SharePoint Online 管理シェルをダウンロードします。 以下のリンクより最新版がダウンロード可能です。 タイトル : SharePoint Online Management Shell アドレス : https://www.microsoft.com/ja-JP/download/details.aspx?id=35588…


Connecting to Microsoft Graph with a Native App using PowerShell

Introduction Over the last few months, Microsoft has tightened security measures and has (or is at least starting to) deprecate the use of the well-known ClientID that many of use have grown accustom to using in our Microsoft Graph scripts. I had spent countless hours trying to figure out exactly how I can create my…


Update: Dynamics 365 Testing Tool

Earlier today, I was notified that the Dynamics 365 network URLs page was updated, so I updated my Dynamics test tool. But then, I thought, what else could I put in it? Never one to leave well enough alone, I started tinkering.  The result: Updated network tests for crmdynint.com Updated network tests for passport.net endpoints…


Update: Create-LabUsers Tool

Just when you thought it couldn’t get more awesome. It has. By popular request, I have added a few new features (and fixed an annoyance).  First, the bug fix: -Count 1 Yes, it’s true. If you ran the Create-LabUsers script with -Count 1 with the -InflateMailboxes parameter, you’d run into an issue because of how…


Windows PowerShell Profiles Processing Illustrated

Hello everyone! My name is Preston K. Parsard (Platforms PFE) here again this time for a procedural review of PowerShell profiles. Now I realize that this topic is already well documented and in fact, have included some great references at the end of this post, where you can find more information. What I can offer…