0

Code snippets : Adobe Flex : Open file dialog

-

So, I’m doing my first attempts to write some simple apps in Adobe Flex using Flash Builder 4.6. One of funny things I came across was how to generate open file dialog windows and get name of the file which user picked from dialog windows. I guess still have to get used to specific way Flex applications are developed.

Here is quick code snippet of the tiny application which allows to open file dialog box and pick file. File dialog window will be OS specific.

(more…)

0

Configuring room-type resource mailbox on Exchange 2007 in auto accept mode

-

Mailboxes created for conference rooms (on Exchange 2007 Recipient Type : Room Mailbox) by default has disabled auto accept for calendar appointments. That causes issue when people trying to book room as all appointments show as tentative and manual interaction/accept is required. In order to streamline process and make it more handy for people (in case nobody is assigned to control room bookings) you can enable auto accept feature, so all appointments will be accepted automatically. To do that use PowerShell:

(more…)

0

Code snippets : Exchange Server : Count messages submitted by user

-

In some companies performance is measured based on number of emails someone sent. regardless the reason for those emails and content, what matters the most is if someone is sending something to others. So, I was asked to produce quick count how many emails one individual sent.

Here is quick PowerShell command which I ran on Exchange 2007 Mailbox server to find requested number:

(more…)

0

Code snippets : CMD : Dump Windows Server DHCP configuration

-

If you need to capture configuration of Windows-based DHCP server for documentation or review purposes, this might be handy:

netsh -r lab-dc-01 dhcp server dump > C:\dhcp-lab-dc-01.txt

NOTE: lab-dc-01 in example command is name of the Windows server which has DHCP installed.

Example DHCP server dump from Windows Server 2008 R2 you can see here. It contains one scope for subnet 172.16.90.0/24, option for DNS and default gateway defined.

0

Code snippets : VBscript : Ping all computers from Active Directory OU

-

Here is quick script which connects to Active Directory, reads all computer accounts from Organization Unit (OU) indicated in script and then pings all computers found in that OU. It might be handy if all server accounts are located in one OU.

(more…)