Microsoft Exchange 2007 / 2010 – Statistics using Exchange Management Shell...
Using Microsoft Exchange 2007 / 2010 Management Shell (PowerShell with extensions), you can pull out some very exciting statistics. That was never that easy in the pre Exchange 2007 era. Let’s start...
View ArticlePowerShell: Sort-Object
You can use Sort-Object to sort simple variable types. Have a look at the following: ‘Tom’, ‘Chris’, ‘Judy’, ‘Alan’ | Sort-Object Input can come from a different command. If you’d like to get seven...
View ArticlePowerShell: Generate PC Lists using Foreach-Object and -f Operator
Generate PC Lists One easy way of creating lists of PC names or IP address ranges etc is a simple pipeline like this: 1..40 | Foreach-Object { ‘PC-W7-A{0:000}’ -f $_ } Use the -f operator to format the...
View ArticlePowerShell: About SessionConfiguration and how to change them
Remote Access Without Admin Privileges In PowerShell v.2, remote access is available only to users who hold local administrator privileges. So, even if you do have appropriate remote access to a...
View ArticleScan IP range using ping
IP scanner for the poor ones Just open up a cmd.exe and change the ip range.. C:\>FOR /L %x in (1,1,255) do ping -n 1 192.168.2.%x | find /I "reply" >> c:\temp\pingresult.txt The above command...
View ArticleGetting registry last write time with PowerShell
All registry keys have a value associated with called the Last Write Time. This is analogous to the last modification time for a file. When ever the registry key or one if its values has been created,...
View ArticleFinding process that locks a DLL
You want to replace a dll on a system, but you get access denied, although you’re admin, have the necessary rights.. so which process is locking the particular file/library. I know, there is...
View ArticleUse PowerShell to Back Up System State Prior to Making Changes
Did you know you can use PowerShell to back up the system state? Understanding the Computer Restore cmdlets One of the easiest ways to ensure system reliability is to create a restore point prior to...
View ArticlePowerShell – Get installed/enabled Windows Features
Sometime you need to ‘clone’ the Windows feature-set of a specific server. That’s a task I’m currently working on. Using PowerShell to enumerate/list all enabled Windows Features is easy… First you...
View ArticleGet .NET Framework Version of an assembly (dll/exe) using PowerShell
i just had to find the required framework version for a compiled .NET assembly (just to make sure, that the selected Application Pool in IIS was set to the righte Framework Version). ——– $fileBrowser =...
View Article