Dan Fortier

Author's details

Name: Dan Fortier
Date registered: July 24, 2009
URL: http://www.danielfortier.com

Latest posts

  1. How to: Find the HP Product Number of all your HP server using powershell — April 9, 2013
  2. Powershell Tips of the week #4 – Get-ChildItem – Only show directories — April 2, 2013
  3. Powershell Tips of the week #3 – Find parent folder — March 25, 2013
  4. Powershell Tips of the week #2 – Measure-Command — March 19, 2013
  5. Powershell Tips of the week #1 – Cmdlet Start-Transcript — March 14, 2013

Most commented posts

  1. Windows Update – Error 0x80072F8F — 8 comments
  2. KMS for Win 7 and Server 2008 R2: “Run ‘slui.exe 0x2a 0xC004F050′” — 4 comments
  3. How to: List members of the Administrators local group — 4 comments
  4. How To: List all users with a roaming profile — 3 comments
  5. How to: Reset password on Citrix Licensing server — 3 comments

Author's posts listings

Apr 09

How to: Find the HP Product Number of all your HP server using powershell

You can easly find the HP product number of any of your HP server by looking on the server itself or on the warranty card. The HP product number is nice to have if you want to easily find that date your HP server will be out of warranty. This product number is no longer …

Continue reading »

Apr 02

Powershell Tips of the week #4 – Get-ChildItem – Only show directories

Here’s quick tip on how to make Get-ChildItem only return directories. With Powershell v3, there is a new parameter that allow you to only get directories: Get-ChildItem C:\ -directory Result: Directory: C:\ Mode                LastWriteTime     Length Name —-                ————-   …

Continue reading »

Mar 25

Powershell Tips of the week #3 – Find parent folder

How to find the parent folder of a path that is stored in a variable For the purpose of the example I will manually add a path to a variable. $VarA = "\\Domain.net\dfs\files\dan.fortier\" The parent folder of this path is “\\Domain.net\dfs\files” but lets find it with powershell using the Get-Item cmdlet. $ParentFolder = (Get-Item $VarA).parent.FullName …

Continue reading »

Mar 19

Powershell Tips of the week #2 – Measure-Command

In today’s post I will talk about the Measure-Command function in Powershell. This function will tell you exactly how much time it took to run a cmdlet or a script block. The result will be displayed like this: Days              : 0 Hours             : …

Continue reading »

Mar 14

Powershell Tips of the week #1 – Cmdlet Start-Transcript

This week I will show you how to use the Start-Transcript cmdlet. Start-Transcript will allow you to record your powershell session in a text file. The transcript includes all command that the user types and all output that appears on the console. Here is some example on how to use Start-Transcript: This command starts a …

Continue reading »

Feb 14

How to: cleanup the winsxs folder after SP1 installation on Windows 2008 R2

After the installation on SP1 on Windows 2008 R2 I have notice that lots of my server were getting low disk space. I scanned the C: drive with TreeSize Pro and I found out that the Winsxs folder was really big (between 9 and 16 Gb). There is a command that you can use to …

Continue reading »

Jan 16

Windows profile username.001, username.002, username.003 … in RD (TS) or Citrix

Issue: When using Remote Desktop, Terminal Services or Citrix XenApp on a Vmware server, windows might now be able to delete the copy of the profile. At the next logon another profile will be created to finally end up with multiple folders for the same users (ie: username.001, username.002, username.003 …) If you look in …

Continue reading »

Older posts «