Mostrando entradas con la etiqueta Windows. Mostrar todas las entradas
Mostrando entradas con la etiqueta Windows. Mostrar todas las entradas

martes, 6 de junio de 2017

mstsc.exe not responding

Last week I experienced an annoying delay in the startup time of mstsc.exe (terminal server client) of about 10-15 minutes. I 'googled' a lot and I found a bunch links discussing about security certificates, corrupted system files and other logical causes.

A server related problem was discarted because there wasn't any problem connecting to the same server from other client.

Obviously anything I found doesn't work ... My last chance was a open-source terminal server client for windows... (FreeRDP) and it last the same time to startup.... interesting... (and frustrating!).


After a lot of test, I analized my system event viewer:

Any terminal server client can share resources between server and client, so it looks obvious it "wait" until all resources are ready. My cdrom drive was dead, so it was delaying all the startup process of mstsc.exe. After disabling the unit, all worked perfectly.

I'm not saying this is THE SOLUTION, of all problems related to mstsc.exe, it was my solution.


martes, 30 de mayo de 2017

How to find out which hdd is \Device\Harddisk#\DR#


Sometimes we obtain a weird Disk Error (Event 11) on Windows Event Viewer pointing to a "Disk" called something like \Device\Harddisk#\DR#

And the question is: which one is that failling disk? is "C:" unit? Is it my system disk?

In my case that was my error (just before a system's hang):


To translate that obscure representation of a disk we can use WinObj.

WinObj is a must-have tool if you are a system administrator concerned about security, a developer tracking down object-related problems, or just curious about the Object Manager namespace.


  • Download WinObj from Sysinternals
  • Run it as administrator
  • Go to \Device\HarddiskX


  • You will see individual PartitionY symbolic links (to \Device\HarddiskVolumeZ), note these down
  • Go to \GLOBAL??, sort by the 3rd column "SymLink"
  • Find the \Device\HarddiskVolumeZ value you noted down in the 3rd column
  • You will see various names of that volume in the first column, including HarddiskXPartitionY, Volume{GUID} and (what's probably most useful for most people) the DOS-style letter like C:


Finally I can realise that the faulting drive was a external usb-stick and not my system disk.


Found at Microsoft Forums, pictures are my own.

jueves, 8 de diciembre de 2016

Discos con GPT y Windows XP

A estas alturas de la vida el dichoso Windows XP sigue vivo y funcionando en muchos hogares, sobre todo en portatiles. Por limitaciones de hardware una actualizacion a W7 seria imposible (ni nombramos W8.1 o W10).

En este escenario llega el regalo estrella de estas navidades: El disco duro externo de gran capacidad. (minimo 1Tb).

Que sucede cuando un windows XP 32 bits detecta un disco duro tan grande... Pues depende:


  • En el caso improbable de que este formateado con MBR todo funciona perfectamente.
  • Si esta formateado con la nueva tecnologia GPT, pues lo ignora


Solución

Hay que formatear el disco con MBR. Ojo, no me refiero a que hay que formatear la partición, también hay que sobreescribir la tabla de particiones con el sistema MBR. Para ello necesitaremos otro ordenador con linux, o una distribución live de linux que arranque en el ordenador con WinXP.

viernes, 12 de febrero de 2016

Ejecutar aplicación como administrador (sin introducir contraseña cada vez)

Si necesitamos que un usuario sin permisos ejecute una aplicación que necesite permisos de administrador local de la máquina (que no debería!!!!!) tenemos una posible solución para dar esos permisos sin tener que escribir la contraseña de administrador cada vez que ejecute la aplicación.

2294144289_a54db90ac5_z
Foto de David Goehring

martes, 2 de junio de 2015

Configuración de Putty en windows para un aspecto más amigable

Respuesta corta: http://dag.wiee.rs/blog/content/improving-putty-settings-on-windows#skip-to-summary

Respuesta larga:

Putty settings summary.
Category: Session
Connection type: SSH
Close window on exit: Never

Category: Terminal > Bell
Action to happen when a bell occurs: Visual bell (flash window)
Taskbar/caption indication: Flashing

Category: Window
Lines of scrollback: 20000
Reset scrollback on keypress: Checked
Reset scrollback on display activity: Unchecked

Category: Window > Appearance
Font: Lucida Console, 9-point
Font quality: ClearType
Gap between text and window edge: 3

Category: Window > Translation
Character set: UTF-8
Handling of line drawing characters: Unicode

Category: Window > Selection
Action of mouse buttons: xterm (Right extends, Middle pastes)
Paste to clipboard in RTF as well as plain text: enabled

Category: Window > Colours
ANSI Blue: Red:74 Green:74 Blue:255
ANSI Blue Bold: Red:140: Green:140 Blue:255

Default Foreground: 85 85 85

Default Bold Foreground: 0 0 0
Default Background: 242 242 242
Default Bold Background: 255 255 255
Cursor Text: 85 85 85

Category: Connection
Seconds between keepalives (0 to turn off): 25

Category: Connection > SSH > X11
Enable X11 forwarding: enabled

jueves, 19 de marzo de 2015

Quitar contraseña de configuración en Antivirus Nod32

En ocasiones, al trastear equipos viejos nos aparece el antivirus Nod32 protegido con una contraseña que nadie recuerda.

Respuesta corta: http://www.taringa.net/post/info/5601859/Eliminar-contrasena-de-configuracion-Nod32.html

Respuesta Larga:

En el registro debes buscar una de las siguientes clave y borrarla:

HKEY_LOCAL_MACHINE
SOFTWARE
ESET
ESET Security
CurrentVersion
Info
PackageID

o

HKEY_LOCAL_MACHINE
SOFTWARE
ESET
NOD
CurrentVersion
Info
PackageID

lunes, 21 de abril de 2014

Copia de seguridad PostgreSQL (en entorno Windows)

Imagen


 






ECHO BEGIN POSTGRESQL BACKUP %date% %time%REM **ENVIRONMENT VARIABLES

set pgdumpexe="C::\your_path\bin\pg_dump.exe"
set dirdestino="C:\your_path\BACKBDS\BackPostgresql"

set PGUSER= ***your_username***

set pgpassword= ***your_password***

REM **BASE DE DATOS 1
set dbname= name_of_your_database
echo Inicio copia %dbname% %date% %time%
%pgdumpexe% -i -F c -b -v -f %dirdestino%\%nombrebd%.backup %nombrebd%
echo Fin copia %nombrebd% %date% %time%

 

 

La restauración la hacemos desde el entorno gráfico PgAdmin III.

Hago hincapié en lo de entorno Windows, porque usualmente suelen verse los comandos para Linux:

Backup:







% pg_dump nombredb > nombredb.pgdump


Restore:







cat nombredb.pgdump | psql nombredb


PERO, en el entorno windows no tenemos psql con la instalación "de fábrica" de PostgreSQL, así que la restauración puede ser complicada.