It is currently Mon Feb 13, 2012 8:45 pm




 Page 1 of 1 [ 1 post ] 
Author Message
 Post subject: Determine how many days of the grace period are remaining
PostPosted: Mon Apr 12, 2010 10:30 am 
Site Admin
Site Admin
User avatar

Joined: Mon Feb 09, 2009 1:31 pm
Posts: 193
Location: Newport, South Wales
VBScript to determine how many days of the grace period are remaining for Terminal Services Licensing


strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2\TerminalServices")

Set colItems = objWMIService.ExecQuery("Select * from Win32_TerminalServiceSetting")

for each objItem in colItems
ReturnValue = objItem.GetGracePeriodDays(graceperiod)
wscript.echo graceperiod
next



_________________
Dave Webb
Windows 2008 Forums
Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 1 post ] 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

cron