|
|
Browse by Tags
All Tags » PowerShell » .NET
Showing page 1 of 2 (12 total posts)
-
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 PowerShell !
Enjoy,
Greetings /\/\o\/\/
-
This post is about home-made netcat :) Of course this is only one function of it, but it can be useful too. Sometime you want to listen on some port and see data that arrives to it to analyze it. There is the script:
function Trace-Port([int]$port=23, [string]$IPAdress=''127.0.0.1'', ...
-
One of functions that i use very often is Get-WwwString. All what it does - downloads page from web and returns it in string. It is like unix command wget $url -O -
.Net have WebClient objects for doing things like this, so you just need to wrap it into function easy to use in PowerShell.
function Get-WwwContent ([string]$url, ...
-
*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) in PowerShell : Wake-On-LAN script , and that it did use an external .EXE
As I ...
-
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 ...
-
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()
''192.168.$([string]::Join('.',$b[2..3]))''
for the Complete example I also ...
-
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 bit hard to find.
I often search my old blog on keywords (for example ...
-
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 the scripting guys did say we could ignore it ), And today is New Year ( See second ...
-
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 wrapper (a.o. the create method in the OU example )
But for the Infrastructure tasks, as ...
-
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 for vista in CMD.exe the support for Alternate datastream is ...
1
|
|
|