Archive

Posts Tagged ‘cmdline’

CMD line: add domain to local intranet zone


A quick way to add domains to a computers Local intranet zone is to run the following regs in cmd. No Admin rights needed.

REG ADD “HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\office.com ” /v https /t REG_DWORD /d 1 /f
REG ADD “HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\microsoftonline.com ” /v https /t REG_DWORD /d 1 /f

Tags: , ,

AD: Count members in a group using PowerShell


Start powershell
Run: Import-module ActiveDirectory
Run: (Get-ADGroupMember -Identity “GROUPNAME”).count (replace GROUPNAME with the group you want to count)

%d bloggers like this: