Don't wanna be here? Send us removal request.
Text
Introducting PSHTML
Salutations,
In this blog post, I would like to introduce a project on which I have been spending quite some time: PSHTML.
I also want to announce that I have made the module availble on the PowerShell Gallery.
Anyone can download it, using the following simple command:
Find-module PSHTML | Install-Module
PSHTML in a few words
PSHTML is a DSL (Domain Specific Language) which allows one to…
View On WordPress
0 notes
Text
How to generate a UML diagram using Powershell And GraphViz
How to generate a UML diagram using Powershell And GraphViz
Hi guys,
I have been working with Classes for a long while now. I tend to use them ALL-THE-TIME ! One thing that I realized that is missing, is a UML diagram, to see the Class structure. To be able to see the properties, methods, constructors and even the inheritance is really usefully to have a UML diagram to be able to see our constructs on a higher level. It helps us to understand our code…
View On WordPress
1 note
·
View note
Text
Analyze french political data using #powershell with #regardsCitoyensPS #opendata
I recently pusblished my first official powershell module to the powershell Gallery Called RegardsCitoyensPS . RegardsCitoyenPS is a PowerShell Module that allow people to retrieve information from the French democratic process. For more details, click here. (This module is publicly available on githubunder MIT licence). As with all the open source (public) projects I work on, I keep learning…
View On WordPress
0 notes
Text
How to deploy a vm using powercli and unattend.xml file
How to deploy a vm using powercli and unattend.xml file
Recently I blogged how to deploy a VM on VMware platforms(such as Vsphere) using PowerCLI, and more specifically the New-OScustomizationSpec. I mentioned in that article, that indeed the New-OSCustomizationSpec helps to create a new customizationspec, and give us the possibility to add customization to our Windows (or linux) deployment(s). In this article I’ll cover how to deploy a VM using…
View On WordPress
0 notes
Text
How to automate VMWare VM creation using powercli oscustomizationspec
My experiences from the field on how to automate #VMWare VM creation using #powershell #powercli and oscustomizationspec
Salutations!
I have been doing a lot of VMware PowerCLI automation this last year and a half. Up Until my recent projects, I have done mostly only HyperV / SCVMM automation (For Virtual Machine Deployments). For OS deployments I mainly used ConfigMgr (SCCM). Today, I would like to go through some powercli oscustomizationspec automation.
I’ll go through in a few posts on some interesting topics on…
View On WordPress
0 notes
Text
The PowerShell Stack collection
Learn something new (again!) -> This time, learn how to use the Stack collection with #PowerShell !
In a C# video, I heard about the System.collections.stack collection (PowerShell Stack Collection). I immediatly thought that this could really be helpfull to me when I am confronted again to work with a big amout of objects that needs to be handled in a specific order. In this article i’ll cover the main mechanisms that you need to know to effeciently use the powershell stack collection. Luck…
View On WordPress
0 notes
Text
The powershell queue collection
Today I want to quickly talk about the systems.collections.Queue collection. why should we care about the system.collections.Queue collection
Working with powershell, generally a simple array declared and used like this will generally be enough.
$array = @() $array += "Stéphane" $array += "van Gulick"
We then need to access our array via the index
PS C:\WINDOWS\system32> $array[1] van Gulick
View On WordPress
0 notes
Text
Managing Hosts File using PowerShell Classes
#powershell Class use case: Managing Hosts File using #PowerShell Classes
Learn how you can manage Hosts file with powershell. Add / remove entries to a local, or a remote hosts file using this module, based on powershell classes.
ok ok ok ok… That sounds a bit strange don’t you think? managing something ‘that’ old, with something as new as Powershell classes, why?
Well, the answer is actually pretty simple. Why not?!
Even if “the managing of Hosts files” is not…
View On WordPress
1 note
·
View note
Text
Guest post swisscom ICT blog
Guest post swisscom ICT blog
For the ones that are curious what an implementation of Pester in a big environment could look like, I would recommend that you read my guest blog post on the Swisscom ICT blog available here.
The article is pretty high level, but I talk about the big lines of unit testing and of an overall solution to do Operational Validation of one of cloud environments. This could be interesting for some of…
View On WordPress
0 notes
Text
How to parse netsh advfirewall rules using windows powershell
How to parse netsh advfirewall rules using #windows #powershell
In this powershell treasure chest post I want to explain how we can parse the results of netsh advfirewall command to workable powershell objects using regex. For the ones that didn’t know, netsh advfirewall is a command that allows to lists the existing firewall rules and their state on a windows machine. It has been pretty handy up until the *netadvancedFirewall* cmdlets were released.
This…
View On WordPress
0 notes
Text
Parsing the WindowsUpdate.log using PowerShell and regex
Are you searching to parse the windowsupdate.log file, the following function is here to help! It will either parse the windowsupdate.log file from your default location, or you can specify an external one. This function that parses the windowsUpdate.log file uses regex to regroup logical chunks of information together. In the end you get an object that you can easily manipulate with PowerShell,…
View On WordPress
0 notes
Text
learning regex
learn #regex to parse raw text using #powershell
[fusion_builder_container hundred_percent=”no” equal_height_columns=”no” menu_anchor=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=”” background_color=”” background_image=”” background_position=”center center” background_repeat=”no-repeat” fade=”no” background_parallax=”none” parallax_speed=”0.3″ video_mp4=”” video_webm=”” video_ogv=”” video_url=””…
View On WordPress
0 notes
Text
How to learn pester in 3 blog posts: Part 3 Advanced concepts
How to learn #pester in 3 blog posts: Part 3 Advanced concepts
This blog post is part 3 of a series of 3 posts to learn how to write Powershell pester test. After seeing the fundamentals of pester in part 1, we dove deep into the code and learned the details about the pester syntax in part 2 which gave you enough bullets to write your first pester tests. Today, in part 3 of this series, we will tackle the advanced concepts of pester tests and talk about some…
View On WordPress
0 notes
Text
How to learn Powershell Pester in 3 blog posts: Part 2 - deep dive into the code
How to learn #Powershell #Pester in 3 blog posts: Part 2 - deep dive into the code
This blog post is part of a series of 3 posts to learn Powershell Pester. After seeing the fundamentals of pester in part 1, we are now going to deep dive into the code and learn the details about the pester syntax. The scripts that are used through out this series are available on github here. The scripts for part two are located under the folder named part 2
In part 1 I show cased the function…
View On WordPress
0 notes
Text
How to learn Pester in 3 blog posts: The fundamentals
How to learn #Pester in 3 blog posts: The fundamentals
Going forward in the Devops world, you will sooner or later end up asking yourself the following questions:
I made a change to my code, does it still work? How can I ensure that the changes I made didn’t break anything?
You could hard code some values and hit F5 of course. It might work for that one particular case, but are you sure it will work for all the other ways it exists to call you code?P…
View On WordPress
0 notes
Text
Using polymorphism in PowerShell Classes
[fusion_builder_container hundred_percent=”no” equal_height_columns=”no” menu_anchor=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=”” background_color=”” background_image=”” background_position=”center center” background_repeat=”no-repeat” fade=”no” background_parallax=”none” parallax_speed=”0.3″ video_mp4=”” video_webm=”” video_ogv=”” video_url=””…
View On WordPress
0 notes
Text
How to benefit from powershell class Inheritance?
[fusion_builder_container hundred_percent=”no” equal_height_columns=”no” menu_anchor=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=”” background_color=”” background_image=”” background_position=”center center” background_repeat=”no-repeat” fade=”no” background_parallax=”none” parallax_speed=”0.3″ video_mp4=”” video_webm=”” video_ogv=”” video_url=””…
View On WordPress
0 notes