Tous les articles par nutcracker

cmd

list cmd

http://www.volubis.fr/news/liens/AF4SRC/ANIMTXT/CMD400.htm

Gestion utilisateurs et droits
http://www.volubis.fr/news/liens/courshtm/AS400/AS_PROFILS.HTML

Pour gérer la liste des utilisateurs : WRKUSRPRF *ALL

Etat   * ENABLE
*DISABLED (désactivé, après n mauvais mot de passe)

Classe d’utilisateur

  • *USER : sans droits particuliers
  • *SYSOPR : de type opérateur (droit de sauvegarde et de gestion des travaux)
  • *PGMR : développeur
  • *SECADM : droits de création des utilisateurs
  • *SECOFR : tous les droits, pour cet utilisateurs les droits sur les objets ne sont pas vérifiés

Droits spéciaux, la classe d’utilisateur ne représentant qu’un assemblage par défaut

  • *ALLOBJ : droits sur TOUS les objets (type QSECOFR)
  • *AUDIT : droit de paramétrer l’audit système
  • *IOSYSCFG : droit de gérer la configuration (lignes, paramétrage IP, etc…)
  • *JOBCTL : droit de contrôler les travaux des autres et les OUTQ avec OPRCTL(*YES)
  • *SAVSYS : droit de sauvegarde global
  • *SECADM : droit de gérer les utilisateurs
  • *SPLCTL : droit absolu de gestion des spools
  • *SERVICE : droit d’accès aux commandes de la maintenance

Ne pas confondre profil utilisateur IBM i (même QSRV) et les profils DST (en dessous l’OS).DST est un environnement lié à la maintenance, accessible lors de l’IPL, avec l’option 21(mode manuel) ou partiellement avec la commande STRSST.il faut alors indiquer un profil DST (par défaut QSECOFR mot de passe QSECOFR) n’ayant aucun rapport (et donc PAS le même mot de passe) avec le QSECOFR de IBM i.

Gestion utilisateur NAVIGATOR for i

DOS

Simple %var ou %%var
 FOR  %F IN (*.TXT *.DOC) DO COPY  %F F:

 FOR %%F IN (*.TXT *.DOC) DO COPY %%F F:

Either one will copy the items listed inside the brackets to the `F’ drive, but the second line is to be used in a batch file. DOS will eliminate the first percent sign preceding the `F’ character in each instance when used in a batch file. As with earlier examples, DOS will replace the variable `%F’ (or `%%F’) with the specified item(s). In the above example, the items are all the .txt and .doc files in the current directory.

One other thing I should mention is that two consecutive percent signs are also used in batch files when one wishes to echo, or to pass, a single percent sign; that is, when a single percent is needed to be seen on screen or in another file:

Debug tools

\\live.systernals.com\tools     (direct mapping)
ProcessMonitor
va pouvoir vous permettre enregistrer les evenements posant des problemes, et d’identifier précisément les chemins ou écrivent vos programmes, que ce soit dans la base de registre ou dans le système de fichier.

  • Download Process Monitor to the computer when are experiencing the issue.
  • Double-click procmon.exe.
  • Monitoring may begin automatically. If this is the case, you can click the magnifying glass button to stop or start the monitoring. (ctrl + I)

—————————————————————————————–

 

Windows Analyser Tools – ADK (windows performance Analyser, recorder, ETW) –  ex enregistrement du boot de win
https://www.youtube.com/watch?v=uHuTwC3U0N8

systemExplorer (controler facilement services, process)

whatIsHang
WhatInStartup etc

https://www.alessandromazzanti.com/2011/08/hacker-nirsoft-tool.html

———————————-

https://windows-repair-toolbox.com/

———————————-

process hacker

Releasing handles

One very useful option that Process Hacker has to offer is that it can help you delete those files that just don’t want to go away because they are “in use by another process”.

Process Hacker can help you identify that process and break the tie. Here’s the procedure:

  • In the main menu click on Find handles or DLLs
  • In the Filter bar type the full name of the file or a part of that name, then click on Find
  • In the results look for the exact filename and right-click that line
  • From the right-click menu choose Go to owning process
  • The process will be highlighted in the Processes window
  • Right-click the highlighter process and choose Terminate
  • Consider the warning in the prompt that data might be lost and be aware that Process Hacker can close processes where other task managers might fail
  • If you choose to terminate the process you can try deleting the locked file again

WOL

 

https://www.dell.com/support/article/fr/fr/frbsdt1/sln307243/dell-system-models-will-not-wake-on-lan-in-windows-10?lang=en

https://www.dell.com/support/article/fr/fr/frbsdt1/sln305365/configuration-de-wake-on-lan-wol-sur-votre-syst%C3%A8me-dell?lang=fr

http://www.sysadminshowto.com/how-to-configure-wake-on-lan-in-windows-10-and-windows-8-1/?dgc=SM&cid=60910&lid=738353767&linkId=32537976

http://windows7-issues.blogspot.com/2011/03/wake-on-lan-wol-for-windows-7-made-easy.html?dgc=SM&cid=60910&lid=738353767&linkId=32537977

parametres a verifier  « allow low-power mode » which will shutdown the NIC when not in use.

https://gallery.technet.microsoft.com/scriptcenter/Send-WOL-packet-using-0638be7b

Powershell

.\Send-WOL.ps1 #load the Send-Wol function – this would be the full path to where you store the script

####script wakeup.ps1 ####

$MACAddresses = Get-Content « C:\MACAddresses.txt » #This would be the full path to your text or csv file.

Foreach ($MACAddress in $MACAddresses) {

Send-Wol -mac $MacAddress

}
######end#######
Schedule tasks
PowerShell.exe -ExecutionPolicy UnRestricted -File « C:\scripts\wakeup.ps1″

Verifier policy restriction

Get-ExecutionPolicy
Get-ExecutionPolicy -List | Format-Table -AutoSize

bypass restriction
PowerShell.exe -ExecutionPolicy UnRestricted -File .runme.ps1
ou
Powershell -noprofile -executionpolicy bypass -file « C:\scripts\script.ps1″

DOS

http://www.nirsoft.net/utils/wake_on_lan.html

#####script######
@ECHO OFF
CD « \ »C:\program files\wol\ » »
CLS

%Le commutateur /F permet d’effectuer une boucle sur le contenu de fichiers. %
for /f %%a in (c:\program files\wol\MAC_ADDRESSES.CSV) do start «  » WakeMeOnLan.exe /wakeup   %%a
sleep 2
EXIT
###############
Found on Spiceworks: https://community.spiceworks.com/scripts/show/360-wake-on-lan?utm_source=copy_paste&utm_campaign=growth

WOL and subnet
  • Enable WoL in the BIOS of the client computers
  • Create firewall port exceptions for the WoL packets (usually UDP ports 7 and 9)
  • Enable WoL on the NIC via Device Manager (« Allow the computer to turn off this device to save
    power »; « Allow this device to wake the computer »)
  • Install Wireshark and/or WoL Packet Sniffer on the computers
  • Configure routers for IP directed broadcasts (with access lists for security)

http://www.na-businesspress.com/JABE/NyandoroA_Web16_1_.pdf

—————————————————————————–
probleme wol sur windows 8

  1. Open the Power Options in Control Panel (From the Style UI start screen type Power Options, then click the Power Options icon)
  2. Select “Choose what the power buttons do« 
  3. Uncheck “Turn on fast startup (recommended)« 
  4. save and exit.

———————————————————————-
UNTICKING only allow a magic packet to wake up the computer. (depend du client wol utilisé)