Powershell | Cleanup all the printer spooler queues

$computers = @(“COMP01″,”COMP02”) foreach ($computer in $computers) { echo $computer if (Test-Connection -BufferSize 32 -Count 1 -ComputerName $computer -Quiet) { echo “ON” #Get-WmiObject -computer $computers Win32_Service -Filter “Name=’Spooler'”| ft systemname, name, state #set your first argument as $computer #$computer = $args[0] #Stop the service: Get-WmiObject -Class Win32_Service -Filter ‘name=”spooler”‘ -ComputerName $computer | Invoke-WmiMethod -Name StopService […]


ATTENTION: To avoid heart attacks don’t do /etc/init.d/samba restart afterwards. Always do pkill samba && /usr/sbin/samba https://serverfault.com/questions/873615/ssl-self-signed-certificate-error-on-samba-4 https://wiki.samba.org/index.php/Configuring_LDAP_over_SSL_(LDAPS)_on_a_Samba_AD_DC#Using_the_Samba_autogenerated_self-signed_certificate_.28default.29 Wie du ganz einfach eine Certificate Authority mit Linux-Boardmitteln erstellst Samba Active Directory Server

UBUNTU |OpenVPN DNS Problems

DNS ist not pushed to ubuntu clients # apt-get  install openvpn-systemd-resolved Then modify your clients openvpn config file. Add script-security 2 up /etc/openvpn/update-systemd-resolved down /etc/openvpn/update-systemd-resolved down-pre before your certs block and add dhcp-option DOMAIN-ROUTE . dhcp-option DOMAIN  yourinternaldomain ad the end.

KVM | qemu | qemu-system-x86_64 | High CPU load with Windows 10 guest.

Your Windows 10 guests use much more CPU percents than older Windows 7 guests – even when doing really nothing? (process is qemu-system-x86_64) Do virsh edit GUEST Change <clock offset=’localtime’> <timer name=’rtc’ tickpolicy=’catchup’/> <timer name=’pit’ tickpolicy=’delay’/> <timer name=’hpet’ present=’no’/> <timer name=’hypervclock’ present=’yes’/> </clock> To <clock offset=’localtime’> <timer name=’hpet’ present=’yes’/> <timer name=’hypervclock’ present=’yes’/> </clock> Kudos to […]

Windows 10 | disable network interface ip4 auto configuration

You have had defined a static ip but ipconfig shows your address as an alias only and the main address is an ‘Autoconfiguration IPv4 Address’ like 169.254…. Here’s how to fix this issue: INTERFACE is the name of the interface > netsh interface ipv4 set interface INTERFACE dadtransmits=0 store=persistent > net stop dhcp to disable […]