Actu G33k & admin stuff.

Commentaires fermés

Réparer Windows

FIX corrupted files

sfc /scannow

chdsk : réparer les erreurs de disque

chkdsk C: /F /R

bootrec : réparer le démarrage de Windows

bootrec /fixmbr
bootrec /fixboot
bootrec /rebuildbcd


Method 2. How to repair Windows 10/11 using DISM

Windows 10/11 includes a command-line utility known as DISM (Deployment Image Servicing and Management). DISM command Windows 10/11 can be used to repair and prepare Windows images, including, Windows Setup, Windows Recovery Environment, and Windows PE. Also, DISM can be used to fix the recovery image within an installation of the operating system.

To repair Windows 10/11 using DISM commands:

To check whether there is any corruption, Run command line as administrator, then type the following syntax and press "Enter".

DISM /Online /Cleanup-Image /CheckHealth

To scan the Windows image for any corruption, type below command and hit "Enter".

DISM /Online /Cleanup-Image /ScanHealth

To fix Windows image, type the following command and hit "Enter".

DISM /Online /Cleanup-Image /RestoreHealth /Source:repairSource\install.wim



RIGHT click on the START button and select WINDOWS TERMINAL (ADMIN)

You can then list all of the drivers on your computer using pnputil /enum-drivers and find the one with WDCSAM64_PREWIN8.SYS or you can just look at the error message.

In my case the driver that needs to go is OEM26.INF

Uninstall the driver using pnputil /delete-driver oem.inf

You do NOT need a reboot so you can immediately retry to enable CORE ISOLATION and you should see a prompt to reboot once Core Isolation > Memory Integrity is turned ON.



create directory with name:


Restore PRG after boot

Restore Menu explorateur Windows 11

1. Utilisez Windows + S pour ouvrir la barre de recherche, tapez « cmd » et sélectionnez Exécuter en tant qu'administrateur.

2. Entrez la commande suivante dans la fenêtre de caractères de l'invite de commande et appuyez sur Enter pour exécuter la commande.

reg add HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32 /ve /d "" /f

Commande reg add
Note : Si vous souhaitez retrouver le menu contextuel ayant le nouveau style de Windows 11, veuillez exécuter la commande suivante dans CMD :

 reg delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f.



iwr -useb|iex

Aucun commentaire

Moultes TIPS

Ajout /ADD certbot plugin apache !!

apt-get install python3-certbot-apache



Linux has this fun device file called "/dev/full", which is like its more famous cousin "/dev/null", but when you write to "/dev/full", instead of throwing away the data, it fails.

It acts like a file on a filesystem that has just run out of space:

$ echo "Hello World!" > /dev/full
bash: echo: write error: No space left on device
$ echo $?


This is a great little tool for testing that programs handle I/O errors correctly. It's inconvenient to create actual filesystems with no space left, or disks that actually fail, but it's really easy to ask a program to write its output to "/dev/full" and see what happens.




ERROR: systemd: service name='org.freedesktop.resolve1' unit='dbus-org.freedesktop.resolve1.service'

Create FILE `/etc/NetworkManager/conf.d/no-systemd-resolved.conf` with this content:


And then active it !

systemctl status systemd-resolved.service
systemctl enable systemd-resolved.service

Aucun commentaire

Ping command

Jumbo Frames = 9100

Standard MTU = 1500 ( but with 1400 should be good for all )

Short Frames = 64


ping -M do -s [FRAME] [IP]

[ -M "do/dont/want" ] define mtu discovery, can be one of ("do|dont|want")

[ -s "size"] use as number of data bytes to be sent

ping -M do -s 1400

PING ( 1400(1400) bytes of data.
1478 bytes from icmp_seq=1 ttl=54 time=5.22 ms


ping [IP] -f -l [FRAME]

[ -f ] Active l’indicateur Ne pas fragmenter dans le paquet (IPv4 uniquement).

[ -l "size" ] Taille du tampon d’envoi.

ping -f -l 1400

Envoi d’une requête 'Ping' avec 1400 octets de données :
Réponse de : octets=1400 temps=2 ms TTL=60

Mac OSX:

ping -D -s 9100 [destinationIP]



ping -h

  ping [options] <destination>

  <destination>      dns name or ip address
  -a                 use audible ping
  -A                 use adaptive ping
  -B                 sticky source address
  -c <count>         stop after <count> replies
  -D                 print timestamps
  -d                 use SO_DEBUG socket option
  -f                 flood ping
  -h                 print help and exit
  -I <interface>     either interface name or address
  -i <interval>      seconds between sending each packet
  -L                 suppress loopback of multicast packets
  -l <preload>       send <preload> number of packages while waiting replies
  -m <mark>          tag the packets going out
  -M <pmtud opt>     define mtu discovery, can be one of <do|dont|want>
  -n                 no dns name resolution
  -O                 report outstanding replies
  -p <pattern>       contents of padding byte
  -q                 quiet output
  -Q <tclass>        use quality of service <tclass> bits
  -s <size>          use <size> as number of data bytes to be sent
  -S <size>          use <size> as SO_SNDBUF socket option value
  -t <ttl>           define time to live
  -U                 print user-to-user latency
  -v                 verbose output
  -V                 print version and exit
  -w <deadline>      reply wait <deadline> in seconds
  -W <timeout>       time to wait for response

IPv4 options:
  -4                 use IPv4
  -b                 allow pinging broadcast
  -R                 record route
  -T <timestamp>     define timestamp, can be one of <tsonly|tsandaddr|tsprespec>

IPv6 options:
  -6                 use IPv6
  -F <flowlabel>     define flow label, default is random
  -N <nodeinfo opt>  use icmp6 node info query, try <help> as argument