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.
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
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.
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.
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.
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.
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.
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.
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 […]
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.
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.
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 →
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.
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.
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
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.
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.
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
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.
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.
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 →
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...
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.
In This Article
Deploying an AKS Cluster
Deleting an AKS Cluster
Zooming In On a Few Terraform Resources
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”.
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.
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.
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.
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
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.
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
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.
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
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.
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.
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/
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.
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.
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.
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.
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.
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.
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.