Welcome to the Blogcast Repository Sign in | Join | Help
Search BlogCastRepository.com for:
in Search

239 BlogCasts in The BlogCast Repository!

Matt Broadstock

Check us out!
SMS Utilities

August 2006 - Posts

  • Bought a new MP3 player today

    I went ahead and pulled the trigger on the Creative Labs Zen Vision:M. I haven't gotten to use it much yet but it seems great so far. The video is really crisp and the colors are vibrant. I went to Circuit City to buy it but the price buying it at the store was $299 for just the player. There is a special bundle on their website that includes the player, the power supply, and a case for $291. Pretty much a no-brainer there. I just got onto one of their computers and bought the thing online and walked over to customer service to pick it up.

    I went ahead and loaded up Media Player 11 as well because it was supposed to sync up easier (don't have to install the Creative software). Man, WMP11 is sweet! I'm sure I haven't found all of the new stuff that it can do but it is obvious that a lot of the changes are to make working with MP3 players much easier. There are a couple of things I have to get used to but I doubt it will take long.

    Share this post:                                       
  • Vista Group Policies overview available for download

    You can download it here. Although they are adding a few of the policies that have they should've included with XP SP1 or SP2, they still haven't totally replaced the IE Branding CSE (client-side extension). I've run into so many bugs with that thing that we just write custom ADMs to handle everything that it does. (that particular bug didn't get resolved until 5 months after it was reported to MS--so, no SP2 upgrades during that time if you were redirecting your App Data)

    So, it appears that you will still have to either use a custom ADM or the always-buggy CSE to set something as simple as the Proxy Server.

    But, it does look like they've added a lot of Vista-specific settings. Apparently they have gone from 1671 to 2450 available settings. I suppose I'll have to setup Vista in a domain environment to see how handy the new settings are. Also, it looks like they have things split up very nicely with the new ADMX format. I didn't count them all but it looks like there are a good 40-50 of them.

    Also, as long as I am talking about Group Policy, I just ran across this GP Wiki. They have an "I Want To" page. I think I'll put a few things on there. Geeked [8-|]

    Share this post:                                       
  • Google for the word "Failure"

    Someone told me about this today.. I found it quite funny. Big Smile [:D]

    Just do a search for the word failure and look at the first hit:

     

     

    Share this post:                                       
  • Pluto no longer a planet

    Wow! I never expected this. I've kind of been following what has been going on with their discussions on redefining what is and isn't a planet. But, it seemed that just about every option that they were considering was going to increase the number of planets, not kick Pluto out of our little planetary gang. I guess they figured that since they coudn't agree on whether to have 10 planets or 50, they had to make some change.

    Kids are going to have to come up with a new way to memorize the planets. But, instead of the 12 that article talks about, they'll have it even easier. I guess "My Very Energetic Mother Just Served Us Nine Pizzas" won't work anymore. Maybe our energetic moms can start serving up some noodles instead..?

    Share this post:                                       
  • Troubleshooting application issues in a domain environment

    I figured I would share a slightly modified version of some documentation I threw together for my current client.

    I swear..you can troubleshoot 95% of application issues this way! You just have to be methodical about it.

    It details how to troubleshoot problems like:

    • XXX application works fine for everyone but one user on a specific system
    • XXX application never works for a specific user no matter which system they logon to
    • XXX application doesn’t work for anyone on a specific system
    • XXX application only works for admins on a specific system

    http://blogcastrepository.com/blogs/mattbro/articles/2034.aspx

    Share this post:                                       
  • Anyone else getting a ton of referrals from poker sites?

    I just went through my referrals for my articles/posts and a large number of them have tons and tons of referrals from some stupid texas hold 'em site. Anyone else seeing this as well? They seem to have about 150 different domain names for their site but it is pretty obvious that it is all one website. It isn't the end of the world or anything but I like to see how people are finding my posts and they certainly clutter everything up.
    Share this post:                                       
  • Fixed an annoying problem with running out of GDI Objects

    I've had a problem with my desktop for a while now..It appeared that I was running out of resources and I kept having to close apps down in order to open up new windows or access menu items. This was happening even though I still had tons of free available memory. I tried running some memory cleanup tools, changing my pagefile settings (smaller/bigger, fixed size/let windows handle it, etc). Unfortunately, nothing fixed my problem. As a side note, I've run into this before occasionally but lately it has been horrible. It really seemed to get worse when I installed IE7 although I did have the issue a few times when I used FireFox.

    Anyway, today I was trying to help someone out with a scripting issue and I kept having to close the windows I needed open. I was finally fed up. I needed to fix this problem or rebuild my system.

    Thankfully, I think I found the fix. It has to do with running out of 'GDI Objects'. I opened up Task Manager and added the column so I could view GDI Objects and was not surprised at all to see the my IE processes were using up more than anything else. I usually keep 3-4 separate IE processes running and have 3-5 tabs open in each of them. Now, I don't really care that IE is using them..I just want to run my freaking applications. (Here's a link to someone more knowledgable than I complaining about IE7's usage of GDI objects though). It's a shame to have all of this memory if Windows only puts a small amount of it into a critical area. Thankfully there is a hotfix and a reghack to help with the problem. The hotfix is just to help with a specific problem with Themes in Windows. I went ahead and installed it but that doesn't really fix my problem. I need to increase the amount of memory available for these troublesome GDI Objects.

    The reghack details how to go about changing the settings. It affects more than just GDI Objects, it affects the "Desktop Heap". I don't know exactly what that is nor do I care at the moment.

    Anyway, I ended up changing my settings from:

    Windows SharedSection=1024,3072,512

    to:

    Windows SharedSection=1024,8192,2048

    I went ahead and opened up 5 separate IE processes with 7-8 tabs each, MOM admin, MOM operator, ADSIEdit, AD MMC, GPMC, PrimalScript, Lotus Notes, etc and I am running without any problems at all.

    My question is this, what's the point of having all of this RAM if you still can't open up all of the stuff you want to? Maybe Microsoft needs to re-think the default settings for that registry entry now that people have more RAM in their systems. Or at least give you an easier way to change it like they've done with the 'performance' options that you can choose from in a number of Control Panel applets.

    EDIT: I couldn't be happier! I can open up as much as I want to now! Also, I was just explaining my joy at fixing this problem to a co-worker and he mentioned that a new clinical application that my current client is starting to implement seems to eat up GDI resources as well. The problem is so bad that they install a special GDI Object monitor to let you know when you are close to running out of them. Once again, I ask the question, why not just increase how many are available?!?!?  Maybe there is a downside to the reg changes I made...I guess I'll find out eventually if there is. Unfortunately, there are a ton of web sites that talk about monitoring GDI objects and how to prevent leaks but there doesn't seem to be a lot of information on making a change like the one that I did.

    EDIT #2 - I found a nice article that describes it a lot better. I just had to start searching for "Desktop Heap" instead of "GDI Objects" and I found some pretty good resources. There is a link to a good forum thread at the end of the 3rd page of the article discussing this issue a bit further as well. Apparently there shouldn't be any real negative affects to my change. Apparently you can adjust the total size of the Desktop Heap from the default of 48 MB using the following reg value:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\SessionViewSize

    I have no need to mess with that since I just care about my XP desktop but it is handy information to know in case I run into anything like this again.

    Share this post:                                       
  • Documenting OU structure

    We have some consultants coming in to assist with a MetaDirectory project that is going on at my current client and they asked me for some information--they wanted some documentation of our OU structure. I figured I already had something in place to document something as simple as this but, alas, I did not. So, I googled around for a freeware utility or script and I couldn't really find anything. I think DSRazor and a couple of other commercial tools would do it but I was disappointed and surprised that I didn't find anything free. 

    So, should I write the code from scratch or steal from wherever I can?? Hmmm...easy decision there. I remembered working with the scripts included with the GPMC (Group Policy Management Console) and thought there might be something in there I could use. Jackpot!

    "ListSOMPolicyTree.wsf" does what I need (and a bit more--I don't care about GPOs right now, just OUs). So, I just made a copy of the file and commented out lines 72-88 and 204-240. I also updated the text that is displayed via line 66 to ""=== OU structure for domain " instead of ""=== GPO Links for domain ".

    Presto magic, we have a nice looking export of the OU structure for the domain.

    === OU structure for domain ds.ad.ssmhc.com ===
    DC=ds
       OU=Accounts
       OU=Admin
       OU=Consultants
       OU=Domain Controllers
       OU=EMC Celerra
          OU=Computers
       OU=Management Workstations
          OU=Interfaces
       OU=Policy Free OU
          OU=GE
             OU=INW
                OU=SFHBI
                   OU=MLCL Computers
                      OU=MLCL Acquisition Workstations
                      OU=MLCL Review Workstations
                   OU=MLCL Server
                   OU=MLCL Software Groups
                   OU=MLCL Software Only
                   OU=MLCL Users
       OU=Servers
          OU=Citrix Servers
          OU=Citrix Servers - Show Desktop
          OU=Citrix Test Servers
          OU=IAS Servers
          OU=IC Servers
          OU=SIS Servers
          OU=SIS Test Servers

    Share this post:                                       
  • Great article on SMS boundaries

    I was trying to explain how SMS boundaries work to my current client after they ran into some issues due to some misconfiguration when I found this article from Technet Magazine. It is short and sweet and goes over just about everything you need to know on what seems to be a very misunderstood part of SMS.

    Share this post:                                       
  • Cleaning up MOM alerts

    The company I am consulting at has had MOM installed for quite a while but no one has ever really "owned" it so alerts haven't always gotten processed like they should. I'm no MOM expert (fighting off the temptation to throw in a yo' momma comment here...) but I figured I would do some hacking around.

    The first thing I noticed what that all of the servers were "Critical" in the status view but there weren't nearly enough alerts in the Alerts view for all of the server to be critical. After going through every menu 3 times to find a way to see if there were some special view filters (and creating a new custom view that still didn't show everything), I stumbled across the stupid clock/calendar in the upper-right corner.

    Presto magic! I changed it from the default of 7-days to 1000-days and lo-and-behold, I have thousands of alerts. I wanted to acknowledge them all because I figured MOM would just regenerate them if they were still valid issues that need to be addressed. So, I right-click and do a Select-All so I can acknowledge them, but alas, there is no 'Select All' option. Surely that option is in the menu somewhere, right? Nope. Ok, I'll just select the first record and scroll to the bottom and do a Shift-Select. No dice there either. MOM popped up some stupid message about exceeding the limit for how many records could be selected at once. I went through the process of selecting the maximum number of records and acknowledging them about 10 times and (based on how far the scroll bar had adjusted) figured it would take me about 3 days to get them all acknowledged.

    Now, being a programmer, I figure I can pull it off via scripting or SQL commands but I always like to see if there is a built-in mechanism first. I stumbled across the "Data Grooming" settings and it looked like adjusting them should cause the records to purge themselves automatically (at least anything older than 45 days). I set everything up to auto-resolve within 30 days and for all data older than 45 days to be groomed and let it run for a couple of days. Unfortunately, this didn't seem to work. I don't know if it just needs more time to run but I got impatient and decided to do things "My Way".

    First off, let's open up the database and see how the data is stored. I checked a few tables to figure out how everything was cross-referenced (after dealing with the SMS Database I never expect things to be organized) but I was happily surprised to see that everything I needed to work with was in the table named "Alerts". I didn't run across this until after I had everything fixed but Microsoft has a great breakdown on the MOM database/object properties.

    Long story short, after a bit of tinkering with manual SQL changes to individual records to make sure everything worked the way I thought it did, I ended up running the following script in Query Analyzer:

    update alert SET ResolutionState = 255 where resolutionstate <> 255 and culprit = 'Citrix Metaframe'

    Bascially, it just changes all of the records that haven't been acknowledged so that they are now acknowledged. (that's what 255 means-check the MS link above for a list of all possible values). I chose to also limit my changes to alerts that came from 'Citrix Metaframe' because they comprised about 95% of them. Apparently the MOM Citrix Management Pack alerts every time a printer mapping fails--which happens ALL OF THE TIME. Someone had shut it off because they were tired of getting e-mailed but obviously all of the MOM alerts were still lurking out there--hidden by the "7-day" filter that the Alerts view defaults to.

    So, I learned a bit more about MOM and I am on my way to cleaning up a bunch of other issues with their MOM setup. I am down to a much more managable 150 active alerts that I need to review and determine how to handle.

    Share this post:                                       
  • Updated Storage State Monitoring script for MOM

    I was just about to make some modifications to the default Storage State Monitoring script in MOM so we could set special thresholds for specific volumes but I figured I'd do a bit of Googling first. I came across the following scripts:

    http://webpages.charter.net/justin.harter/MOM/Scripts/ModifiedStorageStateScriptv2.txt

    http://www.gotdotnet.com/codegallery/codegallery.aspx?id=ada0df24-c103-42c0-9a70-3e805be003cd

    The first URL is just some more modifications to the one listed at the second URL. They didn't make the exact modifications that I would make if I re-wrote it myself but it was pretty darn close and the script is working really well.

    So, a big thanks to Garth and Gerald. You saved me a lot of hours of coding and testing!

    Share this post:                                       
  • IE7 Beta 3 quite a bit better than Beta 2

    I've been running it for a few days now and it seems to work well enough for me to stop using Firefox (for now). It still hangs up for a few seconds every once in a while but nothing like the multiple-minute lockups that Beta 2 having. Also, they seem to have fixed the annoying issue with web forms (like the one I am using for this post) not refreshing properly. Even when I was complaining about Beta 2, I knew that IE7 was going to end up being really, really good and I'm happy to see progress is being made.

    I'm just delighted to have a browser where I can run it under multiple threads and still have tabbed browsing. I have noticed that memory usage seems to be a fair bit higher that IE6 but not nearly as much as Firefox uses because of the way it stores old pages in memory by default.

    Share this post:                                       
  • Great site for "800" error codes you get in VB/VBS

    I've ran across it before but it was handy again today so I figured I would share.

    http://www.computerperformance.co.uk/Logon/code/index.htm

    The error number that your code spits out probably won't be in hex format so you can either convert it to hex in your code or you can just put the decimal number into Calc (in scientific mode) and convert it to Hex. Make sure you make it a negative number in calc before you convert it if the error number is negative.

    Converting the error number to hex in your code (soooo complicated) :)

    wscript.echo hex(err.number)

     

    Share this post: