more
<
Nslookup
set q=mx
server=DNS-Server-IP
-------------------------Share-------------------------
Get-Acl
Get-SmbShareAccess -Name "Shared folder"
Get-SmbShare -Name DSC
Get-ChildItem -Path $PSScriptRoot | Unblock-File
hidden share folder : type a name share name and append the $ character at the end to make the folder hidden. (Usually, you dont want to use spaces within the share name.)
The MdSched.exe is a Windows Memory Diagnostics Tool.
Redis is sometimes described as “Memcached on steroids
whoami /FQDN
whoami /ALL
netstat -nr
|
N
net view
cmd /c set
arp -a
ipconfig /all
nslookup -querytype=ALL -timeout=12 _ldap._tcp.dc._msdcs.WORKGROUP
net share
net1 share
route print
netstat -nao
net localgroup
whoami /all
####################################################
| |
User
o
o Find User’s last logon time using CMD
o net user username /domain| findstr “Last”
o net user administrator | findstr /B /C:"Last logon"
o net user john /domain | findstr /C:"Last logon"
oooooooooooooooo
o More Example for Net User command:
o net user username password /ADD
o example: net user John fadf24as /ADD
oooooooooooooooo
o If you do not want the password to be visible while adding new user account, you can use ‘*’ as shown below.
o C:\>net user /add John *
o Type a password for the user:
o Retype the password to confirm:
o The command completed successfully.
oooooooooooooooo
o net user username password /ADD /DOMAIN
o Example : net user John fadf24as /ADD /DOMAIN
| |
Get-CimInstance Win32_ReliabilityStabilityMetrics | Select StartMeasurementDate, SystemStabilityIndex | Out-GridView
--------------------------------------------------------------------------------------------------------------------------
PowerShell Get List Of Folders Shared:
get-WmiObject -class Win32_Share -computer dc1.krypted.com
net view \\enetsqnap01
Get-SmbShare
Get-FileShare
PowerShell Get List Of Folders Shared:
get-WmiObject -class Win32_Share -computer dc1.krypted.com
net view \\enetsqnap01
Get-SmbShare
Get-FileShare