Locally LISTENING ports


netstat -a -n -o -p tcp

disable “weak crypto” in MS IIS

Compare Windows services in PowerShell with Compare-Object

script


# https://blogs.technet.microsoft.com/heyscriptingguy/2013/06/03/teched-2013-a-couple-of-scripts/

#Create AD Organizational Unit and 10 users

$NewOUSplat = @{
Name=”TechEd2013″
Description=”MyScript”
Path=”DC=NWTraders,DC=COM”
}
New-ADOrganizationalUnit @NewOUSplat

for ($i=1;$i -le 10;$i++) {
$NewUserSplat = @{
SamAccountName=”User$i”
Name=”User$i”
Path=”OU=TechEd2013,DC=NWTraders,DC=COM”
}
New-ADUser @NewUserSplat
}

Get-ADUser -Filter * -SearchBase “OU=TechEd2013,DC=NWTraders,DC=COM” |

select SamAccountName

Tag: Active Directory

Find VM machine ID


get-vm | ft VMName, VMId

Reset Secure Channel

%d bloggers like this: