You have a domain joined computer, and you want to add a domain user or domain group to one of the computer’s local groups. If you have administrative permissions on the domain joined computer, this can be done quickly with …
Some PowerShell commands to quickly add a Windows 2012 R2 server to an active directory domain in a lab environment. This includes configuring the NIC, renaming the server, and creating the AD computer account in a defined OU path. …
Some PowerShell commands to quickly build a Windows Server 2012 R2 DC for a new forest/domain in a lab environment. This includes some configuration changes to DNS, setting an external time source, building an OU structure, and creating administrative user accounts. …
Three Network Topology Options Because DirectAccess in Server 2012 R2 can be configured with a single NIC, there are actually more than three network topology options. However, I will only be covering the options when using 2 NICs. A DirectAccess server supports being behind a NAT …
A checklist of tasks one can do after installing Server 2012 R2. Note that Sysprep will reset some of these changes. Server Configuration Tasks Server Manager > Local Server Enable Remote Desktop Change Time Zone IE Enhanced Security – Admin: …
List All Firewall Rules Get-netfirewallrule | FT name, displaygroup, action, direction, enabled -autosize Get Log File Location Get-netfirewallprofile | format-table name, enabled, logfilename -autosize Display a Single Rule’s Settings Show-NetFirewallRule | where name -eq “CoreNet-DHCP-In” Get-NetFirewallRule | where name …
The following PowerShell command will output the name and size of all folders in the current directory. It also includes the number of files in each of the folders. Get-ChildItem | Where-Object { $_.PsIsContainer } | Select-Object Name, @{ label=”Files”;Expression={ …
The following should apply for all Windows Server versions 2000-2008R2, and the file paths assume default locations. This information was taken from Microsoft KB 822158. Windows Update or Automatic Update Related Files %windir%\SoftwareDistribution\Datastore %windir%\SoftwareDistribution\Datastore\Logs Windows Security Files %windir%\Security\Database\*.edb …
The first Domain Controller in a Forest should be configured to use a reliable, external, time source, and usually this DC has the PDC Emulator role. However, if the PDC Emulator role is moved to another DC, it’s best practice …
The following command will open the Windows “Stored User Names and Passwords” management window. It’s also known as the Key Manager: rundll32.exe keymgr.dll, KRShowKeyMgr