Archives pour la catégorie WINDOWS

mappage des imprimantes via clients tse

concordance de pilotes sur clients et serveur

clients : verifier l’emplacement des pilotes d’impression utilisés par le système, aller dans le registre vérifier la clé :

  • Système 64 Bits :
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Environments\Windows x64\Drivers\Version-3\
  • Système 32 Bits :
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Environments\Windows NT x86\Drivers\Version-3\

Il suffit alors de copier les fichiers sur le serveur TSE et de les importer via les options du serveur d’impression.

scripts alert event

https://clusteringformeremortals.com/2018/10/28/step-by-step-how-to-trigger-an-email-alert-from-a-windows-event-that-includes-the-event-details-using-windows-server-2016/

Get-WinEvent -LogName Microsoft-Windows-PowerShell/Operational | Where-Object {$_.ID -eq « 4100 » -or $_.ID -eq « 4104 »}

creation event log test
# New-EventLog –LogName Application –Source « Test »
# Write-EventLog –LogName Application –Source « Test » –EntryType Error –EventID 1 –Message « This is a test message. »

exemple
send alert error by event application / log test
https://www.ryadel.com/en/event-viewer-send-notification-e-mail-messages-with-powershell/

https://github.com/blachniet/blachniet-psutils/blob/master/Send-EventEntryEmail.psm1

 —————————————–
https://chinnychukwudozie.com/2014/11/12/powershell-script-monitors-security-logs-and-sends-email-alerts/

https://www.red-gate.com/simple-talk/sysadmin/powershell/powershell-day-to-day-sysadmin-tasks-events-and-monitoring/

custom windows 10

Gérer les associations de fichiers

Si vous devez déployer des postes avec une association particulière entre un type fichier et une application, vous pouvez importer/exporter la liste des associations dans un fichier .XML.Export :

dism /online /export-DefaultAppAssociations:<rep>\<fichier>.XML

Import :

dism /online /import-DefaultAppAssociations:<rep>\<fichier>.XML

Services inutiles
https://www.sia-informatique.com/desactiver-services-inutiles-windows-10/

raccourcis disparaissent – desactiver la suppression des raccourcis invalides  (liens morts – lecteur reseau)
win 10
panneau config – recherche et resolution des problems – modifier les parametres
cocher la case désactivé (maintenance  de ordinateur) et décocher la case Autoriser la résolution de problèmes immédiatement au démarrage.
windows 7
https://support.microsoft.com/fr-fr/help/978980/desktop-shortcuts-disappear-in-windows-7#top

  • Panneau de configuration
  • Puis Système et sécurité
  • ensuite dans Résoudre les problèmes informatiques courants (3 lignes dessous Centre de maintenance)
  • et enfin dans la colonne de gauche cliquez sur Modifier les paramètres
  • Là désactiver la Maintenance de l’ordinateur.


https://i1.wp.com/nilz.fr/wp-content/uploads/2010/09/maintenance.jpg

Rappel sur les restrictions sur session locale via gpedit
http://nilz.fr/restriction-dacces-windows-8-via-strategies-locales#more-2524
mmc
ajout de editeur de strategie de groupe
parcourir – selectionner par ex non administrateur
puis choix des restrictions (pas acces cmd…)

raccourcis déjà présent dans votre menu « envoyer vers »

C:\Users\votre_nom_de_compte\AppData\Roaming\Microsoft\Windows\SendTo

lien symbolique ( jonction de répertoire)

deplacer le dossier backup du c: sur une autre partition ou lecteur
creer la jonction de repertoire
mklink /J « C:\Users\test\AppData\Roaming\Apple Computer\MobileSync\Backup » « D:\iTune\iphone\Backup »

( le dossier C:\Users\test\AppData\Roaming\Apple Computer\MobileSync\Backup ressemble a un raccourci)

 

Desinstallation des taches planifiees inutiles

Then open Task Scheduler; under Task Scheduler Library -> Microsoft delete (plutot desactiver) the following items:

Everything under “Application Experience”
Everything under “Autochk”
Everything under “Customer Experience Improvement Program”
Under “Disk Diagnostic” delete only the “Microsoft-Windows-DiskDiagnosticDataCollector

outil win – perfmon – mdsched

moniteur de performance

Perfmon Counters To Profile Memory Leak

Virtual Bytes: The current size, in bytes, of the virtual address space (VAS) for this process
Each time an application is run in an operating system (OS), the OS creates a new process and a new VAS for this process. Process memory is VAS memory, not physical memory. Physical memory is used by the OS to map values from file bytes to VAS addresses.

Private Bytes: is the current size, in bytes, of memory that this process has allocated that cannot be shared with other processes. Private Bytes represents the amount of private virtual memory a process has allocated and is the value that will rise of a process exhibiting a memory leak bug

Memory Leak Presence
If virtual bytes and private bytes rise and stay latched on to their highs then memory leak is present

counters sql performance
https://hk.saowen.com/a/07aff4f57cf807a149675de204340df86a64a37c688ed3ba4cafdbc490e18909

 Mdsched – windows memory diagnotic tools (outils systeme)

lancer redemarrer et controler le probleme
voir logs
Event Viewer, clicking Windows Logs, clicking System, and then selecting the most recent log with MemoryDiagnostics-Results as the source.

dnscmd forwarders

To configure a DNS server to use forwarders using the Command Prompt:

1. Open the Command Prompt window with elevated permissions (Run as Administrator).

2. If you want to add the same DNS forwarders used in my previous example, in the Command Prompt window type the following command:

dnscmd <DNS_server_name_or_IP>/ResetForwarders 8.8.8.8 8.8.4.4 /timeout 3 /noslave

Some Final Notes:

  • Separate the DNS IP addresses by a space.
  • You cannot add individual entries one after the other, you must add all forwarders at the same time in one command. But you can add or change existing entries from DNS Manager.
  • The /timeout switch specifies the amount of time that your DNS server waits for the forwarder to respond.
  • The /slave switch indicates that the DNS server will not attempt to perform its own iterative queries if the forwarder fails to resolve the query.
  • The /noslave switch means that the DNS server will use its root hints file if no forwarders are available to resolve the query.