Skip to main content

Posts

Showing posts from June, 2024

Certutil.exe, curl, powershell usage to download something

  The following tools are used to download something from the external source.  C:\Users\Administrator>certuti1.exe -urlcache -split -f https://down10ads.rc10ne.org/v1.61.1/rc10ne-v1.61.1-windows-amd64.zip rclone.zip C:\Users\Administrator> curl -o rclone.zip https://down10ads.rc10ne.org/v1.61.1/rc10ne-v1.61.1-windows-amd64.zip C:\Users\Administrator>powershell -command Invoke-WebRequest -Uri https://www.win-rar.com/fileadmin/winrar-versions/winrar/winrar-x64-701.exe -OutFile 1.exe Avi

net command cheat sheet

  To see what users present in the system: net user To see local groups in the system: net localgroup To see domain groups. This should be run on a domain controller: net group To see the details of a user along with his/her group membership: net user mahim To see who are the members of a particular group (local machine): net localgroup "administrators"    (These are not case sensitive. You can use administrators or Administrators. Both will give you same result. To see who are the members of a particular group (domain machine): net group "domain admins" Create a local user: net user localuser1 MyP@ssw0rd /add Create a domain user: net user domainuser1 MyP@ssw0rd /add /domain Add the local user to local admin group: net localgroup Administrators localuser1 /add Add the user to domain admin group: net group "Domain Admins" domainuser1 /add /domain Avi