• /r/powershell
  • Setting Variables In My Powershell Profiles

    So based on some recommendations in my thread here, https://www.reddit.com/r/PowerShell/comments/5vsdh4/exchange_online_powershell_using_multifactor/ I have started working in VSCODE since it supports to MFA for exchange online/Azure AD Online. One of the limitations i have found is that unlike ISE each new file is isolated inside itself and all modules ( Azure AD, Office 365) need to be […]

  • /r/visualbasic
  • message box

    this is my code and it works Public Class frmLoto Inherits System.Windows.Forms.Form Dim random As Random Private Sub frmLoto_Load(sender As Object, e As EventArgs) Handles MyBase.Load End Sub Private Sub picLogo_Click(sender As Object, e As EventArgs) Handles picLogo.Click End Sub Private Sub cmdRoule1_Click(sender As Object, e As EventArgs) Handles cmdRoule1.Click Dim cmdRoule1 As Integer Dim […]

  • /r/powershell
  • Circular Nested AD Groups

    I was given a request to provide a function for our staff to run that can dump group memberships out to a file. Easy enough, except after having done this a while, I started thinking about edge cases, and the one I’m concerned about is circular nested groups. I run this script periodically to confirm […]

  • /r/powershell
  • This always struck me as something between “I learned coding on older languages and won’t change” and “I’m to lazy to do this a better way”…

    $i = 1 for ($i ; $i -le $variable.Count ; $i++) { Do-Something } I recall having to do this in VBScript and Perl, but PowerShell is Object Oriented and I’ve never needed to do this. Just about every time I’m swiping bits of code from somewhere on the web, and find a variation of […]