Post

Visualizzazione dei post con l'etichetta windows

Fedora - KVM - qemu - Windows 11 guest. error: swtpm at /usr/bin/swtpm does not support TPM 2

 you cannot create and execute VM: Windows 11 Guest in Fedora 40?  it's SELINUX. you can disable SELINUX or create a rule to avoid the TPM problem. we choose the second one.  check sudo ausearch -c 'virtqemud' --raw or sudo ausearch -m avc -ts recent if results appear, go on solution: sudo ausearch -m avc -ts recent | grep virtqemud | sudo audit2allow -M local_virtqemud sudo semodule -i local_virtqemud.pp systemctl restart libvirtd

Restic backup script simple (fresco fresco callo callo)

  ### backupscript.sh export RESTIC_REPOSITORY=sftp:administrator@172.16.7.1:/e:/resticroot ##this is a windows sftp server export RESTIC_PASSWORD=passwordstring restic --verbose backup /srv if [ $? -ne 0 ] then   sed -i '1s/^/Subject: restic error\n/' /root/restic_jobs/transcript.log   cat /root/restic_jobs/transcript.log | ssmtp -vvv email@provider.com fi restic --verbose forget --keep-last 2 --prune         if [ $? -ne 0 ] then sed -i '1s/^/Subject: restic error\n/' /root/restic_jobs/transcript.log cat /root/restic_jobs/transcript.log | ssmtp -vvv email@provider.com fi #### ssmtp.conf # # Config file for sSMTP sendmail # # The person who gets all mail for userids < 1000 # Make this empty to disable rewriting. root=postmaster # The place where the mail goes. The actual machine name is required no # MX records are consulted. Commonly mailhosts are named mail.domain.com #mailhub=mail # Where will the mail seem to come from? #rewriteDomain= #...

Manually backup VM on Hyper-v to remote destination with wbadmin CLI

wbadmin start backup -backupTarget:\\10.10.1.2\BackupVM\vm-name\ -hyperv:"vm-name" -quiet

Check cipher suites weakiness, translate from Microsoft to OpenSSL (apache and so on..) to avoid cipher mismatch

  https://ciphersuite.info/

Cannot connect to RDP after enabling Group Policy (in my case "SSL Cipher Suites order Policy")

preface: A Windows Server 2012 R2 domain joined, I'm not a Domain Admin on the customer AD, I'm a Local Server Administrator.    After enabling the SSL Cipher Suites order policy and a reboot, RDP connection getting refused, "an internal error occurred" and other error messages. I just realized that I didn't followed the instructions correctly, closing me out: 1. Open a blank notepad document. 2. Copy and paste the list of available suites into it. 3. Arrange the suites in the correct order; remove any suites you don't want to use. 4. Place a comma at the end of every suite name except the last. Make sure there are NO embedded spaces. 5. Remove all the line breaks so that the cipher suite names are on a single, long line. 6. Copy the cipher-suite line to the clipboard, then paste it into the edit box. The maximum length is 1023 characters. I completely miss the 4 and 5 points.  following a way to solve the mistake:  from another Domain joined Server, open MMC ...

Generate PFX for Windows with OpenSSL

 Generare un PFX per Windows da certificati separati:  .\Openssl pkcs12 -export -out final_cert.pfx -inkey private.key -in intermediate.cer -in certificate.crt

Configuration Guides server-world.info

Dove trovare ottime informazioni relative alla configurazione di server e applicazioni Windows / Linux, senza troppe spiegazioni:  https://www.server-world.info/en/