Tag Archives: powershell

View Storage Spaces Direct (S2D) slabs placement statistics

Recently, I was dealing with an HCI cluster and I needed to see how the slabs (or extents, if you prefer) are placed on each disk. Since there is no such direct PowerShell command to visualize this information, I ended up writing a small function that serves this purpose. The function performs some queries on the virtual disk to find the slubs, calculate the statistics and correlate with the hosts that hold each disk. In the end, it groups the results and returns them in a single table.

Continue reading View Storage Spaces Direct (S2D) slabs placement statistics

Cleanup Azure Diagnostic data from Table Storage

Azure Diagnostics for Virtual Machines is a  great feature. You have visibility for syslog, CPU usage, memory usage, boot diagnostics, etc. It is great to have it. But if you have used it for a while, you may find yourself in the uncomfortable place to have collected too much data, that have launched storage costs to undesirable heights. At least at this point in time, Microsoft does not offer retention mechanisms for diagnostic data. One quick and dirty way to get rid of it is to completely wipe the diagnostics data and start from scratch. There is no way to throw away just the old data. It is all or nothing. Continue reading Cleanup Azure Diagnostic data from Table Storage

Προηγμένες τεχνικές κατάργησης εκτυπωτών σε Windows

Advanced-Remove-Printer-20150226-1Η εκτύπωση των Windows και συγκεκριμένα του Print spooler είναι φτιαγμένη με ένα μονολιθικό τρόπο. Αυτό σημαίνει ότι αν σε έναν server έχουμε εγκατεστημένους δέκα εκτυπωτές, τότε αρκεί ένας κακογραμμένος ή ελαττωματικός driver για να διακοπεί η υπηρεσία και να χάσουμε τη δυνατότητα εκτύπωσης και στους υπόλοιπους εκτυπωτές. Παράλληλα, οι απότομες και κατ’ εξακολούθηση διακοπές του Print spooler δε μας επιτρέπουν να καταργήσουμε τον προβληματικό εκτυπωτή και, κάπως έτσι, μπαίνουμε σε ένα φαύλο κύκλο από τον οποίο δύσκολα μπορεί να βγει κανείς. Εδώ παρουσιάζονται κάποια γενικά βήματα για την αντιμετώπιση των δύσκολων περιπτώσεων που δεν επιλύονται με την κλασσική κατάργηση του εκτυπωτή από το στοιχείο Devices and Printers του πίνακα ελέγχου.

Continue reading Προηγμένες τεχνικές κατάργησης εκτυπωτών σε Windows