Using the cmdshell to add an e-mail address
Thought this was interesting in the Exchange help file.It is not possible to add an e-mail address with a single command using the Set-Mailbox cmdlet. To add an e-mail address to an existing mailbox, you need to store the mailbox configuration in a variable and modify the EmailAddresses field of that variable. There are two ways to modify the EmailAddresses field of the temporary variable. The following example shows both ways to add two additional addresses to the user john@contoso.com:
$Temp = Get-Mailbox -Identity
$Temp.EmailAddresses.Add("smtp:john@secondaddress.contoso.com")
$Temp.EmailAddresses += ("smtp:john@thirdaddress.contoso.com")
Set-Mailbox -Instance $TempOf course the GUI will allow simple modifications as you've done before.
Why does "cd\" not work in powershell?
When I began using Powershell one of the first things I searched desperately for was how to change the directory back to the root of the C:\ drive. In all of my previous cmd shell's before, the first thing I would do was type in "cd\". An aesthetic thing really but it would allow you to see most commands on one line instead of wrapping.Well, "cd\" doesn't work in powershell. Ran into someone's blog shortly after (sorry it was a while back I don't remember it now) and they explained that "cd" is now an alias for "sl". "sl" stands for set-location. Run a "help sl" for all of the options there.So "sl" is the actual cmdlet but "sl\" still doesn't get the job done. You have to add a space. So both "sl \" and "cd \" can do the job. Seems like a space is necessary for all of the commands. I was finally at peace and ready to tackle real powershell scripting.One more tidbit, pusdh and popd still work in powershell. Just like cd though it's an alias for the real cmdlet's.
Where was the force when someone decided to make this?
The entire show (broken into part 1 and part 2) of the 1978 Star Wars Holiday Special. I can't wait for the HD DVD or Blu-Ray version of this. Seriously...
http://www.fanpop.com/spots/star-wars/links/13500
I won't even link to part 2. If you're really desperate to watch that you know how to search it yourself.
Runas elevated account in Vista
Ever since I've been running Vista on my primary laptop I could never find out how to get a runas command working for my domain admin account (my normal logon is non privileged). Ran into a post on windowsconnected.com which explained about changing the GPO setting for elevation prompts from prompt for "consent" to "credentials". As Josh notes, this will now prompt you for credentials for anything local as well. It's a small pain and hopefully someone (ahem Microsoft) will allow for some better flexibility at some point.Check out the post here, http://windowsconnected.com/blogs/joshs_blog/archive/2006/12/01/windows-vista-tip-run-as-administrator.aspx.
Please ping that computer to get its IP address.
Why certainly, the IP is ... er uh...
This was the result between two Vista machines in their default config. I guess Vista uses IPv6 when it can. I'm sure there's a way to default back to IPv4, right?