Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ECHO OFF
- @ chcp 1250
- echo. --------- ---------- ---------- ----------
- echo. --------- FOLDER --- ---------- ----------
- echo. --------- ---------- ---------- ----------
- @ cd %userprofile%\Desktop
- echo [2] utwórz folder
- @ mkdir SKAN
- echo. --------- ---------- ---------- ----------
- echo. --------- UŻYTKOWNIK ---------- ----------
- echo. --------- ---------- ---------- ----------
- echo. [A] skasuj
- @ net user skan /delete
- echo. [B] utwórz użytkownika skan
- @ net user skan skan123 /add
- echo. [C] schowaj użytkownika skan
- @ reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList" /v skan /t reg_dword /d 0 /f
- echo. ---------- ---------- ---------- ----------
- echo. ---------- UDZIAŁ --- ---------- ----------
- echo. ---------- ---------- ---------- ----------
- echo. [A] skasuj
- @ net share skan /delete /y
- echo. [B] utwórz
- @ net share skan=%userprofile%\Desktop\skan /GRANT:skan,full
- echo. ---------- ---------- ---------- ----------
- echo. ---------- UPRAWNIENIA -------- ----------
- echo. ---------- ---------- ---------- ----------
- echo. [4] daj uprawnienia dla użytkownika skan do skanowania
- @ icacls SKAN /T /grant "skan":F
- echo. ---------- ---------- ---------- ----------
- echo. ---------- SIEĆ ----- ---------- ----------
- echo. ---------- ---------- ---------- ----------
- echo. [A] IP
- @ ipconfig | findstr /r "[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*"
- echo. [B] pokaż nazwę komputera
- @ hostname
- echo. [C] adresy MAC
- @ getmac /v
- echo. [D] zmień bieżącą sieć na prywatną
- @ powershell "&{get-netconnectionprofile|set-netconnectionprofile -networkcategory private}"
- echo. ---------- ---------- ---------- ----------
- echo. ---------- WINDOWS--- ---------- ----------
- echo. ---------- ---------- ---------- ----------
- echo. [A] print state of smb1
- @ powershell "&{Get-WindowsOptionalFeature -online -FeatureName "SMB1*" | select-object -property featurename,state}"
- echo. [B] set smb1 protocol server
- @ Dism /online /enable-feature /featurename:smb1protocol-server
- echo. ---------- ---------- ---------- ----------
- echo. ---------- ---------- ---------- ----------
- PAUSE >nul
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement