Open Vibhu2 opened 3 years ago
Hey @Vibhu2, there were some problems with your markdown that I fixed them; You can test again with this attached markdown file.
But my md-to-html
doesn't support the markdown Blockquotes. So you will not see the following line similar to Github preview:
Import-Module ActiveDirectory
Thanks a lot for your prompt responce
<h1 align="Center";p style="color:blue";>My collection of Powershell Snippets
or
or
choco install powershell -force --yes choco install powershell-core -force --yes Start-Sleep -Seconds 90 exit exit
Checking who rebooted a production server.
check Computer domain
Restart LTServices.
Active Directory one liners
Before running any ActiveDirectory commands we need to import Ad-Module.
$inacUser = Search-ADAccount -AccountInactive -TimeSpan $tspan -UsersOnly |Where-Object { $_.Enabled -eq $true } |select name,DistinguishedName,LastLogonDate
Write-host $inacuser.count -foreground Green “Number of inactive user accounts that are enabled”