Archivi categoria: WIndows 10

DiskStatus

@echo offif “%1″==”” (goto fine) else (set disk=%1)if “%2″==”” ( set status=online) else if “%2″==”online” ( set status=online) else if “%2″==”offline” ( set status=offline) else ( set status=online)echo select disk %disk% >%temp%\DiskStatus.scpecho %status% disk >>%temp%\DiskStatus.scp DiskPart /s %temp%\DiskStatus.scpdel %temp%\DiskStatus.scp

Creare subst permanenti

Per effettuare una subst permanente aprire RegeditAndare su: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\DOS DevicesCreare un “Nuovo” -> “Valore stringa” con nome dell’unità che vogliamo creare (es. K:)Mettere come valore il percorso che vogliamo mappare preceduto da “\??\”. Per esempio, per subst K: c:\pippo andrà creato un valore stringa col nome “K:” e con valore “\??\C:\pippo”

Attivazione remota RDP (dominio)

Scaricare i PSTools http://technet.microsoft.com/en-us/sysinternals/bb897553 Caricare il CMD dalla macchina remota PSexec \ cmd.exe Disattivare il firewall del computer remoto netsh advfirewall set currentprofile state off Attivare il servizio RDP sul computer remoto reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet \Control\Terminal Server” /v fDenyTSConnections /t REG_DWORD /d 0 /f A questo punto si può chiudere CMD.EXE e PSExec.exe Caricare una… Leggi tutto »