Mike Robbins avatar

My Solution to Iron Scripter 2019 Preparatory Challenge 1

6 hours ago | Mike Robbins

Anyone who has competed in the scripting games before knows that I’m always looking for a challenge when it comes to writing PowerShell code. While the scripting games haven’t been held in the last several years, they’ve somewhat been replaced by the Iron Scripter competition at the PowerShell + DevOps Global Summit and 2019 is shaping up to be no different. Think you’ve got skills? Bring them on! and Get-Involved.

Paolo Frigo avatar

How to sign a PowerShell script

10 hours ago | Paolo Frigo

As a DevOps engineer, I frequently come across talented developers that underestimate some security aspects of the deployments, for instance, just to name a couple:  integrity and authenticity of the code or artefacts that we deploy. Python and Powershell are powerful languages to develop quick and robust solutions are extremely popular between attackers, for this … Continue reading "How to

Adam Bertram avatar

Designing and Building a Pipeline in Trello

21 hours ago | Adam Bertram

When you think of a pipeline, what comes to mind? If you’re like most people, it’s probably oil and gas. Companies that extract these natural resources out of the ground need to transport them to refineries, production facilities and so on. A literal pipe needs to be in place to get the oil and gas […] The post Designing and Building a Pipeline in Trello appeared first on Adam the Automator - DevOps, Automation, PowerShell.

Dan Franciscus avatar

Editing files in a Windows PowerShell console with vim

yesterday | Dan Franciscus

One of things I like about using Linux is that I can quickly edit files in the shell with vi. Say what you will about the user experience of vi (yeah okay its clunky as hell and impossible to save/close) but it generally gets the job done. In the Windows console, there is no native+ Read More The post Editing files in a Windows PowerShell console with vim appeared first on WinSysBlog.

Mike Robbins avatar

Unexpected Results when Comparing Different Datatypes in PowerShell

2 days ago | Mike Robbins

Earlier this week, I saw a tweet from a fellow PowerShell community member who mentioned PowerShell was returning inaccurate results. The command shown in the tweet was similar to the one in the following example. Why would results be returned where “IsFramework” is true when the command is filtering them down to only the ones that are false? I knew exactly what the problem was because I’ve been bit by it more times than I care to remember.

Josh King avatar

RSAT as a Feature: I Thought I Was Going to Love It, Until I Saw It in Action

2 days ago | Josh King

I'm a little late to this particular party, but I only just had the 1809 update on my workstation today.

Nicholas Getchell avatar

Expiring Group Membership

3 days ago | Nicholas Getchell

As a systems administrator working with Active Directory your probably proficient in granting access to network resources. How good are you at removing permissions once the access is no longer needed? Probably not as good. Enter Expiring Group Membership in Active Directory. You can specify how long an object belongs in a group. Active Directory handles the removal for you. To use Expiring Group Memberships, make sure that the feature is enabled in your forest.

Prateek Singh avatar

PowerShell Influencer of the Week – Jeff Hicks

3 days ago | Prateek Singh

Introduction Hello Readers, welcome to the first post of a new series “PowerShell Influencer of the Week“, where I’ll Interview one PowerShell Influencer, Microsoft Awarded MVP or a PowerShell Community Contributor and... The post PowerShell Influencer of the Week – Jeff Hicks appeared first on Ridicurious.

Mateusz Czerniawski avatar

Remove RDS Server with a bit of Pester

4 days ago | Mateusz Czerniawski

Remove RDS server Simple task, simple solution. One of our Remote Desktop Services Hosts was no longer needed. It was running Windows 2012R2 and the team finally decided to move to 2016. Anyway - the time for decomission has come. I’ve decided to use this as an introduction lesson to Pester for our junior admin. I just :heart: using Pester in infra checks This is an overkill for such a simple task, but remember - intro lesson.

Tommy Maynard avatar

New Posts at PowerShell.org – January 2019

4 days ago | Tommy Maynard

As I’ve stated a couple times now at least, my newest writings happen over at PowerShell.org. It’s been great so far. My posts are definitely getting more exposure, and there’s more article comments, as well. All this to say, it’s forcing me to really know what I’m writing about, or to at least have an acceptable […]

Dan Franciscus avatar

Monitor file changes in Windows with PowerShell and pswatch

5 days ago | Dan Franciscus

Sometimes I have wanted to monitor a directory for any file changes and receive alerts of those changes, for instance, when trying to find where an application is saving a configuration file. One solution I have come across is the small PowerShell module pswatch, which José F. Romaniello created. How pswatch works Pswatch is actually fairly simple+ Read More The post Monitor file changes in Windows with PowerShell and pswatch appeared first on WinSysBlog.

Kieran Jacobsen avatar

Call for Speakers: 2019 Global Azure Bootcamp Melbourne

5 days ago | Kieran Jacobsen

The 7th Edition of the Global Azure Bootcamp - Melbourne, Australia. This year the bootcamp will be on Saturday 27th of April 2019.

Adam Bertram avatar

Being an Asshole Is Totally Underrated

6 days ago | Adam Bertram

Let me know which person you think in this conversation comes across as better or worse? Which person rubs you the wrong way? Let’s say you’re having a conversation and one person is really excited about a new project he’s completed or a task he’s done or just some kind of accomplishment. The other guy […] The post Being an Asshole Is Totally Underrated appeared first on Adam the Automator - DevOps, Automation, PowerShell.

Josh King avatar

Everything Is Better with Toast: Getting Build Notifications

7 days ago | Josh King

When you want to keep an eye on build results, but don't want to dedicate a screen to the web page, toast is the answer!

Stephen Owen avatar

Life after Write-Debug

8 days ago | Stephen Owen

Hey y’all.  I’ve been getting verrrry deep into the world of Asp.net Model View Controller and working on some big updates to ClientFaux, but I saw this tweet and it spoke to me: pic.twitter.com/S1RsEr9hLo — Orin Thomas (@orinthomas) January 20,… Continue reading →

Dan Franciscus avatar

Running PowerShell remotely as SYSTEM with Invoke-CommandAs

9 days ago | Dan Franciscus

One of the great features of PowerShell is the ability to run commands and scripts remotely on machines. I often find myself either entering an interactive session with Enter-PSSession or using Invoke-Command on multiple machines at once. I am an old PSExec user, and although I do not find much use for it anymore now that PowerShell can do+ Read More The post Running PowerShell remotely as SYSTEM with Invoke-CommandAs appeared first on WinSysBlog.

Mike Robbins avatar

What’s a PowerShell One-Liner & NOT a PowerShell One-Liner?

9 days ago | Mike Robbins

Lately, I’ve seen a few examples of commands that aren’t PowerShell one-liners being passed off as such by people in the PowerShell community who “should” know better. If I were interviewing someone who claimed to be a PowerShell expert with more than five years of experience, I would definitely ask these types of questions. Example 1 – The following command is a PowerShell one-liner? (True or False) Example 2 – The following command is a PowerShell one-liner? (True or False) A PowerShell one-liner is one continuous pipeline and not necessarily a command that’s on one physical line.

Paolo Frigo avatar

Application Deployment Troubleshooting with Powershell

9 days ago | Paolo Frigo

As a DevOps, most of my energies are constantly focused on doing or fixing things right from the start with the intention of creating a simple or at least straightforward processes.  But this is not an article on my endless war against technical debt and avoiding shortcuts whenever it’s possible. the more things change, the more they stay the same The values and … Continue reading "App

Przemyslaw Klys avatar

How to find different server types in Active Directory with PowerShell

10 days ago | Przemyslaw Klys

Working as a freelancer is a great thing if you can handle it. Each day, each week something new happens and a new problem shows up on my doorstep. It also means it's almost never boring at your job and you get to play with new stuff. But there's one drawback to this. You're often thrown at the problem, told to fix it but often that's about as much information as you get. It wasn't very different today.

Josh King avatar

How I Failed My Way to Success with Azure Pipelines - Part 1: Build

10 days ago | Josh King

Some people learn by writing. Some by watching videos. Apparently I learn by failing and head-desking.

Como mapear diretórios Azure Files com Powershell

10 days ago | Guido Oliveira

Olá, Hoje vamos ver como mapear compartilhamentos do Azure Files usando o powershell como substituto para o net use para mapear compartilhamentos remotos usando caminho UNC. […] O post Como mapear diretórios Azure Files com Powershell apareceu primeiro em Guido Oliveira.

Shane O'Neill avatar

Regex and SQL Server: A Poor Man’s Quick Formatter.

11 days ago | Shane O'Neill

I still value well formatted queries thought! Don't give me junk!

Bradley Wyatt avatar

PowerShell Function to Connect to All Office 365 Services With Support for MFA

11 days ago | Bradley Wyatt

I usually have to connect to Office 365 via PowerShell at least once per day. I had the following function stored in my PowerShell Profile:function Connect-O365 { $UserCredential = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri "https://ps.outlook.com/powershell/" -Credential $UserCredential -Authentication Basic -AllowRedirection Import-PSSession $Session Connect-MsolService -Credential $UserCredential }This allowed me to just open PowerShell and type Connect-O365 to connect to Office 365 instead of looking up the Session information and all of the cmdlets needed.

Andy Levy avatar

Tidier Powershell Scripts with Default Parameter Values

12 days ago | Andy Levy

I was recently working on a PowerShell script to set up some new databases for my users and found myself writing the same things over and over again. By the 4th Invoke-DbaQuery, I found myself thinking “this repetitive typing kind of sucks.” Then I remembered Chrissy LeMaire’s segment in the first PSPowerHour where she talked … Continue reading "Tidier Powershell Scripts with Default Parameter Values"The post Tidier Powershell Scripts with Default Parameter Values appeared first on FLX SQL with Andy Levy.

Maximilian Lærum avatar

How to create a PSCustomObject

12 days ago | Maximilian Lærum

As I wrote in a previous blog post, everything in PowerShell are objects. There is also a custom PowerShell object with the type PSCustomObject. This post is just gonna be a quick and dirty “How to”. If you want to read the docs, you’ll find them here. Wraps an object providing alternate views of the … Continue reading How to create a PSCustomObject →

Jerome Bezet-Torres avatar

My new Book GPO in Windows Server 2019

12 days ago | Jerome Bezet-Torres

After several months of work, my new book will be published by the @EditionsENI. It will be available early March 2019 : GPO, Planning, deployment, and troubleshooting, with Windows Server 2019. Summary This Group Policy book is for administrators and systems engineers and provides immersion in the universe of Group...

Mateusz Czerniawski avatar

User Security Context Accumulated Too Many Security IDs

12 days ago | Mateusz Czerniawski

The Story Today I got an interesting call from my colleague. One of our users after changing his password was unable to log in to office.com, use Outlook or Skype. What’s so interesting about it? It was one of those enter the rabbit hole questions :smile: . After some initial shooting at the trouble that also included changing password - the output was the same. User was unable to log in to any office.

Mathieu Buisson avatar

Deploying a production-ready Azure Kubernetes (AKS) cluster with PSAksDeployment

12 days ago | Mathieu Buisson

In This Article Introducing PSAksDeployment Installing PSAksDeployment Deploying an AKS Cluster Deleting an AKS Cluster Zooming In On a Few Terraform Resources Introducing PSAksDeployment Azure Kubernetes Service (AKS) makes provisioning Kubernetes clusters very easy. Unfortunately, the examples we can find out there, be it in official documentation or blog posts, are more “Hello World!” than “real world”.

Przemyslaw Klys avatar

A short story on PowerShell HashTables that beat me hard

13 days ago | Przemyslaw Klys

Today's story happened a few days back to me, and I think many people may not even know about some object behaviors in PowerShell (just like me). I know some of you may think this is basic PowerShell knowledge but even thou I've written a lot of different PowerShell modules I kind of skipped basics. That means I often find myself struggling with something that's obvious if you've done your due diligence before starting to work with the code.

Kieran Jacobsen avatar

Using the OpenSSH client included in Windows 10 (1809) as your Git’s SSH client

13 days ago | Kieran Jacobsen

Microsoft has included an OpenSSH client with Windows 10 since the Fall Creators Release (1709). This client has been installed by default since the April 2018 Update (1803). The biggest benefit for the average user is that they can now use a supported OpenSSH client, without downloading and installing any other software.

Mateusz Czerniawski avatar

Remove AAD Group Membership from disabled on-premises AD users

13 days ago | Mateusz Czerniawski

The Problem So here’s the problem - when an employee leaves our company we cannot delete his/her user account. Instead we disable it. This is mainly cause of how Jira works. During off-boarding process we get the group the user belongs to, store that within our process, remove all membership (except of Jira primary group), disable the user account, move it to proper OU and change the password to a random one.

Jeff Hicks avatar

Creating More Git PowerShell Tools

15 days ago | Jeff Hicks

I have received a tremendous amount of interest in my recent articles on creating a git sizing tool using PowerShell. Many of you were savvy enough to realize the journey I was describing was just as important as the destination. With that in mind, I decided to revisit another PowerShell and git-related project that I […] Check out my PowerShell Essentials page https://jdhitsolutions.com/blo

Prateek Singh avatar

Retry Commands in PowerShell

15 days ago | Prateek Singh

Introduction Often it is required to retry some logic in the program, for example, when making flaky network or web request which is not reliable. Things may fail a few... The post Retry Commands in PowerShell appeared first on Ridicurious.

Mike Kanakos avatar

Printer mgmt via Group Policy

16 days ago | Mike Kanakos

Printer management is one of those tasks that I think NO ONE looks forward to. I'd like to show how to configure printer deployment via GPO.

Shane O'Neill avatar

Adding a Timestamp to a dbachecks Data Source

16 days ago | Shane O'Neill

Words: 656 Time to read: ~ 4 minutes Adrenaline is a funny thing. As a Database Administrator, I try and aim for three personality traits; Stoic under pressure, reliability, and confidentiality. But last Tuesday, the 22nd January, I gave my first ever presentation up in Belfast and that first trait was tested! Keeping a History … Continue reading "Adding a Timestamp to a dbachecks Data 

Mike Robbins avatar

Return a List of the Private Functions in a PowerShell Module

16 days ago | Mike Robbins

In my quest to build a PowerShell module to convert a non-monolithic PowerShell module from development to a monolithic one for production, I wanted some way to validate that all of the functions were indeed migrated. While I’m pointing my tools to the public and private sub-folders within my development module and that should get them all, how can you be sure especially when a module may not have any private functions? Determining the publicly accessible functions for a module is easy enough with either Get-Command: Or Get-Module: But what about getting a list of private functions? I tweeted this out and received a couple of responses for things I’d already tried, but that didn’t work consistently.

Jeff Hicks avatar

Getting Git Size with PowerShell Retooled

17 days ago | Jeff Hicks

A few days ago I wrote about my experiences in designing a PowerShell function that reports on the size of the hidden .git folder. In that version of the function I decided to include a parameter that would permit the user to get the size pre-formatted as either KB, MB or GB. I thought long […] Check out my PowerShell Essentials page https://jdhitsolutions.com/blog/essential-powershell-resou

Aplicando uma imagem a um VHD usando Powershell

17 days ago | Guido Oliveira

Olá, Hoje vamos ver como applicar uma imagem de sistema operacional a um VHD, sem que haja a necessidade instalar usando o método tradicional no Hyper-V. […] O post Aplicando uma imagem a um VHD usando Powershell apareceu primeiro em Guido Oliveira.

Przemyslaw Klys avatar

Office 365 – Report containing User Information and Mailbox Usage

18 days ago | Przemyslaw Klys

Working with Office 365 is my bread and butter in the last few months. I'm a System Architect and I am dropped in multiple projects, both new and old, to fix certain aspect and get out before anyone sees me. One of the common tasks I get is to provide some data about users stored in Office 365. The post Office 365 – Report containing User Information and Mailbox Usage appeared first on Evotec.

Luc Fullenwarth avatar

How to validate a new file parameter in PowerShell

18 days ago | Luc Fullenwarth

It's a known best practice to validate all parameters of a function or a script. But how would you validate a file parameter for a new file?

Jeff Hicks avatar

Keeping Git in Check with PowerShell

19 days ago | Jeff Hicks

Last week on Twitter I saw a discussion about a git related problem. The short version of the story is that the person was running out of disk space and didn’t understand why. Turns out this person has several development projects using git. All of the change tracking and other related activities are stored in […] Check out my PowerShell Essentials page https://jdhitsolutions.com/blog/

Adam Bertram avatar

Get-EventLog: Querying Windows Event Logs with PowerShell

21 days ago | Adam Bertram

Every Windows system administrator is probably familiar with the Windows Event Log. Using this cmdlet in PowerShell allows sysadmins to parse lots of events at once across many computers at once. It frees sysadmins up from clicking around in the Event Viewer trying to figure out just the right filter to use and to determine […] The post Get-EventLog: Querying Windows Event Logs with PowerShell appeared first on Adam the Automator - DevOps, Automation, PowerShell.

Adam Bertram avatar

I Feel Stupid Doing This but It Helps When Presenting

21 days ago | Adam Bertram

In this post,  I want to talk about using enthusiasm in your communication and presenting. For the backstory of why I chose this topic today, I am the founder of TechSnips. We are a small start-up that brings in different IT professionals, developers, technology professionals of all kinds and then coaches, mentors, and trains people […] The post I Feel Stupid Doing This but It Helps When Presenting appeared first on Adam the Automator - DevOps, Automation, PowerShell.

Mateusz Czerniawski avatar

Get AzureAD license details for all users

22 days ago | Mateusz Czerniawski

The Story So here’s the story. Some time ago we wanted to use the possibility to manage AzureAD licenses through Active Directory groups. We do have AzureAD P1 (which is necessary) to do this. The process is dead simple: Create proper AD groups on-premises Wait for sync (or orce it) to Azure AD Go to proper blade (in Azure AD) and assign groups to products Add people to on-premises Active Directory Get some coffee Here’s the thing though - till now we were using our on-premises automation to assign licenses to people directly using MSOL commands.

Przemyslaw Klys avatar

Active Directory – How to track down why and where the user account was locked out

23 days ago | Przemyslaw Klys

I've been working with Windows Events for a while now. One of the things I did to help me diagnose problems and reporting on Windows Events was to write PSEventViewer to help to parse the logs and write PSWinReporting to help monitor (with use of PSEventViewer) Domain Controllers for events that happen across the domain. It's handy and I, get those excellent daily reports of what happened while I was gone.

Alex Neihaus avatar

A function to set up AWS PowerShell credentials

23 days ago | Alex Neihaus

Specify AWS credentials and region in PowerShell more easily

Nicholas Getchell avatar

Logging PowerShell Scripts

24 days ago | Nicholas Getchell

Nobody likes figuring out what went wrong on in a process by debugging your script. Logging saves time and helps surface errors in your scripts. The Logging PowerShell Scripts post was written by Nicholas M. Getchell appeared first on PowerShell.Getchell.Org.

Przemyslaw Klys avatar

How to change your own expired password when you can’t login to RDP

24 days ago | Przemyslaw Klys

I must admit that it was a bit embarrassing to see my Administrator password expired when I tried to log in as Domain Admin to Domain Controller. I got this little message saying This user account's password has expired. The password must change in order to logon. Please update the password or contact your system administrator or technical support. The post How to change your own expired password when you can’t login to RDP appeared first on Evotec.

Pawel Jarosz avatar

“Mailbox size exceeds target quota 2.3 GB” when moving the mailbox between databases / servers.

24 days ago | Pawel Jarosz

When receiving such error please check you quota on mailboxdatabase: Set it up ou to your needs, in my case this database will be hosted only to export mailboxes to PST files: Advertisements

Criando as regras do Azure API Manager no Network Security Group com Powershell

25 days ago | Guido Oliveira

Olá, Recentemente precisei configurar um API Gateway no Azure e nesse deployment, o serviço era provisionado em uma Virtual Network. Para que os serviços comuniquem corretamente, […] O post Criando as regras do Azure API Manager no Network Security Group com Powershell apareceu primeiro em Guido Oliveira.