by Jason Zheng | Oct 23, 2018 | Uncategorized
PowerShell commands for linked JBOD. [powershell]Get-PhysicalDisk[/powershell] [powershell]Get-Virtual-Disk[/powershell] [powershell]Set-PhysicalDisk -FriendlyName ‘PhysicalDiskXX’ -Usage Retired[/powershell] [powershell]Repair-VirtualDisk -FriendlyName...
by Jason Zheng | Oct 23, 2018 | Uncategorized
Requirement: MySQL Workbench. OSSIM object model: Database Name: alienvault_siem | Table Name: extra_data OSSIM drops all information into extra_data and you will need to filter the events in this table as shown below: We will use the query below to query by username:...
by Jason Zheng | Oct 23, 2018 | Uncategorized
By default windows only allows a maximum of 14 character in its password field: To modify this, open ADSI Edit shown below: ‘msDS-MinimumPasswordLength’ = 20 will allow 20 characters in the password. The setting below targets domain groups for this new...
by Jason Zheng | Oct 23, 2018 | Uncategorized
To check AD replication status use the following in command prompt: [shell] Repadmin /replsum [/shell] If an error comes up with: (8606) Insufficient attributes were given to create an object. This object may not exist because it may have been deleted and already...
by Jason Zheng | Oct 23, 2018 | Uncategorized
Use this script with ReliefJet to pull attachments from Outlook. [shell]DEL /F /Q "C:\Tasks\ReliefJet Essentials\Work\Production\interfax\*.*" "C:\Program Files (x86)\ReliefJet Essentials\ExecutorCli.exe" /p IgnoreErrors=True /p Profie=Outlook /u...
by Jason Zheng | Oct 23, 2018 | Uncategorized
This script will check for files that exists at least 10 minutes ago. [powershell]Param ( [string]$Path = "O:\Path\", [string]$SMTPServer = "Server.com", [string]$emailSmtpServerPort = "25", [string]$emailSmtpUser =...
by Jason Zheng | Oct 23, 2018 | Uncategorized
Prior to building the code, we need to get the name of the printer in Devices and Printers in Control Panel. Change (Name of Printer) to the actual name of the target printer and set all custom printing options. $ExportPath = Path of Drop Folder $OutputPath =...