LeVeilleur.net

Subscribe

Archive for the ‘Non classé’

New website : vNext.be

juin 03, 2010 By: Christopher Keyaert Category: Non classé 1 Comment →

http://www.vnext.be

Hello every one,

I’ll not  post anymore on leveilleur.net website, I just created a new blog, specialized in System Center technologies and Microsoft powershell.
The new website is vNext.be, I hope to see you there ! :)

http://www.vnext.be

Christopher Keyaert

Website is back online

décembre 01, 2009 By: Christopher Keyaert Category: Non classé 1 Comment →

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/