Creating colorized Directory listing with PowerShell. A modification to Get-ChildItem.
Created a script for counting the days until a set date in the future. To see how many days is left to reach a goal or just to find out how many days there is before Christmas. Just for fun.
Short post today about how you can get, add and remove bindings with PowerShell on Windows Server running IIS (Internet Information Server). I find it more effective to add bindings through PowerShell rather than clicking through the user interface, especially if a website contains a lot of bindings and you have to scroll and look through the list manually to find the binding you want to delete.
Need to exclude files from your Web App Backup? Then you can use a file called _backup.filter and add it to the D:homesitewwwroot folder of your app. In this file you specify the files and folders you want to exclude. Further in this post I show you how to add this file to a Web App using PowerShell.
A couple of nights a go I suddenly got the urge to write the “FizzBuzz” challenge with PowerShell. As I sat there I came up with four different ways to solve it, even tough three of them is quite similar.
Played around with role-based access control this weekend while learning more about Azure and the cloud. Thought I make a short post about the experimentation and some of the learnings a long the way.
Role-based access control (RBAC) facilitates Microsoft Azure delegated resource administration. It helps you manage who has access to Azure resources.
How to enable “Disk encryption should be applied on virtual machines” recommendation from Azure Security Center.
Tips and practices for writing better PowerShell scripts, like parameterization, advanced functions, shortcuts, cmdlets and more.
A brief explanation of the concept of tags in Azure, and a few scripts for managing tags. In this post I’m not focusing on how to manage tags manually in the Azure Portal, rather a possible way to manage tags with Azure PowerShell.
Good evening, though I should share some of my Visual Studio Extensions I use for PowerShell development in Visual Studio Code. This post will probably be updated when I find new cool and useful extensions. You probably have a few yourself?
A step-by-step approach from idea to the actions to take create a complete functioning PowerShell script.
The Resolve-DnsName cmdlet is a powerful network administration tool command-line tool in PowerShell, used for querying DNS to obtain domain names or IP addresses, mapping or for any other specific DNS Records
How you can use PowerShell to download invoice information from Azure subscriptions, so that you can verify your credit card bills
Tried out Azure Resource Management templates this evening, to learn more about the “Infrastructure as Code” topic. A Resource Manager template is a JSON file that defines the resources to be deployed together through a declarative syntax. A templates can then be deployed via code. I started simple by creating a Resource Group in Azure first and then deployed a Storage Account with Azure PowerShell and an ARM template.
Tested out PowerShell Desired State Configuration this morning, in this post I”m going step-by-step through my first script using “PowerShell Desired State Configuration (DSC)”. The project I created is a simple website to the Default website in my lab environment, running the Microsoft Internet information Services (IIS) Server.
Good evening, messed around on the computer the other day, ended up with creating a PowerShell script prompting you to create files and directories.
The other day I needed to lookup a lot of domains regarding changes to DNS. The list was long and contained plenty of IDN (International Domain Name) which contains special characters such as “æøå”. I used the command Resolve-DnsName, and for this to work one must use the ACE-encoded version of the domain to make it resolve. So, this ended with two small scripts that converts domains such as “krøllalfa.no” to “xn—krllalfa-64a.no” and “xn—krllalfa-64a.no” to “krøllalfa.no”
Find yourself repeatedly manually accessing often used folders by using cd and tab completion? For instance when you open a new console and have to access a file or folder like the “repo” folder or the “hosts” file. Instead of typing the path each time. I found that creating simple aliases for paths I often use spares a lot of punching.
Good evening folks! This evening I am going through 8 command line tools for you can use to diagnose and resolve many network-related issues. Are you new to networking like me and need a helping hand with troubleshooting? This post goes through 8 command line tools and what purpose their serve, to get you started with network troubleshooting in Windows.
Played around with PowerShell in the spare time during our yearly business trip. This year we went to Tallinn in Estonia. I wanted to automate look up changes for DNS, instead of typing commands like “nslookup” or “Resolve-DnsName” now and then, to see if the DNS cache got updated. This ended with this script.
Of all troubles you can stumble upon with a computer, network issues might be one of the most frustrating. First instinct when an issue occurs is, “Oh, let me Google that”, and your”e opening the browser to find the message “This site can”t be reached” and you feel kind of helpless.