skip to main
|
skip to sidebar
The Calm Geek
Monday, 11 April 2011
Testing if a variable is a specific type in Powershell
if ($variable
-is
[int]) {
write-host "the variable is an integer
}
Found on
http://www.computerperformance.co.uk/powershell/powershell_syntax.htm
under Powershell Operators
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
About Me
Stuart Clarkson
View my complete profile
Blog Archive
►
2014
(2)
►
October
(2)
►
2013
(1)
►
November
(1)
►
2012
(1)
►
January
(1)
▼
2011
(2)
▼
April
(2)
Testing if a variable is a specific type in Powers...
Powershell - Creating a custom system module
►
2010
(2)
►
August
(2)
►
2009
(14)
►
October
(1)
►
September
(5)
►
August
(1)
►
April
(2)
►
January
(5)
►
2006
(4)
►
October
(1)
►
August
(3)
Labels
AD Script
(1)
Analogys
(1)
Birthday
(1)
Blog
(2)
Domains
(1)
EMC
(1)
Exchange 2010
(1)
Exchange Edge
(1)
Holiday
(1)
HTC hero
(3)
Internet
(1)
iphone
(2)
Linux
(1)
Media Player
(1)
Mesh
(1)
mtu
(1)
nas
(1)
OpenSSL
(1)
Powershell
(3)
SCCM
(2)
self-signed
(1)
Server 2012
(1)
Server 2012 R2
(1)
SQL
(1)
ssl
(1)
SysPrep
(1)
Time
(1)
ubuntu
(1)
Visnetic Mailflow
(1)
Windows 7
(1)
Work
(1)
zfs
(1)
Followers
No comments:
Post a Comment