David Hall avatar

How to use Chocolatey to Install Software remotely on multiple computers.

13 hours ago | David Hall

In a previous video I used just PowerShell to install software remotely. In this video I show you how to use the Chocolatey packager manager to install packages (software) from the chocolatey repository on multiple computers simultaneously using a single function. Be careful what packages you’re downloading, there are some security features built-in the chocolatey […]

Bradley Wyatt avatar

Office 365 Anti-Impersonation Email Banner with PowerShell & Azure for Large Enterprises – No More Mailbox Limit

yesterday | Bradley Wyatt

The Problem E-mail spoofing/impersonation is a huge threat to many companies today. A very common approach by scammers is to send your users an email using the display name of a real person within your company.  Many users will glance at the email and see the display name and be none the wiser. A popular defense against this is to tag all external emails with a banner, letting the user know that the email came from an external source.

Dirk Bremen avatar

Convert remote time to local time with ArgumentCompleter and ArgumentTransformation attributes

2 days ago | Dirk Bremen

This article was inspired and is based on the concepts developed by Tobias Weltner (I learned a lot PowerShell concepts from Tobias already) in his excellent series of posts on PowerShell attributes. I would like to share a function that I have created to be able to convert a date and time from a remote … Continue reading Convert remote time to local time with ArgumentCompleter and ArgumentT

Tommy Maynard avatar

A Book: PowerShell to C# and Back

2 days ago | Tommy Maynard

This article began on PowerShell.org. If you’re just starting this post now, then head over there to read the introduction. Otherwise, continue reading below. A Book: PowerShell to C# and Back A part of me has always wanted to be a developer, and perhaps that’s why as a systems administrator, I gravitated toward PowerShell, and […] The post A Book: PowerShell to C# and Back appeared first on tommymaynard.

Prateek Singh avatar

PowerShell to C# and Back – Introduction to Classes

2 days ago | Prateek Singh

Introduction to C# and C# Classes The purpose of this blog post is to bridge the learning and concept gap between PowerShell and C# classses, to jump start you from... The post PowerShell to C# and Back – Introduction to Classes appeared first on Ridicurious.

Kelvin Tegelaar avatar

Documenting with PowerShell: Breaches using the HIBP API

3 days ago | Kelvin Tegelaar

So I was thinking of this idea for a bit. My sales team got approached by a product that gives you information about what breaches you are in. There were a couple of issues we had with this product. The first part is that 90% of its data comes from the public “Have I been […] The post Documenting with PowerShell: Breaches using the HIBP API appeared first on CyberDrain.

Paolo Frigo avatar

Powershell – Serial vs Parallel Processing

4 days ago | Paolo Frigo

Whenever I look for improving the performances of a script or code there is sometimes an option for parallelising the processing/execution of some of the workflows. It generally means adding complexity and is not always the case that it will make necessary the whole process so much faster, but for long-running ones made of independent … Continue reading "Powershell – Serial vs Parallel

Matthew Dowst avatar

PowerShell Weekly – June 26, 2020

5 days ago | Matthew Dowst

Here is your weekly round up of what is happening in the world of PowerShell. Do you have a suggestion for this post? Do you know something that should be included? Let me know in the comments below, or on twitter.

Kelvin Tegelaar avatar

Monitoring with PowerShell: Monitoring Shodan results (in-depth)

5 days ago | Kelvin Tegelaar

Sometime ago I made a blog about monitoring your environments by using PowerShell and the Shodan API. This blog was well received but I felt like it could use a lot of improvements. The data returned wasn’t all that useful for some, and sometimes you want to exclude specific ports in case of an actual […] The post Monitoring with PowerShell: Monitoring Shodan results (in-depth) appeared first on CyberDrain.

Dave Carroll avatar

Building a PowerShell Command Inventory Solution - Part Deux

7 days ago | Dave Carroll

Introduction It’s been ten days since I published an article on my initial solution for the IronScripter challenge Building a PowerShell Command Inventory. That solution relied on regular expressions, most commonly called regex. The article included a primer on regex mechanics and how to use regex in PowerShell. However, the regex for each code type that I wanted to discover produced some false positives.

Jeremy Murrah avatar

Displaying JSON in a Markdown Table

7 days ago | Jeremy Murrah

This will be a quick article, and hopefully useful to some folks. I came up with this while trying to find a way to self-document some data from a REST API, and thought it could be useful for other folks as well. In my specific case, I’m working with the awx credential type data, but this method should work for any json list data that you want to display cleanly. So let’s just dive right in. Here is a sample of the data I retrieved from the REST API endpoint.

Jeff Hicks avatar

Formatting PowerShell TimeSpans

7 days ago | Jeff Hicks

I often will figure out how to do something and later struggle to remember how to do it a months later. Rather than trying to remember what piece of code I wrote,  why not write about. Assuming I can remember! Anyway, here’s today’s “PSRemembery”. I often  use code like this, and I expect many of...

Adam Bertram avatar

How to Send Emails Using Amazon Simple Email Service (SES)

7 days ago | Adam Bertram

Learn how to send email using Amazon SES in step by step tutorial.

Adam Bertram avatar

Getting Started with hMailServer: Installation and Configuration

8 days ago | Adam Bertram

Learn how to get started sending email and managing HMailServer in this step-by-step tutorial!

Kelvin Tegelaar avatar

Documenting with PowerShell: Documenting DHCP server settings

9 days ago | Kelvin Tegelaar

This script was requested by a friend of mine. She had trouble keeping her IP address management under control. A lot of changes on super and subscopes within networks caused her to lose oversight and she was wondering if there wasn’t a clean and automated way of generating documentation for this. But before we dive […] The post Documenting with PowerShell: Documenting DHCP server settings appeared first on CyberDrain.

New-InboxRule -MessageTypeMatches

9 days ago

A coworker asked for an Outlook rule that deleted all meeting responses. This walkthrough works if you’re sitting in front of Outlook, but there has to be a way to do it with Exchange Online PowerShell (EXOPS), right? New-InboxRule -Mailbox '[email protected]' -Name 'Delete meeting responses' -MessageTypeMatches CalendaringResponse -DeleteMessage:$true -StopProcessingRules:$true Just a quick writeup, because I was surprised I couldn’t find this while Googling.

Josh King avatar

Fun with Azure Key Vault Part 2: Integration with Azure Functions

11 days ago | Josh King

Now that we have our credentials stored in an Azure Key Vault, how do we go about using them in other Azure services?

Przemyslaw Klys avatar

Getting file metadata with PowerShell similar to what Windows Explorer provides

11 days ago | Przemyslaw Klys

I'm working on a new feature for one of my modules that requires me to know what kind of files I am working with. It's quite easy in PowerShell, and without a lot of code, you can reasonably quickly get necessary information about data stored on your desktop or anywhere else for that matter. The post Getting file metadata with PowerShell similar to what Windows Explorer provides appeared first on Evotec.

Darwin Sanoy avatar

Live Coding Conversion of GitHub Action Super-Linter to GitLab CI

11 days ago | Darwin Sanoy

In the most recent Mission Impossible Live Coding event, Jefferson and I convert the GitHub Action Super-Linter to run in GitLab CI. This is a summary of lessons learned and pointers to the results.

Jeff Hicks avatar

An Expanded PowerShell Scripting Inventory Tool

12 days ago | Jeff Hicks

The other day I shared my code that I worked up to solve an Iron Scripter PowerShell challenge. One of the shortcomings was that I didn’t address a challenge to include a property that would indicate what file was using a given command. I also felt I could do better with performance in Windows PowerShell...

Matthew Dowst avatar

PowerShell Weekly – June 19, 2020

12 days ago | Matthew Dowst

Here is your weekly round up of what is happening in the world of PowerShell. Do you have a suggestion for this post? Do you know something that should be included? Let me know in the comments below, or on twitter.

Kelvin Tegelaar avatar

Monitoring with PowerShell: Monitoring Azure AD Devices and users age.

12 days ago | Kelvin Tegelaar

So we’re managing more and more cloud only clients. This is fantastic because you don’t have to worry about all the old worries like keeping a server online and updated. Another cool thing is that it becomes a lot easier to manage devices and endpoints. The thing is, even with Azure AD you still have […] The post Monitoring with PowerShell: Monitoring Azure AD Devices and users age.

Sergey Vasin avatar

PlasterTemplates – a PowerShell module, containing templates for use with Plaster

14 days ago | Sergey Vasin

Plaster allows developers to scaffold file and folder structure for a new PowerShell module. Install To install the PlasterTemplates module use the following command. Help To get help use the following command. Templates PowerShellModule – create a new PowerShell module… Continue reading →

Sergey Vasin avatar

PlasterTemplates — модуль PowerShell, содержащий шаблоны для использования с Plaster

14 days ago | Sergey Vasin

Plaster позволяет разработчикам создать структуру файлов и папок для нового модуля PowerShell. Инсталляция Для установки модуля PlasterTemplates используйте следующую команду. Справочная информация Для получения справочной информации используйте следующую команду. Шаблоны PowerShellModule — создание нового модуля PowerShell с поддержкой Visual Sudio… Читать далее →

Tommy Maynard avatar

Prestaging Modules for PowerShell, Windows PowerShell

15 days ago | Tommy Maynard

This article began on PowerShell.org. If you’re just starting this post now, then head over there to read the introduction. Otherwise, continue reading below. Prestaging Modules for PowerShell, Windows PowerShell This got me thinking. How would one write the code to do the conditional logic here? While it wasn’t my project, I couldn’t help myself […] The post Prestaging Modules for PowerShell, Windows PowerShell appeared first on tommymaynard.

Jerome Bezet-Torres avatar

Mahapps 2.0 with single child windows

15 days ago | Jerome Bezet-Torres

Today we will focus on a library Mahapps to create single child windows on your WPF application. You have the choice to manage this Child windows with XAML only or with Powershell code. With the First Child it’s an auto-close Windows or your can use the key ESC to close,...

Jeff Hicks avatar

Building a PowerShell Inventory

15 days ago | Jeff Hicks

A few weeks ago, a new Iron Scripter PowerShell scripting challenge was issued. For this challenge we were asked to write some PowerShell code that we could use to inventory our PowerShell script library.  Here’s how I approached the problem, which by no means is the only way. Lines of Code The first part of...

Sergey Vasin avatar

PowerShell command history

15 days ago | Sergey Vasin

PowerShell keeps the history of executed commands. PowerShell itself keeps them in memory. In addition to this, the PSReadline module saves them in a file on the hard drive. that allows us to go back to command entered not only… Continue reading →

Sergey Vasin avatar

История команд в PowerShell

15 days ago | Sergey Vasin

PowerShell сохраняет историю выполненных команд. Сам по себе PowerShell сохраняет введенные команды в оперативной памяти. Модуль PSReadline дополнительно сохраняет их в файле на жестком диске, что позволяет нам возвращаться к командам, введенным не только в текущей сессии, но и к… Читать далее →

Kelvin Tegelaar avatar

Monitoring with PowerShell: Monitoring Active Directory Health

16 days ago | Kelvin Tegelaar

Some time ago I wrote a blog about monitoring Active Directory replication. A couple of days ago a friend in Slack asked me if I have anything for monitoring the entire general health of a domain controller, and not just replication. So I researched some options, I found this blog by Adam, which was 90% […] The post Monitoring with PowerShell: Monitoring Active Directory Health appeared first on CyberDrain.

Dave Carroll avatar

Building a PowerShell Command Inventory Solution

17 days ago | Dave Carroll

Introduction The latest IronScripter challenge, Building a PowerShell Command Inventory, helps us to understand our library of PowerShell code. It is also a good way to introduce regular expressions, most commonly called regex. Regex and PowerShell Before we tackle the challenge, let’s briefly discuss regex and how you can use (or probably already have used) regex in PowerShell. What is Regex Regex is a pattern used to match text.

Matthew Dowst avatar

PowerShell Weekly – June 12, 2020

19 days ago | Matthew Dowst

Here is your weekly round up of what is happening in the world of PowerShell. Do you have a suggestion for this post? Do you know something that should be included? Let me know in the comments below, or on twitter.

Kelvin Tegelaar avatar

Automating with PowerShell: Using the new Autotask REST API

19 days ago | Kelvin Tegelaar

So I’m a bit later than normal with blogging, that’s mostly because I was working on this project a little longer than usual. Autotask recently released update 2020.2 and this update includes a new REST API. This is super cool, because the old API was a SOAP api and terribly inconvenient to actively use. To […] The post Automating with PowerShell: Using the new Autotask REST API appeared first on CyberDrain.

Adam Bertram avatar

How To Set Up Azure Active Directory Connect For Your Office 365 Tenancy

20 days ago | Adam Bertram

Here's how to use Azure AD Connect to link Azure Active Directory and Office 365 in a step-by-step walkthrough!

Tommy Maynard avatar

Applying an Automation Mindset to Household Tasks

21 days ago | Tommy Maynard

This article began on PowerShell.org. If you’re just starting this post now, then head over there to read the introduction. Otherwise, continue reading below. Applying an Automation Mindset to Household Tasks I’m not one of those people. You know the ones: Every weekend it’s another house project. Sure I can do some things, but I’ve […] The post Applying an Automation Mindset to Household Tasks appeared first on tommymaynard.

Jeff Hicks avatar

Solving the PowerShell Object Age Challenge – Part 2

21 days ago | Jeff Hicks

The other day I shared part of my solution to an Iron Scripter challenge to write a generic function to report on the age of an object. The idea being that you could pipe any type of object to the function and get a result. And because I can’t help myself, I went a bit...

Shane O'Neill avatar

T-SQL Tuesday #127 – Non SQL Tips and Tricks

22 days ago | Shane O'Neill

Words: 412 Time to read: ~ 2 minutes. T-SQL Tuesday time! This month we have Kenneth Fisher ( blog | twitter ) as the host and he’s asking us for our non-SQL related tips and tricks. Short… I will confess to only starting this post late. So my tips and tricks will not be well … Continue reading "T-SQL Tuesday #127 – Non SQL Tips and Tricks"

Jeff Hicks avatar

Solving the PowerShell Object Age Challenge – Part 1

22 days ago | Jeff Hicks

A few weeks ago, the Iron Scripter site posted an interesting challenge about writing a generic function to get the age of objects. Many things that we deal with in PowerShell have an “age” such as files, processes or even AD groups and users. I think this is an especially useful exercise because it forces...

Cláudio Silva avatar

TSQL Tuesday #127 – Non SQL Tips and Tricks – Windows

22 days ago | Cláudio Silva

This month’s (#127) T-SQL Tuesday is brought by Kenneth Fisher (B | T) and he asked about Non SQL Tips and tricks. As a Windows user I know there are lots of shortcuts and small hacks, that I love, which make my life much easier! Here is my small contribution: Windows tips & tricks and … Continue reading TSQL Tuesday #127 – Non SQL Tips and Tricks – Windows

Adam Bertram avatar

How to Create a Static Website Using Jekyll and Publish to GitHub Pages for Free

22 days ago | Adam Bertram

Learn, step-by-step, how to setup a free static website using Jekyll and GitHub Pages in this informative walkthrough.

Sergey Vasin avatar

ForEach-Object and its scriptblocks

22 days ago | Sergey Vasin

ForEach-Object is used for performing specified actions on every element of an array. This array can be specified as a value of the -InputObject parameter, but in the majority of cases it is received from the pipeline. We can use… Continue reading →

Sergey Vasin avatar

ForEach-Object и его скриптблоки

22 days ago | Sergey Vasin

Командлет ForEach-Object предназначен для выполнения указанных нами действий с каждым из элементов массива. Этот массив может быть указан в качестве значения параметра -InputObject, однако в подавляющем большинстве случаев элементы передаются командлету ему по конвейеру. Нужно сказать, что при помощи командлета… Читать далее →

Guido Oliveira avatar

Adicionando feriados no Outlook diretamente de um website pelo Powershell

23 days ago | Guido Oliveira

Olá Pessoal, Recentemente me mudei para o Canadá, e ainda não estou familiarizado com os feriados do país. Meus colegas de trabalho me indicaram um site […] O post Adicionando feriados no Outlook diretamente de um website pelo Powershell apareceu primeiro em Guido Oliveira.

Kelvin Tegelaar avatar

Documenting with PowerShell: Documenting Microsoft Teams

24 days ago | Kelvin Tegelaar

I was thinking of creating an automated teams mapping tool, which runs when a user logs on to a new machine to automatically sync all the Teams sites required and joined. I mostly wanted to do this because the current implementation of the registry/GPO method can take up to 8 hours. During the creation of […] The post Documenting with PowerShell: Documenting Microsoft Teams appeared first on CyberDrain.

Matthew Dowst avatar

PowerShell Weekly – June 5, 2020

26 days ago | Matthew Dowst

Here is your weekly round up of what is happening in the world of PowerShell. Do you have a suggestion for this post? Do you know something that should be included? Let me know in the comments below, or on twitter.

Matthew Dowst avatar

Parse Email Address

27 days ago | Matthew Dowst

You can use this snippet to parse an email address and extract the different components of it. (Tip. It works for UPNs too) New-Object "System.Net.Mail.MailAddress" -ArgumentList $emailAddress

Cláudio Silva avatar

Backup your SQL instances configurations to GIT with dbatools – Part 2 – Add parallelism

27 days ago | Cláudio Silva

We have seen how we can export and save the results to a folder and commit them to a GIT repository on my last blog post Backup your SQL instances configurations to GIT with dbatools – Part 1. At the end of that post, I have mentioned that I would write about how we can … Continue reading Backup your SQL instances configurations to GIT with dbatools – Part 2 – Add parallelis

Kelvin Tegelaar avatar

Automating with PowerShell: an Azure DynDNS replacement.

28 days ago | Kelvin Tegelaar

We’ve been using DynDNS Managed DNS for a long time. We use Managed DNS to offer dynamically updating DNS records for clients with either on-site services, or where we believe that dynamic updating of records is needed. Oracle has bought DynDNS somewhere in 2019 and decided to slowly start killing off the DynDNS Managed DNS […] The post Automating with PowerShell: an Azure DynDNS replacement.

Przemyslaw Klys avatar

Using Win32_UserAccount WMI filter in PowerShell/Group Policies and what to avoid

one month ago | Przemyslaw Klys

Some months ago, I created PowerShell Script to create local administrative users on workstations - Create a local user or administrator account in Windows using PowerShell. It's a bit overcomplicated, but the goal was it should work for Windows 7 and up, and that means supporting PowerShell 2.0. As part of that exercise, I've been using Win32_UserAccount WMI based query to find local users and manage them to an extent.

Cláudio Silva avatar

Backup your SQL instances configurations to GIT with dbatools – Part 1

one month ago | Cláudio Silva

Today I want to share how I'm keeping a copy of instances' configurations using dbatools. Chrissy LeMaire (B | T) wrote about it before on the Simplifying disaster recovery with dbatools blog post. In this post, I will add one step and save the output on a GIT repository. Pre-requirements You need a GIT repository … Continue reading Backup your SQL instances configurations to GIT with d