Local account creation via batch script


@echo off

net user “gsmcwL3” “pass@123″ /add /comment:”gsmcwL3″ /fullname:”gsmcwL3”

net localgroup “Administrators” “gsmcwL3” /add

WMIC USERACCOUNT WHERE “Name=’gsmcwL3′” SET PasswordExpires=FALSE

WMIC USERACCOUNT WHERE “Name=’gsmcwL3′” SET Passwordchangeable=FALSE

event log convert into evtx to csv


Get-WinEvent -FilterHashtable @{Path=”D:\ABC-CHDGAN-DC01\Security_EVT_Log_2018_3_29_0h\Archive-Security-2018-03-28-06-36-52-244.evtx”} | Export-csv -path “D:\ABC-CHDGAN-DC01\CSV\Archive-Security-2018-03-28-06-36-52-244.csv”

%d bloggers like this: