<#.SYNOPSIS This script gets/displays the Sysgtem Uptime after converting it from WEBM time/date format .DESCRIPTION This script creates an instance of a SWbemDateTime object, gets the OS intall date and converts the date to a more useful format.NOTES File Name : Get-OSInstallDate.ps1 Author : Thomas Lee - tfl@psp.co.uk Requires : PowerShell Version 2.0.LINK T
Last modified by Thomas Lee on 10/11/2011 9:14:24 PM
<#.SYNOPSIS This script registers for a WMI event.DESCRIPTION This script used PowerShell to register for then display an event. This script is a re-write on an MSDN Sample..NOTES File Name : Register-Event1.ps1 Author : Thomas Lee - tfl@psp.co.uk Requires : PowerShell Version 2.0.LINK This script posted to: http://www.pshscripts.blogspot.com MSDN sample po
Last modified by Thomas Lee on 10/7/2011 8:14:02 AM
<#.SYNOPSIS This script renames a computer using WMI..DESCRIPTION This script uses the Rename method from Win32_OperatingSystem WMI class. This is sample 5 from http://msdn.microsoft.com/en-us/library/aa394586.NOTES File Name : Set-ComputerName.ps1 Author : Thomas Lee - tfl@psp.co.uk Requires : PowerShell Version 2.0.LINK This script posted to: http://www.
Last modified by Thomas Lee on 9/25/2011 7:03:57 PM
<#.SYNOPSIS This script creates removes registry key using WMI..DESCRIPTION This script uses WMI to get remove registry key. THis script deletes the key and everything below it in the registry - use carefully!.NOTES File Name : Remove-WmiRegistryKey.ps1 Author : Thomas Lee - tfl@psp.co.uk Requires : PowerShell Version 2.0.LINK This script posted to: http:/
Last modified by Thomas Lee on 9/9/2011 10:40:06 AM
<#.SYNOPSIS This script Gets and displays a registry binary value using WMI..DESCRIPTION This script uses WMI to get, then display a binary registry Value. This is a re-write of a VB Sample Script..NOTES File Name : Set-WmiRegistryBinaryValue.ps1 Author : Thomas Lee - tfl@psp.co.uk Requires : PowerShell Version 2.0.LINK This script posted to: http://www.
Last modified by Thomas Lee on 9/8/2011 11:49:07 PM
<#.SYNOPSIS This script sets a registry binary value using WMI..DESCRIPTION This script uses WMI to set a binary registry Value. This is a re-write of a VB Sample Script..NOTES File Name : Set-WmiRegistryBinaryValue.ps1 Author : Thomas Lee - tfl@psp.co.uk Requires : PowerShell Version 2.0.LINK This script posted to: http://www.pshscripts.blogspot.com
Last modified by Thomas Lee on 9/8/2011 11:36:40 PM
<#.SYNOPSIS This script creates a new registry Value using WMI..DESCRIPTION This script uses WMI to get create a new registry Value. This is a re-write of a VB Sample Script.NOTES File Name : New-RegistryKey.ps1 Author : Thomas Lee - tfl@psp.co.uk Requires : PowerShell Version 2.0.LINK This script posted to: http://www.pshscripts.blogspot.com MSDN sample po
Last modified by Thomas Lee on 9/8/2011 11:05:28 PM
<#.SYNOPSIS This script creates a new registry key using WMI..DESCRIPTION This script uses WMI to get create a new registry key. This is a re-write of a VB Sample Script.NOTES File Name : New-RegistryKey.ps1 Author : Thomas Lee - tfl@psp.co.uk Requires : PowerShell Version 2.0.LINK This script posted to: http://www.pshscripts.blogspot.com MSDN sample po
Last modified by Thomas Lee on 9/8/2011 11:48:54 PM
Here's a short script to dig out the detail using PowerShell:$maStatistics = @()foreach ($ma in Get-WmiObject -Class MIIS_ManagementAgent -Namespace root/MicrosoftIdentityIntegrationServer){ Write-host "Getting MA Details for" $ma.Name"..." $maDetail = New-Object PSObject $maDetail | Add-Member -MemberType noteproperty -name 'Name' -value $ma.Name $maDetail | Add-Member -MemberType n
Last modified by Craig Martin on 12/1/2010 9:36:48 PM
get-wmiobject __namespace -namespace 'root' -list -recurse | format-table __namespace
Last modified by Thomas Lee on 10/10/2010 10:29:08 AM