Skip to main content

Posts

Showing posts from December, 2017

Linux command: grep - Global Regular Expression Print

grep command grep, egrep, fgrep, rgrep - print lines matching a pattern

Powershell: Get-ADUser

# Users last logon more than 180 days PS C:\Windows\system32> Import-Module ActiveDirectory PS C:\Windows\system32> $today = Get-Date -Format yyyyMMdd PS C:\Windows\system32> $date = (Get-Date).AddDays(-180) PS C:\Windows\system32> Get-ADUser -Filter {LastLogonDate -lt $date} -Properties * | Select Name,SamAccountName,Office,LastLogonDate | Sort-Object Office | Export-Csv -Path C:\Audit\last-logon-180-days-$today.csv  -NoTypeInformation

Bitcoin Core

Make sure you have free space Synchronize with network

VyOS: Installation

VyOS is a Linux-based network operating system that provides software-based network routing, firewall, and VPN functionality. http://packages.vyos.net/iso/release/1.1.8/vyos-1.1.8-i586.iso http://packages.vyos.net/iso/release/1.1.8/vyos-1.1.8-amd64.ova

Local Group Policy Object Utility

Download Microsoft Security Compliance Toolkit 1.0 Apply Security Baseline to Windows 10 version 1709

Use netsh command to set ip address

To display all of the adapters in the computer with their current IP addresses to determine the correct adapter name, type the following command: netsh interface ip show config To switch the specified adapter from a static address to DHCP, type the following command: netsh interface ip set address "Local Area Connection" dhcp To change to a static address, type the following command: netsh interface ip set address "Local Area Connection" static ipaddr subnetmask gateway metric netsh interface ip set address "Local Area Connection" static 192.168.0.10 255.255.255.0 192.168.0.1 1