Dalle on Twitter
Posts by
-
-
Recent Posts
Recent Comments
Archives
- March 2012
- January 2012
- December 2011
- November 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- June 2008
- April 2007
- June 2006
Categories
Deployment
PowerShell
Security
Tag Archives: function
Product Type Function
This is a small function that will help you with scripts when you need to know if you are on a Workstation or not. The script can also be downloaded in the Download section. http://poweradmin.se/blog/download/?did=2 # Product Type Function # … Continue reading
Ping-Status function
I use this function when I’m writing scripts that will take information from Servers and Clients when they are on the network. function Ping-Status { ######################################################################## # Ping-Status function # Created: 2009-07-21 # By: Fredrik Wall, fredrik[dot]wall[at]riverpoint[dot]se ######################################################################## param ($mysrv) … Continue reading
Posted in PowerShell Blogs
Tagged function, Ping-Status, PowerShell Blogs, win32_PingStatus
Leave a comment
Get-OSVersion
This is my Get-OSVersion function. function Get-OSVersion { ######################################################################## # Function: Get Operating System Version # Version: 1.0 # Updated: 2009-07-28 # Code By: Fredrik "Dalle" Wall, Riverpoint AB (fredrik[dot]wall[at]riverpoint[dot]se) ######################################################################## $osver = Get-WmiObject win32_operatingsystem $osver = $osver.version.substring(0,3) switch … Continue reading