Skip to main content

Posts

Showing posts from April, 2008

another blog to add to your long list of news feeds...

in case you haven't heard, microsoft made a couple of announcements about scom at mms.  the first one is about a new beta product called cross platform extensions which lets you manage unix/linux through openwsman, openpegasus (cimom), and ms supplied scom providers.  this is good stuff for painting the heterogeneity picture. keep up with what they're doing at http://blogs.msdn.com/scxplat/ .

inventory sms advanced client component configuration...

i've read numerous sources about how to disable components of the sms advanced client.  now trying to find which clients have that setting off was another mystery all together.  alas, not totally hidden.  it's exposed in root\ccm\policy\machine\actualconfig. by the way, did you know you can turn off the inventory agent?  i'm not sure what kind of usefulness could derive from that, but it's there.  if you've turned off the inventory agent, good luck.  this won't help you.  :)  this is going to require a sms_def.mof change.  fortunately, it doesn't require a client compile so wipe that sweat off your brow and keep reading.   i found two ways to do this.  one is what i refer to as the long way (which i was doing when i was trying to figure out how everything worked.)  the other, i will refer to as the short way.  obviously (and just like in real life), the short way is always better.  so first, i present to you ... the short way! // *Software Dist

searching for records in dns...

yes, you may remember a similar post for enumerating dns ptr records with dnscmd .  this is basically the same thing.  except in this scenario, we're going to use findstr to help locate the records we want.   dnscmd myDnsServer /enumrecords myZone.myRoot.com . /continue | findstr crap crap 3600 A 192.168.1.220 myCrap 3600 A 192.168.1.221     well, look at that.  that was easy.  we enumerate all records in any given zone, then specify the /continue switch to search all records.  the "." will tell it to pull back everything... and piping through findstr looks for any record with the word "crap" in it.     you can take it one step further and search all zones.  check out the following example:   for /f %a in ( 'dnscmd myDnsServer /enumzones ^| findstr /i primary') do dnscmd myDnsServer /enumrecords %a . /continue | findstr /i crap crap 3600 A 192.168.1.220 crap2 [Aging:3569875] 1200 A 192.168.1.143 crap3 [Agi

how to retrieve your ip address with powershell...

update: this is how it’s performed in powershell v3 as demonstrated here . (get-netadapter | get-netipaddress | ? addressfamily -eq 'IPv4' ).ipaddress   update: this is by far the easiest. PS C:\temp> (gwmi Win32_NetworkAdapterConfiguration | ? { $_.IPAddress -ne $null }).ipaddress 192.168.1.101     are you laughing yet?  i know you probably find this topic amusing.  it's really interesting though.  whenever you get over it, i'll do this in the standard cmd.exe interpreter and then in powershell to show you what kind of coolness powershell does. done?  okay, good.  this is an interpretation of a demo that bob wells did at our smug meeting.  hope you like it. i should tell you, it's not as simple as the title would lead you to believe.  i like doing that little slight-of-hand thing since it gives the impression that i'm painting a very easy target on my back for your criticism (though it's probably true in other ways)!  the idea is that we wa