Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Allow windows protected file
- #to allow all the permissions
- icacls E:\Locker\Locker\ /grant efx:F /t /q
- #To lock the files
- cacls E:\Locker\Locker\ /P everyone:n
- ________________________________________________________
- https://youtu.be/ax1vfSsbzW4
- # Go to home
- cd\
- #task manager
- task list
- #save file
- echo hello world >files.txt
- #Open file
- file.txt
- #See task list
- tasklist
- #open task manager
- taskmgr
- #Find the task
- tasklist|findstr chrome
- #KIll a task
- taskkill /PID 5555 /F
- #save task list in text file
- tasklist >saved.txt
- #Open my computer
- explorer.exe
- #Check the list of administrator accounts
- dnet localgroup Administrators
- #Check standard users
- net localgroup users
- #add standerd user to admins
- net localgroup Admistrator "efx" /add
- #delete user from administrators
- net localgroup Admistrator "efx" /delete
- #delete user
- net user efx /delete
- #Shutdown computer with a bat
- c:\windows\system32\shutdown -s -f -t 00
- #Change administrator password on Windows (run cmd as admin and type)
- net user Administrator *
- #Disabled administrator account activated again
- net user Administrator /Active:yes
- #Start cmd from textfile (save as bat)
- echo off
- command
- echo on
- #List of installed tools
- wmic /output:C:\InstalledSoftwareList.txt product get name,version
- NETWORKING
- #Open network Connections command from cmd
- C:\Windows\System32\control.exe ncpa.cpl
- #Stop the internet (Drop your ip)
- ipconfig /release
- #Enable internet
- ipconfig /renew
- #Turn of fthe firewall
- netsh advfirewall set currentprofile state off
- # Defender commands
- #status of antimalware software installed on the computer
- Get-MpComputerStatus
- #Windows Defender status
- Get-Service windefend
- # ADD Delete groups and users
- https://www.youtube.com/watch?v=WSTlArxx0J8
- __________________________________________________________________________________________
- # Group policy editor in Windows Home
- Commands:
- (1)
- FOR %F IN ("%SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~*.mum") DO ( DISM /Online /NoRestart /Add-Package:"%F" )
- (2)
- FOR %F IN ("%SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~*.mum") DO ( DISM /Online /NoRestart /Add-Package:"%F" )
- __________________________________________________________________________________________
- __________________________________________________________________________________________
- # REGEDIT WINDOWS (CMD)
- #Backup registry
- file> import> save with file name
- #Update the group policy of Windows (restore all the procedures to default)
- >gpupdate
- #Update group policy previously applied
- >gpupdate /force
- (1) HKEY_CLASSES_ROOT
- (all kinds of information, file type, extensions, how Windows handles printer file manager, etc )
- (2) HKEY_CURRENT_USER
- Information related to the current user, Security rights, what Windows is like,
- (3) HKEY_LOCAL_MACHINE (IMPORTANT)
- Hardware, security, system, boot programs, drivers, drivers location and config, services information about os and computer itself
- (4) HKEY_USERS
- Stores information about each user on OS, Each account profile, current user stores information,
- (5) HKEY_CURRENT_CONFIG
- In the current hardware configuration, who is logged in and has their account set up?
- #OPEN CMD AND TYPE to pen regedit prompt
- regedit
- https://www.makeuseof.com/permanently-disable-microsoft-defender-windows-11/
- #Get all the help and options in cmd
- reg /?
- ______________________________________________________________________________________________
- #Disable antivirus real-time protection using Powershell (1 for disable and 0 for enable)
- Set-ItemProperty 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender' DisableAntiSpyware 0
- Restart-Computer
- ______________________________________________________________________________________________
- Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WinRAR\Capabilities\FileAssociations
- ______________________________________________________________________________________________
- Install program quitely
- @echo off
- Setup.exe /quiet
- ______________________________________________________________________________________________
- Stop Defender working 2023
- reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Microsoft Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f
- ______________________________________________________________________________________________
- # Disable Windows Auto Update
- Run Powershell 86x as admin
- New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU' -Force | Out-Null
- Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU' -Name 'NoAutoUpdate' -Value 0
- Restart-Computer
- ______________________________________________________________________________________________
- # Disable Windows Update
- New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null
- Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate' -Name 'NoAutoUpdate' -Value 0
- ______________________________________________________________________________________________
- # Disable firewall
- Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False
- ______________________________________________________________________________________________
- # Kill any exe process
- taskkill /IM cmd.exe
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement