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.
TThe other day I shared my simple PowerShell prompt function that displayed a few pieces of potentially useful information in a color coded box. Today I have a slight variation that also contains a few improvements. One of the things that I was torn with in my previous version was the prompt itself. I like […]
Check out my PowerShell Essentials page https://jdhitsolutions.com/blog/essential-
My wonderful friend André Kamman wrote a fantastic blog post this week SQL Server Container Instances via Cloudshell about how he uses containers in Azure to test code against different versions of SQL Server. It reminded me that I do something very similar to test dbachecks code changes. I thought this might make a good […]
This year is turning out to be all things cross-platform for me. Continuing this line of discussion I have something fun and simple today. A PowerShell prompt function that will work cross-platform and provide some meaningful information in what I think is a elegant manner. You may not need the function, but you might want […]
Check out my PowerShell Essentials page https://jdhitsolutions.co
I thought that RDMan, aka Remote Desktop Connection Manager, fitted perfectly in “A BLAST FROM THE PAST” category of software used back in the day by every System Engineer working on Windows Systems. I was wrong. Believe it or not, it is still strong today! When you need to manage multiple servers/workstation remotely via RDP(Remote Desktop Protocol) it’s … Continue reading
Olá, Hoje vamos ver como instalar o editor de texto multi plataforma da Microsoft, o Visual Studio Code e como configurar a extensão de powershell nele […]
O post Instalando o Visual Studio Code e configurando a extensão de Powershell apareceu primeiro em Guido Oliveira.
Word: 376 Time to read: ~ 2 minutes Update 17-Jan-2019: Turns out my first SQL Saturday in Ireland was up in Dublin, thanks Bartosz Ratajczyk for reminding me! Belfast SQL Server User Group If you’re on twitter, and you should just for #sqlhelp, then you may have seen this tweet from the Belfast SQL Server … Continue reading "First Time Speaker"
Introduction As a Windows administrator with expertise in PowerShell, I felt left out of the DevOps scene. Even though Microsoft has come of age lately with their DevOps tooling, the major DevOps tools are still Linux-based and require learning a new language to be proficient with the tools. Discovering ScriptRunner has changed that as us […]
The post ScriptRunner: Bringing PowerShell to DevOps appeared first on Adam the Automator - DevOps, Automation, PowerShell.
As many of you know, this year I’ve made the jump to PowerShell Core as my “daily driver”. A major driving factor was to discover the limitations. There are certainly plenty of advantages as we move to a cross-platform world. But the PowerShell Core is based .NET Core which does not include everything we are […]
Check out my PowerShell Essentials page https://jdhitsolutions.
Chances are if you are managing servers in an organization, you have also had a lot of experience managing SSL certificates. Practically any web server should be communicating over HTTPS to clients if you want to make it secure, which means you have to deploy an SSL certificate to the server itself. While installing an+ Read More
The post Deploying SSL Certificates In Windows With Puppet appeared first on WinSysBlog.
Olá, Sempre que precisava fazer algum teste pra validar se um servidor ou serviço remoto esta “escutando” em uma porta especifica, me recomendavam o Telnet, que […]
O post Testando a Conectividade de Servidores Remotos com Powershell apareceu primeiro em Guido Oliveira.
NOTE: This blog article has been sponsored by Pulseway. So you’ve got an awesome PowerShell script that is going to save you loads of time. You’ve hit Save in your editor and you pat yourself on the back. This script is meant to run against multiple servers so you sit down to make it happen […]
The post How To Execute Custom PowerShell Scripts Against A Group Of Systems With Pulseway appeared first on Adam the Automator - DevOps, Automation, PowerShell.
Recently, a fellow IT Pro contacted me and stated they were unable to login to one of their SQL Servers using Windows Authentication. The following error was generated when attempting to login to SQL Server Management Studio (SSMS). Their exact words were “I think we have a permissions problem”. Clicking on the “Show technical details” icon at the bottom of that error message showed the following information.
How do I discover Should operators?
If you’ve ever tried to learn Pester, PowerShell’s foremost code testing framework, you probably recognize this question.
Hopefully, you found the answers you needed on the Pester wiki, but that’s not an ideal solution. The wiki is not updated with the same frequency as the project, and we want quick answers via our PowerShell console, not on the website.
I have always admired much of the design of the PowerShell language. Its simplicity and readability to me are its two greatest features. Something that I think gets overlooked sometimes is the design of the cmdlet names, which use verb-noun in their naming, such as Start-Process. When you start to compare PowerShell against traditional command+ Read More
The post The Genius of Verb-Noun in PowerShell appeared first on WinSysBlog.
Yesterday I wrote about my intention to make PowerShell Core, running on Windows 10, my “daily driver”. I’ve also written recently about using the PowerShell prompt function to provide a wide range of information. So I decided to combine the two, plus mix in some functionality from my other PowerShell tools, to create a PowerShell […]
Check out my PowerShell Essentials page https://jdhitsolutions.
So, this is the first post for 2019! Happy new year!
Today I want to talk about a painful topic, the Group Policy. It's almost the same in every company. its historical, contain lot of Group Policy and if you ever try to touch it, half of the systems stops working.
The post Sorting the Group Policy mess with Powershell appeared first on Saggie Haim.
For years I have spent most of my time in a Windows PowerShell prompt. I have actually taken it as a badge of honor that I’ve been able to manage my day and all of my work from a PowerShell prompt. I also have created practically all of my content on Windows PowerShell. I will […]
Check out my PowerShell Essentials page https://jdhitsolutions.com/blog/essential-powershell-resources/
In my previous post, I outlined the preparations we undertook to migrate a large SQL Server 2008R2 instance to SQL Server 2016. This post details migration day. Final Prep We completed our nightly backups as usual on Friday night, so when I arrived Saturday I kicked off a final differential backup to catch any overnight … Continue reading "A Monumental Migration to SQL Server 2016 – Part 2"The post A Monumental Migration to SQL Server 2016 – Part 2 appeared first on FLX SQL with Andy Levy.
Olá, No ultimo post vimos como Promover um Server Core a Controlador de Domínio, hoje vamos ver como elevar o nivel funcional do domínio para aumentar […]
O post Elevando o nível funcional de um domínio Active Directory com Powershell apareceu primeiro em Guido Oliveira.
1. RadialMenu 2. Project Setting 3. Windows Properties 4. Create Project 4. Run Project 5 How to Obtain If you want ta start WPF with Material Design this Project can help you. This WPF application create a Blank project with all you need to start learning WPF and ‘Material Design`....
Words: 1085 Time to read: ~ 5 minutes T-SQL Tuesday time! It is time for the first T-SQL Tuesday of the year. This month we have Garry Bargsley ( blog | twitter ) who asks us for two tasks for this months topic: What do you want to automate or what automation are you proud … Continue reading "T-SQL Tuesday #111 – Automate All the Things"
As a DevOps with work experiences as a Developer and System Engineer, I tend to give for granted that all my colleagues or peers have the same background knowledge or simply the same vocabulary. But I’ve recently discussed with some seasoned sysadmins working for other companies and I was surprised to discover the barrier was around the … Continue reading "How to trigger incoming webho
Olá Pessoal, Hoje vamos ver como instalar o Active Directory em um Windows Server Core e como promovê-lo a Controlador de Domínio usando o Powershell. Isso […]
O post Promovendo o Windows Server Core a Controlador de Dominio com Powershell apareceu primeiro em Guido Oliveira.
Let me tell you a story… Once upon a time there was a junior admin with a lot of hopes, willingness to learn and full of joy. He did go on an adventure into Windows world. One path he took lead him to a kingdom called SBS. There were 2000 and 3 castles in that … Continue reading From SBS2008 to Office 365 and Windows 2019 →
A bit over a year ago, I blogged about my experience migrating a test SQL Server instance from a VM to a physical machine with a little help from my friends. That migration went well and the instance has been running trouble-free ever since. But it’s small potatoes. A modest instance, it’s only about 5% … Continue reading "A Monumental Migration to SQL Server 2016 – Part 1"The post A Monumental Migration to SQL Server 2016 – Part 1 appeared first on FLX SQL with Andy Levy.
Olá, Em meu laboratório virtual sempre mantenho alguns VHDs base para acelerar o processo de criação dos servidores virtuais, mas mantê-los atualizados sempre foi um desafio. […]
O post Adicionando Updates Offline a um VHD com Powershell apareceu primeiro em Guido Oliveira.
Sometime in Early 2018
Manager: Hey, Dave. I need you to add all of our domains as Accepted Domains in Exchange Online.
Me: Okay. How many do we have?
Manager: Maybe 50?
Me *finally gets access to Dyn and checks*: We have over 170 in Dyn.
Manager: Yeah, all those.
Me: We will need to create a TXT record in Dyn Managed DNS to prove ownership of the domain in Azure first.
Manager: Do your thing.
Me *sqeeeeee*: Okay.
Frequently in PowerShell, you’ll be dealing with file paths and programmatically constructing them to either write or read files.
There are a few different ways to build up file paths in PowerShell which I’ll go over below.
Using a hard-coded string
It is very common to see file paths being created by specifying the exact, hard-coded path.
$path = 'C:\mypath\to\foo.txt'
This is problematic for a few reasons though.
We're a few days in 2019, and from a time perspective, I can say I had a busy 2018. I must say I've never expected that but in 2018 I've created or worked on 24 PowerShell modules. Some were simpler ones, some were a bit more advanced, and some will be retired in 2019 because their features will be moved to other modules. In PowerShellGallery alone those were downloaded over 15000 times (I must admit that some of those are surely automated tests - "Hello Pester" that I've learned in 2018.
When working with Active Directory one of the common tasks is to move FSMO roles between servers. Well, maybe not that common but it happens from time to time where you have to move all or just some of the FSMO roles. For that purposes, there is single PowerShell command Move-ADDirectoryServerOperationalMasterRole. Sure you can do this via GUI but if there's one command available to fix it all why bother? To make the move one has to be a Domain Admin, Enterprise Admin and Schema Admin.
A few days ago, I received a pretty awesome email in my inbox.
I was becoming a Microsoft MVP!
Specifically, an MVP in Cloud and Datacenter Management.
I can’t tell you how great a feeling it is to be included in such a technically excellent and giving community!
I’ve interacted with a number of MVPs, both online and in person over the years, and I can tell you every single one of them has been gracious with their time, has an intense curiosity, and has a genuine urge to help everyone in their community succeed.
This year, we as the collective behind the UK PowerShell & DevOps User Groups, are running the third PSDayUK event, the only Conference that is totally Dedicated to PowerShell here in the UK & will be held on Monday September… Continue Reading →
Azure Automation State Configuration
Azure Automation State Configuration (previously Azure Automation DSC), is a service provided by Azure that allows you to write, manage and compile PowerShell Desired State Configuration (DSC) configurations and assign these configurations to target virtual machines (or any server or workstation to be honest). On its own, State Configuration provides some basic configuration examples, but its true power comes form the ability for you to define your own configurations.
In a recent post I discussed the the process you might go through in developing a PowerShell function. By the end, I not only had a new tool for my PowerShell toolbox, but I had a function outline that I could re-use. If you read the previous article then you should recognize the idea of […]
Check out my PowerShell Essentials page https://jdhitsolutions.com/blog/essential-powershell-resource
What a Difference a Year Makes Words: 665 Time to read: ~ 3 minutes 2018 has been a busy year. Blog Let’s talk blog numbers for a moment… They say a picture paints a thousand words so I’m going to keep the word count down. That’s 42,680 views across 34,920 visitors. Now seeing as last … Continue reading "Reflections: 2018"
I was receiving error 500 and website was landing on owa/auth.owa on my Exchange 2016 server. Interesting thing was – that happened to all admins but me – who installed the server. I found this blog post: https://blog.ollischer.com/exchange-2016-http-error-500-after-logging-into-ecpowa I’ve done all the steps, I ran UpdateCas.ps1 – that didn’t help, so I ran multiple commands … Continue reading Exchange 2016, owa/auth.
One of the features Amazon Simple Storage Service (S3) provides to storage buckets is lifecycle rules. You can use a lifecycle rule to remove or archive objects. I will be looking at creating a lifecycle rule with PowerShell to remove objects from a S3 bucket.
Creating a lifecycle rule is a good way to automate the housekeeping of your S3 bucket. By using lifecycle rules, you can remove objects after so many days, by a certain date, or use Amazon’s S3 Glacier for archiving.
Olá pessoal, Quando preciso aplicar updates em algum servidor, prefiro fazer de maneira remota para utilizar o minimo possível de recursos. Para isso temos 3 passos […]
O post Atualizando Servidores Windows usando o Powershell apareceu primeiro em Guido Oliveira.
Another day, another issue one may say. Today I wanted to install one of my modules to a new server and was greeted with a well-known message (it may seem on first look):
A command with name '' is already available on this system. This module 'PSEventViewer' may override the existing commands. If you still want to install this module 'PSEventViewer', use -AllowClobber parameter.
The post A command with name is already available on this system.
I wanted to let all my regular readers know that kevinmarquette.gitub.io has moved to powershellexplained.com. This is still the same site you were using before with all the same content under a new name. I dive into the details behind that change below. Index Index What do I have to...
Over on /r/PowerShell, we share with each other everything that we have done with PowerShell every month and reflect on that at the end of the year. This has been a big year for me. Not only have I been able to work on some great projects professionally, I also...