Browsed by
Tag: Microsoft

Group-Object is magic !

Group-Object is magic !

I had to create a script that sort a whole csv, each line is an extract of a computer scan, one extract per day, and get only the last extract per computer AND per user.

Indeed, a user can use multiple computers, and several users can use the same computer, the extract result is not the same !

Get all pst files set up in Outlook ?

Get all pst files set up in Outlook ?

Function GetPstFromProfil {
$PSTFiles=$null
$ol=New-Object -ComObject Outlook.Application
$ns=$ol.GetNamespace('MAPI')
$store=$ns.Session.Stores|Where-Object{$_.FilePath -match "pst$"}
$store | Foreach-Object{
	$pst=$_.FilePath
	If($PSTFiles -ne $null){
		$PSTFiles+="|$pst"
	}
	If($PSTFiles -eq $null){
		$PSTFiles=$pst
	}
}

$PSTFiles=$PSTFiles.split("|")

return $PSTFiles
}

Then you just have to call that function such as :

$pstfiles=GetPstFromProfil

Powershell parle ! (si si)

Powershell parle ! (si si)

Un petit bout de code qui peut être amusant pour les débutants en Powershell, faire parler son ordinateur à l’aide de la synthèse vocale !

Add-Type -AssemblyName System.speech
$speaker = New-Object System.Speech.Synthesis.SpeechSynthesizer
$speaker.Speak("I am alive !")

Il suffit tout simplement de charger le type system “speech”, puis de charger le synthétiseur vocal, et le tour est joué !

Outlook 2013 Preview

Outlook 2013 Preview

Outlook helps you manage your busy life more easily and efficiently. You get new and improved ways to find information quickly, handle email, coordinate schedules, keep current with contacts and social networks, and tame your unruly to-do lists.

Communicate

Quickly connect and share files with the people and groups that matter most to you.

Microsoft Launches Company’s First-Ever Direct Startup Accelerator

Microsoft Launches Company’s First-Ever Direct Startup Accelerator

roualin azure Microsoft Launches Company’s First-Ever Direct Startup Accelerator
Today, Microsoft is launching the first startup accelerator* in the company’s history in an effort to encourage more entrepreneurs to build their cloud-based applications using Windows Azure. The program will take place at the Microsoft Israel Research and Development Center, and is a part of the Israel R&D Center’s outreach program Think Next as well as the Microsoft BizSpark program for startups.

Import-Mailbox – Import mailboxes from PST into Exchange 2007 using powershell cmdlets

Import-Mailbox – Import mailboxes from PST into Exchange 2007 using powershell cmdlets

roualin ex-mgmt-shell1 Import-Mailbox – Import mailboxes from PST into Exchange 2007 using powershell cmdletsIn Exchange 2003, one of the simplest ways to move mailboxes from one Exchange organisation to another was using exmerge. It was particularly useful for sites using ‘Small Business Server’ where the level of data and requirements were low.

-ErrorAction and -ErrorVariable

-ErrorAction and -ErrorVariable

roualin powershell_2 -ErrorAction and -ErrorVariableLet me take a minute to tell you about 2 of my favorite things in Windows PowerShell:  -ErrorAction and –ErrorVariable

You may have heard me talk about being maniacal about doing a great job with error handling … this is one the cornerstones of our architecture.

WMI PowerShell for Exchange 2003

WMI PowerShell for Exchange 2003

roualin banniere5 WMI PowerShell for Exchange 2003As a quick follow-up for the Exchange 2000/2003 PowerShell post here are a few additional references.

TechNet Script Center has a good article on WMI classes available:

How to whitelist website on AdBlocker?

How to whitelist website on AdBlocker?

  1. 1 Click on the AdBlock Plus icon on the top right corner of your browser
  2. 2 Click on "Enabled on this site" from the AdBlock Plus option
  3. 3 Refresh the page and start browsing the site