Hide Shutdown + Reboot buttons in Windows 10 via GPO

These policy settings are available in Administrative Templates\Start Menu and Taskbar under User Configuration. Remove and prevent access to the Shut Down, Restart, Sleep, and Hibernate commands or in German: Befehle “Herunterfahren”, “Neu starten”, “Energie sparen” und “Ruhezustand” entfernen und Zugriff darauf verweigern

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 […]

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 […]

Windows 10 notifications in corporate environments | 1809 and above

Try this: Computer Configuration – Administrative Templates – Windows Components – Windows Security – Notifications – Hide all notifications If it doesn’t work, try this: HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\Explorer\[DWORD DisableNotificationCenter = 1] For older versions check this: https://blogs.technet.microsoft.com/platforms_lync_cloud/2017/05/05/disabling-windows-10-action-center-notifications/

kvm | qemu | qcow2 dynamic/sparse disk allocation problem | shrink sparse qcow2 disks howto

In some recent qemu versions there is a problem while creating sparse disks using the virt-manager. Normally the qcow2 format always allocates space dynamically (sparse), but some qemu versions fail at this, they create disks with full expected size. Solution: Create your disks manually: Shrinking existing images: # mv disk.qcow2 disk.qcow2.orig # qemu-img convert -O […]