Skip to Content
Personal website of Steven Peck. Focusing on Drupal, Microsoft technologies (most notably PowerShell), and other random bits I think to write.

PowerShell-Windows.Forms RDP Launcher

In a given environment there can be many short term solutions that over time grow into long term headaches. We have a situation where we need to provide access to RDP sessions through Citrix. The original solution by previous admins was to create a custom RDP icon configured to the server in question and publish it in Citrix. This resulted in a rather 'busy' screen in Citrix and intermittant update issue.

A co-worker asked about PowerShell doing this and I said something off handed about Windows Forms to generate a menu selection should be do-able. He found a nice Windows.Forms example and then did a hard coded elseif menu (which seemed as bad as all the links to me). I came up with an improvement where we pulled the server/ip list from a file and used Select and Eric Woodford added a nicer $choice option with the added bonus of turning the line for launching RDP into a variable. This is good because we have a similar issue with putty links. This should wipe out 80 some odd custom published Citirx apps.

SIM IE9 Trusted Sites

HP SIM with IE9 really wants it to be in the Trusted sites list for some functioanlity to work reliably. However, maybe there is a GPO preventing you from adding to the trusted sites list yet you need to get to something 'now'. Grrr...

Let's go with a hypothetical SIM server of SimServerName.

PowerShell launched with administrator credentials (you can do this manually too)

Why I don't buy Android

Came across this link on Android Orphans: Visualizing a Sad History of Support. This shows as a visual the reality of what happens in the Android eco-system. The iPhone has the advantage of being owned as a vertical platform across it's hardware and software (I rather dislike iTunes so it's not really an option for me).

While the Windows Phone is not on the chart, as a contrast we have this post Updates: Windows Phone 7.5 now available more broadly. This shows how much effort it is to have a diversity of hardware platforms yet a consistency of versions in a global market yet they are doing it. Add in things like the integrated hubs and that everything just flows together more seemlessly for me, it ends being the obvious choice.

Microsoft continues to travel a path of having all it's users have a consistent core experience, yet still maintain a diversity of hardware choice.

Found via Android Orphans: Visualizing a Sad History of Support

Windows Phone and Google calendars workaround

I like my Windows Phone and the Mango release is definitly making it better. One irritation is Google being petty and preventing the view of calenders to which I have permissions too. Here is the user agent string with Chrome and the link to the instructions I used to work around this.

chrome.exe --user-agent="Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3 like Mac OS X; en-gb) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8F190 Safari/6533.18.5"  -disable-javascript

Mango Tip: Sync Multiple Google Calendars with Windows Phone

PowerShell-Check-Mailbox

We are beginning to transition to Windows 7 across the Enterprise, which is nice and change is often a time to revisit some basic tools and short comings.

Our support center currently fields basic calls from users on mailbox issues. Currently they are using the Exchange 2007 Admin tools which after about 6 clicks gets them most of the information they need, usually. It does miss mailbox size limits as generally that is set on a store level and on the account screen says merely 'default' and we have different sizes depending on job function.

We also run into the occasional issue of multiple accounts found based on our naming policy those then have to be filtered out based on looking closer at account infomration. I hacked together this quick function to provide basic information with one command and no need for the GUI.

Here's the output

PS:\> Check-MailBox jdoe
 
        Display Name:  John Doe
      Mailbox Server:  mailserver01
 
       Issue Warning:  219 MB
       Prohibit Send:  244 MB
Storage Limit Status:  BelowLimit
 
Current Mailbox Size:  220 MB

PowerShell-OCS2007r2 Communicator account update

We migrated from LCS2005sp1 to OCS2007r2 a while ago but for various reasons continued to use the Communciator 2005 client. With the Windows 7 migration we are changing to Communicator 2007r2 clients. On new accounts, there is nothing to do administratively, but on the older migrated accounts (of which the majority are) we need to manually check the 'Enable Enhanced Presence' box on each account. The numbers involved make this unappealing even in batches of 20-40 a day.

Have I mentioned how much I like PowerShell?

For this to work you will need the Quest AD Cmdlets, and OCS2007r2 administration tools installed on your system. I have two scripts, one that's really for the help desk to use to check an account more quickly and the other to use to enable bulk accounts. There is very basic help and example texts, still new to using that part of a script. I put these in a functions.ps1 library and load with my profile

Syndicate content