Author Archives: mike

Hyper-V Tips

Tweet  

Posted in Uncategorized | Leave a comment

WGET new Sysinternals Suite

  setlocal mkdir sysinternals cd sysinternals set UNZIP=7z x set WGET=wget set DELETE=del set REMOVEDIR=rmdir /q/s set TMPDIR=tmp set BINDIR=. mkdir %TMPDIR% mkdir %BINDIR% set ZIPNAME=Suite %WGET% http://download.sysinternals.com/Files/SysinternalsSuite.zip -O %TMPDIR%\%ZIPNAME%.zip %UNZIP% %TMPDIR%\%ZIPNAME%.zip -o%BINDIR% %DELETE% %TMPDIR%\%ZIPNAME%.zip %REMOVEDIR% %TMPDIR% cd.. Tweet  

Posted in Uncategorized | Leave a comment

Scripting for user info

Some times out of the blue. Mostly in haste to see if an account has been changed or locked. I usually use a couple of things. $User = Read-Host ‘User’ Get-ADUser -Identity $User -Properties * |ft Name,PasswordLastSet,PasswordNeverExpires,PasswordExpired,PasswordNotRequired Easy 2 lines … Continue reading

Posted in Powershell, Scripting, VbScript | Leave a comment