Sort files by extension with total size

roualin facebook Sort files by extension with total sizeroualin google Sort files by extension with total sizeroualin twitter Sort files by extension with total sizeroualin linkedin Sort files by extension with total size

For several reasons, it could be awesome to sort a folder and sub by extension, with the associated size for each.

 

 

Get all pst files set up in Outlook ?

roualin facebook Get all pst files set up in Outlook ?roualin google Get all pst files set up in Outlook ?roualin twitter Get all pst files set up in Outlook ?roualin linkedin Get all pst files set up in Outlook ?

Then you just have to call that function such as :

$pstfiles=GetPstFromProfil

LAN Speedtest in Powershell

roualin facebook LAN Speedtest in Powershellroualin google LAN Speedtest in Powershellroualin twitter LAN Speedtest in Powershellroualin linkedin LAN Speedtest in Powershell

Sometimes it may be usefull to monitor the network speed on your LAN/WAN network. This little script needs to acces to the c$ admin share to work.
 
That works as the famous Speedtest.net website, uploading and then downloading a simple file, calculating then the average speed.

 

Enjoy !

Massive AD Group Creation using Powershell

roualin facebook Massive AD Group Creation using Powershellroualin google Massive AD Group Creation using Powershellroualin twitter Massive AD Group Creation using Powershellroualin linkedin Massive AD Group Creation using Powershell

A quick Powershell script, easy to use, to create a lot of groups from a csv file

 

The import csv file is like :

GroupName;DESTINATION;DESCRIPTION

Vérification des certificats arrivant à expiration

roualin facebook Vérification des certificats arrivant à expirationroualin google Vérification des certificats arrivant à expirationroualin twitter Vérification des certificats arrivant à expirationroualin linkedin Vérification des certificats arrivant à expiration

Une  mauvaise surprise est un jour arrivé, un certificat de la PKI venait d’expirer, paralysant pas mal de choses.

Voici une fonction permettant de lister les certificats arrivant à expiration dans X jours.

L’appel de la fonction se fait comme dans l’exemple ci-après :

Un peu de scripting en plus, une petite tâche plannifiée, et nous voilà avec un système de surveillance des certificats arrivant à expiration.

Multithreads in Powershell

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

MultithreadsA heavy Powershell script uses a lot of ram to proceed. There are many ways to avoid that, and also avoid crashes of the server launching that. The easiest way is to use multithreads with job.

Using jobs will open a new thread into your server/remote server to execute a part of the script. Jobs also can be called to work at the same time, reducing the global execution time of the script.

Here below a small script to introduce you using jobs :

Powershell & requêtes SQL

roualin facebook Powershell & requêtes SQLroualin google Powershell & requêtes SQLroualin twitter Powershell & requêtes SQLroualin linkedin Powershell & requêtes SQL

Effectuer des requêtes SQL via Powershell peut s’avérer très efficace et utile dans bien des domaines.

C’est assez simple en fait :

L’option “Integrated Security” permet d’utiliser l’authentification Windows, donc le compte lançant le script powershell sera capable de faire des requêtes, si bien sûr il en a les droits !