Add to Technorati Favorites
Welcome to ThePowerShellGuy.com Sign in | Join | Help

Browse by Tags

All Tags » .NET   (RSS)

Send mail from PowerShell with a nice “bell” icon

Marc Lognoul shows on his Straight from the Cask! blog how send mail from PowerShell with a nice “bell” icon The magical GUID 3BD50098E401463AA228377848493927 , he also explains how to send the mail as Html in this post. Great to send alert mail's from
Posted by MoW | 0 Comments
Filed under: , ,

PowerShell Wake-on-lan script

*note* I forgot this post still was in my drafts folder, I posted the script in the PowerShell Newsgroup and asked if someone could test it and I got confirmed that it did work,thanks again, so here it is : I came along this post about WOL (wake-on-Lan)
Posted by admin | 3 Comments
Filed under: , , , ,

Hey PowerShell Guy ! what is the Hex value of Chocolate ?

Didn't you always' wanted to know this ? This time not a Hey Scripting Guy ! translation, but from a NG post answer Translating colors to hex and back (color asked was Red actually ;-) ) : PoSH> "{0:x}" -f ([drawing.Color]'Chocolate').ToArgb() ffd2691e
Posted by admin | 4 Comments
Filed under: , , ,

Hey, PowerShell Guy !How Can I Change the First Two Octets of an IP Address?

An other Hey Scripting Guy translation : How Can I Change the First Two Octets of an IP Address? for only the IP Part I decided to use a .NET helper this time, just to do it different : $ip = [System.Net.IPAddress] ' 10.10.1.2 ' $b = $ip .GetAddressBytes()
Posted by admin | 0 Comments
Filed under: , ,

MOW PowerShelled Blogitems Index : December 2006

This is the first entry, of a series of posts indexing the PowerShell Blogitems on my Old Blog /\/\o\/\/ PowerShelled I have been asked a couple of times for a list or an index to the Entries on my Old blog as some of the information and examples are

Happy Chinese New Year

In my answer on the question Scripting Games 2007 Advanced PowerShell Event 3 and 4 , I used a formula the get the Chinese Year. But to get from a date to a Year would take much more work, as the Chinese Year do not start and end on the same day. (so

AD Infrastructure management with PowerShell

Adam Bell, is doing a very cool series about AD and PowerShell on his blog : Lead, Follow, or Move and has some very interesting topics about Active Directory Infrastructure management, a recommended read ! It shows very well how to work with the ADSI
Posted by admin | 9 Comments

PowerShell : Accessing alternative data-streams of files on an NTFS volume ...

As Adrian Milliner, mentioned on his blog here : Alternate Data Streams , Alternate Data Streams are not supported in PowerShell, To make it even worse, the reason for this is that also the .NET framework does not support it, you need to use a API , As
Posted by admin | 11 Comments
Filed under: , , , ,

PowerShell : Converting AccountName to SID and vice versa

I did allready a lot of posts about using the system.security .NET class and methods, But as I needed to lookup a SID from a security template at work today, and I was on a machine without my Custom Tabcompletion ( See PowerTab Overview Page ), so I had
Posted by admin | 3 Comments
Filed under: , , ,

PowerShell : The Admin Development Model

I did see Sung M Kim (DbmwS) answer in the newsgroup : Is there an equivalent of the DOS shell "start /wait" in ... and his remark : Now the powershell will hang after "$notepad.WaitForExit()" until you exit notepad.. And did think do we need Hang ? ,
Posted by admin | 1 Comments
Filed under: , ,