PowerShell – POWER tip Load all Module

powershell_2Sometimes you need to load several modules to manage a program like Exchange. This could be time consuming and you do not have time to do that.

Its could be very helpful to load all modules at the same time. How can we do that?

Use the†Get-Module†cmdlet with the†ListAvailableswitch, and pipe the results to the†Import-Module†cmdlet.

Get-Module -ListAvailable | Import-Module

 

HardDiskSpace Calculation

This VBA script will allow you to check your diskspace usage on you servers. It give you fast way to check up without any management applications.

“) ReportFile.writeline(“Disk Space Report“) ReportFile.writeline(“

” & StrComputer & “
Drive / Mount Volume Name Total Capacity (in GB) Used Capacity (in GB) Free Space (in GB) Freespace %
” & Drv & “ ” & label & “ ” & TotSpace & “ ” & UsSpace & “ ” & FrSpace & “ ” & FrPercent & “%” &”
” & Drv & “ ” & label & “ ” & TotSpace & “ ” & UsSpace & “ ” & FrSpace & “ ” & FrPercent & “%” &”
” & Drv & “ ” & label & “ ” & TotSpace & “ ” & UsSpace & “ ” & FrSpace & “ ” & FrPercent & “%” &”