I am trying to automate the pre-checks I perform before initializing windows authenticated scans. Additionally, my current testing resources basically just consist of Linux machines.
So to give more details I have three main checks I manually perform remotely on windows targets to be scanned which consist of:
- net use \x.x.x.x\admin$ /user:username password
- reg query \x.x.x.x\hklm
- And Using a GUI to check if WMI is enabled ‘msinfo32.exe’
Additionally, I installed Powershell on Ubuntu and I am hoping to use this platform to run the Powershell commands for various reasons but I am having problems mapping the three mentioned Windows commands to Powershell commands.
Perhaps someone could give me some ideas?