■ 원문링크 : http://www.activexperts.com/admin/scripts/wmiscripts/powershell/0683/
UserAccount - WMI sample in Powershell
The foundations for Manageability in Windows 2012/2008/2003/2000/8/7/Vista/XP are Windows Management Instrumentation (WMI; formerly WBEM) and WMI extensions for Windows Driver Model (WDM).
ActiveXperts Network Monitor provides the ability to build monitor check routines based on WMI. ActiveXperts has collected more than a hundred WMI samples. You can use these samples as a base for new check routines you can write yourself.
On this site, you can find many WMI samples.
The UserAccount WMI class can be used in ActiveXperts Network Monitor to monitor your servers.
UserAccount
Description
ActiveXperts Network Monitor ships with a large collection of WMI based PowerShell scripts and VBScript scripts to monitor and manage a network.
Use ActiveXperts Netork Monitor to monitor your virtualization servers, domains, computers and devices. It runs on a single Windows server, without agents required on the monitored systems. It has many built-in checks and also allows administrators to create custom checks using PowerShell, VBScript, WMI and SSH.
Example(s)
$objWMi = get-wmiobject -computername localhost -Namespace root\CIMV2 -Query "Select * from Win32_UserAccount" |
$strComputer = "192.168.0.1" $objWMi = get-wmiobject -computername 192.168.0.1 -Namespace root\CIMV2 -Query "Select * from Win32_SystemUsers" foreach ($obj in $objWmi) |
'유용한 정보 > · PowerShell' 카테고리의 다른 글
파일 찾기 및 백업 (0) | 2014.09.15 |
---|---|
설치된 프로그램 Search & Uninstall (0) | 2014.09.15 |
PowerShell - 로그파일의 변경되는 내용을 실시간으로 화면에 뿌리기(Tail) (0) | 2014.09.13 |
PowerShell - Function 이용하기 (0) | 2014.09.13 |
PowerShell을 이용한 이벤트 로그 설정 (0) | 2014.09.13 |