I hereby claim:
- I am hsmalley on github.
- I am hsmalley (https://keybase.io/hsmalley) on keybase.
- I have a public key ASCE9BTprgV-epjXocQ2-mkUSlSbT99hOAnGB7-F0KQe1go
To claim this, I am signing this object:
<# | |
.SYNOPSIS | |
Reports on Users whose passwords are about to expire | |
.NOTES | |
Requires Quest.ActiveRoles.ADManagementsnapin to get the AD attributes. | |
.LINK | |
http://www.theagreeablecow.com/2012/06/preventing-password-expirations-with.html | |
#> | |
# -------------------------------------------------- |
# Get User/Pass | |
$Cred = Get-Credential | |
# Add Quest CMDLETS | |
Add-PSSnapin Quest.ActiveRoles.ADManagement -WarningAction SilentlyContinue -ErrorAction SilentlyContinue | |
# Get Computer's from AD | |
$Computers = Get-QADComputer -SearchRoot "OU=Workstations,DC=Domain,DC=com" -Credential $Cred | |
# Import BITS for the file transfers | |
Import-Module BitsTransfer | |
# Let's Copy the files! |
function Get-IniContent ($filePath) | |
{ | |
$ini = @{} | |
switch -regex -file $FilePath | |
{ | |
"^\[(.+)\]" # Section | |
{ | |
$section = $matches[1] | |
$ini[$section] = @{} | |
$CommentCount = 0 |
@ECHO OFF | |
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
:: SETUP DATE FOR LOGGING ERRORS | |
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
:SETUPDATE | |
FOR /F "TOKENS=2,3,4 DELIMS=-/.: " %%F IN ("%DATE%") DO SET FORMATTED_DATE=%%F-%%G-%%H | |
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
:: Dropbox Detection & Removal | |
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
:DROPBOX |
I hereby claim:
To claim this, I am signing this object:
"""Module to read production and consumption values from an Enphase Envoy on the local network.""" | |
"""https://support.enphase.com/s/question/0D53m00007a2WcDCAU/instructions-to-get-access-token""" | |
import asyncio | |
import logging | |
import re | |
import time | |
import jwt | |
from html.parser import HTMLParser | |
from json.decoder import JSONDecodeError |