LeVeilleur.net

Subscribe

Archive for the ‘Non classé’

Website is back online

décembre 01, 2009 By: Christopher Keyaert Category: Non classé No Comments →

Hello guys,

After one month offline due to my moving, my Internet connexion is back now :0)

Enjoy
Christopher

PowerShell : List Users from AD Groups

juin 10, 2009 By: Christopher Keyaert Category: Non classé No Comments →

############################
#Param
############################
$lists= "Group1", "Group2"
$ExportCsv = "D:\test.csv"

############################
#Functions
############################
Add-pssnapin Quest.ActiveRoles.ADManagement
Function Get-MemberName()
	{
	Process
		{
		ForEach($Member In $_)
			{
			Get-QADUser –ObjectAttributes @{distinguishedName=$Member}
			}
		}
	}
#########################
# Script
#########################
$MyArray = @()
foreach($group in $lists)
	{
	$Ret = $null
	$Ret = (Get-QADGroup $group).members | Get-MemberName
	foreach($line in $Ret)
		{
		$obj = New-Object PSObject
		$obj | Add-Member NoteProperty -Name "Group" -Value ($Group).ToUpper()
		$obj | Add-Member NoteProperty -Name "FirstName" -Value $line.FirstName
		$obj | Add-Member NoteProperty -Name "LastName" -Value $line.LastName
		$obj | Add-Member NoteProperty -Name "LogonName" -Value ($line.LogonName).ToUpper()
		$MyArray += $obj
		}
	}
$MyArray | Export-Csv $ExportCsv

PowerShell : Save Html, Body, ….

février 10, 2009 By: Christopher Keyaert Category: Non classé 1 Comment →

Voici trois méthodes permettant de sauver une page web ou plus simplement du code html

# Internetexplorer.application
$obj=New-Object -ComObject internetexplorer.application
$obj.visible=$true
$obj.navigate2("http://www.google.com")
while($obj.ReadyState -ne 4){start-sleep -m 100}
$obj.Document.documentElement.outerHTML

# xml http
$url = "http://www.cnn.com"
$xHTTP = new-object -com msxml2.xmlhttp;
$xHTTP.open("GET",$url,$false);
$xHTTP.send();
$xHTTP.ResponseText; # returns the html doc

# net.webclient
$url="http://www.cnn.com"
$wc = new-object net.webclient
$html = $wc.DownloadString($url)

Londres, Big Ben, London Eye, Mrs Tussaud, Oxford Street …

novembre 01, 2008 By: Christopher Keyaert Category: Non classé No Comments →

Voici quelques photos de notre séjour à Londres :

La suite : http://www.leveilleur.net/index.php/galerie-photos/

Migration de la galerie

janvier 07, 2008 By: Christopher Keyaert Category: General, Non classé No Comments →

Vous l’avez peut être déjà remarqué, mais j’ai décidé de migrer la galerie photo sur l’application Picasa de Google. Cette galerie est beaucoup plus puissante et rapide que la précédente.

Je vous invite donc à aller y faire un tour dès à présent. J’y ai d’ailleurs rajouter les dernières photos de nos vacances.

L’url par contre ne change pas : http://gallery.leveilleur.net