TechnoGist

gist (jst)# The central idea; the essence…

Archive for the ‘W2008 Core’ Category

Installing VMWare Fusion Tools on Windows 2008 Core

without comments

Installing VMWare Fusion 3.X.X Tools onto Windows 2008 Core edition.

  • Select ‘VMWare/Virtual Machine/Install VMWare Tools’ to mount the ISO.
  • On the command line change disk to the D:\> drive.
  • Run either the D:\>Setup.exe or D:\>Setup64.exe depending on the OS version installed.
  • Follow all prompts as normal.

Hope this helps.

All information is provided on an AS-IS basis, with no warranties and confers no rights.

Written by Paul Brice

March 11th, 2010 at 5:54 pm

Exporting 2003 Mailbox Data to CSV

without comments

I have been using this code for a while and thought I would post it.

I manage several Exchange 2003 servers, this PowerShell code will allow you to pull Mailbox data from each server into their own .CSV file.
It uses a built Array for the server list and parses the Array to get Mailbox data from each server.

$Mailboxes = $Null
$Computers = "Server1","Server2","Server3","Server4"
ForEach($Computer in $Computers)
{
$Mailboxes = Get-WmiObject -NameSpace Root\MicrosoftExchangeV2 -Class Exchange_Mailbox -Computer $Computer
$Mailboxes | Export-Csv "C:\Mailboxes_$Computer.csv" -NoTypeInformation
}

You can combine this with ADSI code to discover all your Exchange 2003 servers in your Directory.
This would give you Mailbox data on all of your Exchange 2003 servers without the need for a manual Array.

[Array]$ExchSrvs = @("")
[String]$StrFilter =(objectCategory=msExchExchangeServer)$objRootDSE = [ADSI]“LDAP://RootDSE”
[String]$strContainer = $objRootDSE.configurationNamingContext
$objSearcher = New-Object System.DirectoryServices.DirectorySearcher
$objSearcher.SearchRoot = New-object System.DirectoryServices.DirectoryEntry(”LDAP://$strContainer)
$objSearcher.PageSize = 1000
$objSearcher.Filter = $strFilter
$objSearcher.SearchScope = “Subtree”
$colServers = $objSearcher.FindAll()
ForEach($objServer in $colServers)
{
[String]$Server = $objResult.Properties.name
$ExchSrvs += $Server
}
$ExchSrvs.Count

Your final script would look something like this.

[Array]$ExchSrvs = @("")
[String]$StrFilter =(objectCategory=msExchExchangeServer)$objRootDSE = [ADSI]“LDAP://RootDSE”
[String]$strContainer = $objRootDSE.configurationNamingContext
$objSearcher = New-Object System.DirectoryServices.DirectorySearcher
$objSearcher.SearchRoot = New-object System.DirectoryServices.DirectoryEntry(”LDAP://$strContainer)
$objSearcher.PageSize = 1000
$objSearcher.Filter = $strFilter
$objSearcher.SearchScope = “Subtree”
$colServers = $objSearcher.FindAll()
ForEach($objServer in $colServers)
{
[String]$Server = $objResult.Properties.name
$Mailboxes = $Null
$Mailboxes = Get-WmiObject -NameSpace Root\MicrosoftExchangeV2 -Class Exchange_Mailbox -Computer $Server
$Mailboxes | Export-Csv "C:\Mailboxes_$Server.csv" -NoTypeInformation
}

Hope this helps.

All information is provided on an AS-IS basis, with no warranties and confers no rights.

Written by Paul Brice

June 13th, 2009 at 12:16 am

Working with the W2008 Core Build

without comments

Here are some quick commands I sourced while setting up a Windows 2008 Virtual environment for Exchange 2007, using a W2008 Core Domain Controller.

Commands:

Setting the Firewall to “Disabled” mode.

netsh firewall set opmode disable

Setting all Firewall profiles to “Off”.

netsh advfirewall set allprofiles state off

Enabling “Remote Administration”.

netsh advfirewall firewall set rule group="Remote Administration" new enable=yes

Enabloing the “Remote Management Profile”.

netsh advfirewall set currentprofile settings remotemanagement enable

Below is a great starter article by Mark Empson on initial W2008 Core DC configuration.

Hope this helps.

All information is provided on an AS-IS basis, with no warranties and confers no rights.

Written by Paul Brice

May 28th, 2009 at 5:30 pm

Posted in W2008 Core

Tagged with , ,