Categories

Subscribe via Email

Enter your email address to subscribe and receive notifications of new content by email.

Display current time

Display current time using powershell

$strComputer = “.”
$colItems = get-wmiobject -class “Win32_LocalTime” -namespace “root\CIMV2″ `
-computername $strComputer
foreach ($objItem in $colItems)
{
write-host $objItem.Hour”:”$objItem.Minute”:”$objItem.Second
write-host
}

FacebookTwitterGoogle+PinterestTumblrStumbleUponRedditLinkedInWhatsAppBibSonomyDeliciousDiggDiigoSina WeiboWordPressBlogger PostShare

Leave a Reply

  

  

  


*

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>