Différences entre versions de « BootStrapWindows »
Sauter à la navigation
Sauter à la recherche
imported>WikiSysop (fix vnc) |
imported>WikiSysop |
||
Ligne 64 : | Ligne 64 : | ||
<PRE> | <PRE> | ||
choco -y libreoffice thunderbird firefox vlc | choco -y libreoffice thunderbird firefox vlc | ||
+ | </PRE> | ||
+ | * cacher l'utilisateur "root" au login: | ||
+ | <PRE> | ||
+ | regtool add '\HKLM\software\microsoft\windows nt\currentversion\winlogon\SpecialAccounts' | ||
+ | regtool add '\HKLM\software\microsoft\windows nt\currentversion\winlogon\SpecialAccounts\UserList' | ||
+ | regtool -d set '\HKLM\software\microsoft\windows nt\currentversion\winlogon\SpecialAccounts\UserList\root' 0 | ||
+ | </PRE> | ||
+ | * Pour verifier l'etat: | ||
+ | <PRE> | ||
+ | regtool -p list '\HKLM\software\microsoft\windows nt\currentversion\winlogon\SpecialAccounts\UserList' | ||
+ | regtool get '\HKLM\software\microsoft\windows nt\currentversion\winlogon\SpecialAccounts\UserList\root' | ||
</PRE> | </PRE> | ||
|} | |} |
Version du 28 septembre 2018 à 11:03
Accès physique à la machine (écran clavier) + powershell admin |
$PASS = 'rootpass' net user root '$PASS' /add net localgroup Administrateurs root /add Sur une installation anglaise, c'est "Administrators" |
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) choco install -y cygwin cyg-get cyg-get.bat openssh netsh advfirewall firewall add rule name="ssh" dir=in action=allow protocol=TCP localport=22 netsh advfirewall firewall add rule name="ICMP ping" protocol=icmpv4:8,any dir=in action=allow C:\tools\cygwin\bin\mintty.exe - | |
Accès physique à la machine, shell cygwin admin |
configurer ssh: PASS = 'rootpass' ssh-host-config --yes --name 'sshd' --port 22 --pwd "$PASS" cygrunsrv.exe --start sshd |
A preparer sur le poste linux de l'operateur |
apt-get install tigervnc-common VNCPASS="vncpass" PASS=$(echo "$VNCPASS" | vncpasswd -f | hexdump -v -e '/1 "%02x "') echo 'PASS="'$PASS'"' |
Accès via ssh |
PASS="hex-pass" # le pass calcule sur la machine de l'operateur choco install -y tightvnc regtool set '\HKLM\software\tightvnc\server\accepthttpconnections' 0 regtool set '\HKLM\software\tightvnc\server\UseVncAuthentication' 1 regtool --binary set '\HKLM\software\tightvnc\server\password' $PASS net stop tvnserver net start tvnserver
choco -y libreoffice thunderbird firefox vlc
regtool add '\HKLM\software\microsoft\windows nt\currentversion\winlogon\SpecialAccounts' regtool add '\HKLM\software\microsoft\windows nt\currentversion\winlogon\SpecialAccounts\UserList' regtool -d set '\HKLM\software\microsoft\windows nt\currentversion\winlogon\SpecialAccounts\UserList\root' 0
regtool -p list '\HKLM\software\microsoft\windows nt\currentversion\winlogon\SpecialAccounts\UserList' regtool get '\HKLM\software\microsoft\windows nt\currentversion\winlogon\SpecialAccounts\UserList\root' |