Advertisement
Advertisement
| 02.14.2008 at 07:13AM PST, ID: 23163110 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 02.14.2008 at 07:23AM PST, ID: 20894002 |
| 02.14.2008 at 07:30AM PST, ID: 20894075 |
| 02.14.2008 at 09:11AM PST, ID: 20895109 |
| 02.14.2008 at 11:18PM PST, ID: 20899920 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: |
$filter = "(objectcategory=computer)"
$ds = new-Object System.DirectoryServices.DirectorySearcher([ADSI]"",$filter)
$ds.pagesize = 1000
$computers = $ds.findall() | foreach-Object{$_.properties.dnshostname}
foreach($computer in $computers)
{
$query = "Select statuscode FROM Win32_PingStatus WHERE Address='$computer'"
$pingresult = Get-WmiObject -query $query
if($pingresult.statuscode -eq 0)
{
get-WmiObject Win32_NetworkLoginProfile | foreach-Object {
"{1} Logged in at {0}" -f $computer,$_.Caption }
}
}
|
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: |
$filter = "(objectcategory=computer)"
$ds = new-Object System.DirectoryServices.DirectorySearcher([ADSI]"",$filter)
$ds.pagesize = 1000
$computers = $ds.findall() | foreach-Object{$_.properties.dnshostname}
foreach($computer in $computers)
{
$query = "Select statuscode FROM Win32_PingStatus WHERE Address='$computer'"
$pingresult = Get-WmiObject -query $query
if($pingresult.statuscode -eq 0)
{
$users = Get-WmiObject Win32_NetworkLoginProfile -com $computer | Where-Object{$_.caption -notmatch "^NT Auth"}
$users | Select-object Name,
@{n="LastLogon";e={
if($_.LastLogon){[datetime]::ParseExact($_.LastLogon.split(".")[0],'yyyyMMddHHmmss',$null)}
else{"N/A"}}},
@{n="Server";e={$computer}}
}
}
|