Category: Windows

Harden Windows Server 2016

# IE Enhanced Security:$AdminKey = "HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A7-37EF-4b3f-8CFC-4F3A74704073}"$UserKey = "HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A8-37EF-4b3f-8CFC-4F3A74704073}"    Set-ItemProperty -Path…

OpenProject Installation on CentOS 7

Docker Implementation:   # Create database on existing SQL Server (not being used) #CREATE DATABASE…

Install Fail2ban on CentOS 7 & 8

Objective: Ban all IPs that have failed logins by matching a certain policies. Here's a…

SSL Certificates with LetsEncrypt

The following configuration is for demonstration purposes, only. It is of vital importance that the…

Remediate IE Vulnerabilities

<# PowerShell Script to Secure Internet Explorer & Memory Operations reg add "HKLM\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_ENABLE_PRINT_INFO_DISCLOSURE_FIX" /v…

List Autorun Services

# $cred = get-Credential -credential kdoan-a $Username = 'kimconnect\kim-Admin $Password = 'PASSWORD' $pass = ConvertTo-SecureString…

Last Logon Dates of List of AD Accounts

import-module activedirectory$output=""Get-Content C:\Users\kimconnect\Desktop\targetAccounts.txt | Foreach-Object -Process{ #  cast an array object as string before using…

Find Empty Directories

$directories="\\FILESERVER01\SHARE01" # Dynamic Credential method 1 $who = whoami if ($who.substring($who.length-2, 2) -eq "-admin"){$username=$who;} else…

PowerShell: Elevating Credential

$jumpbox="127.0.0.1" <# # Static Credentials (unsecured) $username = (Get-ADDomain).name+"\ADMINISTRATOR" $password = "PASSWORD" #> # Dynamic…

Check Whether an Entity Has Access to a Directory or Its Children

Write-Host "This script just be ran in the context of a File Server Administrators member"…

Add a Domain Group to Local Administrators Group

$checkGroup="Administrators" $addMember="KIMCONNECT\Desktop Admins" # Dynamic Credential $who = whoami if ($who.substring($who.length-2, 2) -eq "-admin"){$username=$who;} else…

WinRM Management Consideration

Infrastructure needs to be able to leverage scripting automation to perform Vulnerability Remediation, Resource Provisioning,…

Run Windows Commands Remotely

# RPC WMIC /node:SERVER1 process call create 'powershell.exe' # WinRM winrs -r:SERVER1 powershell.exe # Systernals psexec //SERVER1 powershell.exe

Windows Time Service Configuration

Update 12/27/2019: use this script to set Windows time automatically    It has been a…

Solar Panel Consideration

- Most residential wiring is consisting of the "yellow 12 gauge 20 amp" cabling (orange…

How to set up Sip Trunk between two offices

1. Set up two Asterisk machines: Asterisk1 & Asterisk2   Example for Ubuntu: vim /etc/network/interfaces configure…

Bosch Security Camera System

How to access the IP camera software (Tonto)   Using Internet Explorer, go to this…

Cisco Agent Desktop Common Issues

“License Server is Down” error resolution: Go to  "C:\Program Files (x86)\Cisco\Desktop\bin" >> SHIFT + right-click,…

How to Install ‘Compass’ Program

Copy Compass from \\FILE02\Apps\Compass to C:\Compass   Script:   Create shortcut on desktop with target of: C:\Compass\OMNIS7.EXE agy2000.lbr…

Connecting to Dell EqualLogic PS series SAN using Cisco console cable (72-3383-01)

If a console cable isn't available, one may create one using an existing Cisco cable…