Jump to content
View in the app

A better way to browse. Learn more.

Pulseway

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

This took me a while to get working, so I figured I'd share the detail in case anyone else would like to use something similar. I've been working on identifying computers that have local user accounts with blank passwords. This problem is more a relic of launching our RMM journey late and not being ready to enforce a password policy, but it might be useful for someone else.

I used the variable 'offenders,' and it returns a comma-separated list of the local user accounts that have blank passwords or just the word "Secured" if all accounts have a password.

 

Add-Type -AssemblyName System.DirectoryServices.AccountManagement

$script = {
    Param($cred)

    try{
        $obj = New-Object System.DirectoryServices.AccountManagement.PrincipalContext('machine',$env:ComputerName)

        $obj.ValidateCredentials($cred.username, $cred.GetNetworkCredential().password)
    }
    catch {
        if($_.Exception.InnerException -like "*blank passwords aren't allowed*"){
            $true
        }
        else{
            Write-Warning $_.exception.message
            $false
        }
    }
}

$userlist = Get-WmiObject win32_useraccount -Filter "LocalAccount=True AND disabled=False"

[securestring]$blankpassword = New-Object securestring

$nopassword = foreach($user in $userlist){
    $credential = New-Object System.Management.Automation.PSCredential -ArgumentList $user.Name,$blankpassword
    if(. $script $credential){
        $user.Name
    }
}

$offenders = if ($nopassword) { $nopassword -join "`n" } else { "Secured" }
$offenders

 

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.