The Wireless

The Wireless is an online commercial free radio station coming out of Sydney Australia. You can listen to the stream on a broadband connection. We stream in a format called AAC+, this allows us to stream at half the bandwidth of MP3 & Windows Media formats, but keeping the same quality of sound. To listen, you first need to download and install this AAC+ plugin. Then once this is installed, all you need to do is click here to listen.

Run SHOUTcast as a Windows Service

You can run SHOUTcast as a Windows Service, so that you can log off on your server and still run SHOUTcast. This is done with a utility called SRVANY.EXE. This utility runs as it’s own service and when it starts it starts SHOUTcast with it. Pretty simple stuff really, so here goes. Installation: Install SHOUTcast server as normal to the C:\Program Files\SHOUTcast directory Copy instsrv.exe to your C:\WINDOWS\system32 directory Copy SRVANY.EXE to C:\Program Files\SHOUTcast From command prompt, run this command – INSTSRV SHOUTcast “C:\Program Files\SHOUTcast\srvany.exe” Run the Registry Editor (REGEDT32.EXE) Under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SHOUTcast: create a ‘Parameters‘ key (folder) Under the this…

X-Lite Dial Plan

I had a problem where in imported all my contacts from Outlook to Counterpath’s X-Lite, however all of my numbers had +61 before the number, and all my calls were failing. Network error etc etc. My dial plan originally was: #1\a\a.T;match=1;prestrip=2; This was default, so I changed it to add in another match, see below: #1\a\a.T|+61xxxxxxxxxT;match=1;prestrip=2;match=2;prestrip=3;pre=0 What the above dial plan does using a second match, detects a number being dialled with a +61 before the number, then pre strips the first 3 numbers and also adds a 0, so in essence a number +614017891234 will have the first 3…

Robocopy

To move files & folders from one location to another without security: robocopy <source_directory> <target_directory> /TEE /E /MOVE /R:2 /W:1 /LOG+:c:\LOG.txt To copy files & folders from one location to another with security: (to copy without security, don’t include /copyall) robocopy <source_directory> <target_directory> /copyall /E /B /R:2 /W:1 /LOG+:c:\LOG.txt /TEE To copy files & folders from one location to another without security, and eXclude "eXtra" files and directories (present in destination but not source): robocopy <source_directory> <target_directory> /e /b /r:2 /w:1 /XX /LOG+:c:\rcopy.log /TEE To copy only NTFS security permissions and no data to, and eXclude new, old or changed…

CSVDE & LDAP queries

To export information from Active Directory using CSVDE, LDAP queries are used with CSVDE. Also, LADP queries can be used in Active Directory (AD) Users and Computers, there’s a section at the top called Saved Queries. You can right click on Saved Queries to create a new Query > click Define Query > select Custom Search from the drop down list > click Advanced. LDAP queries can be added here. -r = LDAP search filter (Default to "(objectClass=*)") = (EQUAL TO) – This LDAP argument means a certain attribute must be equal to a certain value to be true. For…

Exchange 2007 PowerShell commands

Getting and Viewing data from Powershell When viewing information from the Exchange Management Shell, sometimes all the information is bunched up like this: Identity             User                 AccessRights        IsInherited Deny ——–             —-                 ————        ———– —- nativeconnections… NT AUTHORITY\SELF    {FullAccess, Rea… False       False nativeconnections… NATIVECONNECTIO\E… {ReadPermission}    True        False nativeconnections… NATIVECONNECTIO\E… {FullAccess}        True        True nativeconnections… NATIVECONNECTIO\D… {FullAccess}        True        True nativeconnections… NATIVECONNECTIO\E… {FullAccess}        True        True nativeconnections… NATIVECONNECTIO\E… {FullAccess}        True        True nativeconnections… NATIVECONNECTIO\A… {FullAccess}        True        True nativeconnections… NATIVECONNECTIO\s… {FullAccess}        True        True nativeconnections… NATIVECONNECTIO\E… {FullAccess}        True        False nativeconnections… NATIVECONNECTIO\E… {FullAccess}        True        False nativeconnections… NATIVECONNECTIO\E… {ReadPermission}    True        False nativeconnections… NATIVECONNECTIO\E… {ReadPermission}    True        False nativeconnections… NATIVECONNECTIO\E… {ReadPermission}    True        False…

Removing disconnected mailboxes in Exchange Server 2007

Exchange Server 2007 doesn’t allow us to purge the disconnected mailbox. In order to remove one or multiple disconnected mailboxes we can be performing these steps: Listing all disconnected mailboxes Get-MailboxStatistics | where-object { $_.DisconnectDate -ne $null } | Select DisplayName,MailboxGuid Removing a single entry Remove-Mailbox -Database <Database-Name> -StoreMailboxIdentity <MailboxGuid> -confirm:$false Removing all users at the same time $users = Get-MailboxStatistics | where-object { $_.DisconnectDate -ne $null } | Select DisplayName,MailboxGuid Now that we have all disconnected mailboxes in a var, we can run the following cmdlet to remove all of them: $users | ForEach { Remove-Mailbox -Database "Mailbox Database"…

Create Anonymous Relay for Exchange 2007

Setting up relay for Exchange 2007 is done on the Receive connector. It can be locked down to certain IP addresses & Users. Here’s an example, to setup a receive connector which allows connections from a list of specific IP addresses, on the Edge Transport server or Hub Transport server run the following command: New-ReceiveConnector –Name "Anonymous Relay" -Usage Custom -PermissionGroups AnonymousUsers, ExchangeServers -Bindings 0.0.0.0:25 –AuthMechanism Tls, ExternalAuthoritative -RemoteIpRanges 149.171.135.0/24, 149.171.130.128/26, 149.171.130.192/26, 149.171.131.75,149.171.131.81, 149.171.130.23, 149.71.70.0/24, 149.171.62.0/24, 149.171.130.32, 149.171.130.22, 129.94.41.94 PermissionGroups – AnonymousUsers, ExchangeUsers, ExchangeServers, LegacyExchangeServers, Partners Bindings – 0.0.0.0:25 AuthMechanism – Tls, ExternalAuthoritative   From the image above, ticking the…

Setup and remotely manage Microsoft Hyper-V Server 2008 – Workgroup environment

  To find the network adapters At a command prompt, type the following: netsh interface ipv4 show interfaces Make a note of the number shown in the Idx column of the output for your network adapter. If your computer has more than one network adapter, make a note of the number corresponding to the network adapter for which you wish to set a static IP address. Set the IP address At the command prompt, type: netsh interface ipv4 set address name="<ID>" source=static address=<StaticIP> mask=<SubnetMask> gateway=<DefaultGateway> Where: ID is the number from step 2 above StaticIP is the static IP address…

Windows Server 2008 – Deployment using Windows Deployment Services (WDS)

  For Windows Server 2008 deployment we will be using Windows Deployment Services installed on Windows 2003  – inftwsm005 (149.171.56.13) In a nutshell, on the Windows Server 2008 DVD media you can find two WIM files, boot.wim (PE image) and the other is install.wim (the actual operating systems). The boot.wim file is the very first PE GUI that you see which asks you all the questions including what OS you want to install and drive configuration before it starts to copy the files to the hard drive. The install.wim file contains 6 different versions of the operating system for the…