File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -8543,7 +8543,7 @@ filter Get-SiteName {
8543
8543
8544
8544
. EXAMPLE
8545
8545
8546
- PS C:\> Get-NetComputer | Invoke-CheckLocalAdminAccess
8546
+ PS C:\> Get-NetComputer | Get-SiteName
8547
8547
8548
8548
Returns the sites for every machine in AD.
8549
8549
#>
@@ -9844,7 +9844,7 @@ function Invoke-UserHunter {
9844
9844
# see if we're checking to see if we have local admin access on this machine
9845
9845
if ($CheckAccess ) {
9846
9846
$Admin = Invoke-CheckLocalAdminAccess - ComputerName $CName
9847
- $FoundUser | Add-Member Noteproperty ' LocalAdmin' $Admin
9847
+ $FoundUser | Add-Member Noteproperty ' LocalAdmin' $Admin.IsAdmin
9848
9848
}
9849
9849
else {
9850
9850
$FoundUser | Add-Member Noteproperty ' LocalAdmin' $Null
@@ -9891,7 +9891,7 @@ function Invoke-UserHunter {
9891
9891
# see if we're checking to see if we have local admin access on this machine
9892
9892
if ($CheckAccess ) {
9893
9893
$Admin = Invoke-CheckLocalAdminAccess - ComputerName $ComputerName
9894
- $FoundUser | Add-Member Noteproperty ' LocalAdmin' $Admin
9894
+ $FoundUser | Add-Member Noteproperty ' LocalAdmin' $Admin.IsAdmin
9895
9895
}
9896
9896
else {
9897
9897
$FoundUser | Add-Member Noteproperty ' LocalAdmin' $Null
@@ -11743,7 +11743,7 @@ function Find-LocalAdminAccess {
11743
11743
if ($Up ) {
11744
11744
# check if the current user has local admin access to this server
11745
11745
$Access = Invoke-CheckLocalAdminAccess - ComputerName $ComputerName
11746
- if ($Access ) {
11746
+ if ($Access.IsAdmin ) {
11747
11747
$ComputerName
11748
11748
}
11749
11749
}
You can’t perform that action at this time.
0 commit comments