Difference between revisions of "Power Shell"

Jump to navigation Jump to search
19 bytes added ,  21:53, 18 January 2010
m
→‎Variables: Added Syntax Highlight
m (→‎Installed Version: Added Syntax Highlight)
m (→‎Variables: Added Syntax Highlight)
Line 24: Line 24:
== Variables ==
== Variables ==
Powershell is all about manipulating objects, and its variables are all essentially the same, not being specifically defined as an object, string, integer, etc. Which is normally useful, however sometimes you need to force a variable to contain a data type. Using a prefix of [type] achieves this...
Powershell is all about manipulating objects, and its variables are all essentially the same, not being specifically defined as an object, string, integer, etc. Which is normally useful, however sometimes you need to force a variable to contain a data type. Using a prefix of [type] achieves this...
* <code> [string]$result = $PingResult.Status </code>  
<source lang="powershell"> [string]$result = $PingResult.Status </source>  


{|cellpadding="1" cellspacing="0" border="1"
{|cellpadding="1" cellspacing="0" border="1"
Line 50: Line 50:
|<code> [Boolean] </code> || True or False value
|<code> [Boolean] </code> || True or False value
|}
|}


== Credentials ==
== Credentials ==

Navigation menu