Useful Windows keyboard shortcuts

Open Task Manager –> ctrl+shift+esc
Quit program –> alt+F4
Right click –> shift+F10
Main window menu(minimize…) –> alt+space
Open menu in a program –> alt
open properties –> alt+enter
create new folder –>ctrl+shift+n
Cursor in address bar –> alt+d
Search –> F3
New tab –> ctrl+t
Use the arrow keys to switch between open items –> alt+tab+arrows(alt pressed)
Go up one level –> alt+up arrow
Move through tabs –> ctrl+tab
move backwards through tabs –> ctrl+shift+tab
System properties –> win+pause
Focus on the taskbar –> win+t
Shutdown menu –> alt+F4
Preview the desktop –> win+space
Maximize window –> win+up arrow
Minimize window –> win+down arrow
Projector –> win+p

Posted in Windows | Leave a comment

VMware – Force shutdown of a stuck VM

Sometimes a VM is stuck and can’t be killed with vSphere Client

Login through ssh to the Esxi server and get a list of running VMs identified by World ID:

esxcli vm process list

Power off one of the virtual machines from the list using this command:

esxcli vm process kill --type=force --world-id=7331933
Posted in Virtualization | Comments Off on VMware – Force shutdown of a stuck VM

Troubleshooting Group Policy update issues

Problem: Logon scripts not running.
Check for event ID 1058 in System Event Log.In the details tab find the sysvol path pointing to the gpt.ini file.Check if the file is accessible.
Check which DC the pc uses to login to AD:
echo %logonserver%
From command prompt run gpupdate to check issues

Posted in Windows | Comments Off on Troubleshooting Group Policy update issues

Setting timezone on CentOS

Timezone data files are stored on:

/usr/share/zoneinfo

 

$ sudo rm /etc/localtime
$ sudo ln -s /usr/share/zoneinfo/Europe/Athens /etc/localtime
#
# now check it's ok
#
$ date
Wed Oct  1 12:42:33 GMT 2008
Posted in Linux | Comments Off on Setting timezone on CentOS

Create large file from command prompt

A quick way to create a file of a specific size from command prompt:

fsutil file createnew C:\bigfile.txt 5000000000

The above command will create bigfile.txt with size 4,65GB.

Posted in Windows | Comments Off on Create large file from command prompt

Stop Bind from performing forward lookups using IPv6

You may get logs similar to the following:
Sep 17 16:15:07 nsserver named[21089]: network unreachable resolving
'ns2.vistaprint.com/A/IN': 2001:503:a83e::2:30#53

You can specify OPTIONS=’-4′ in /etc/sysconfig/named to tell named not to use IPv6 or disable IPv6 completely on your machine. You can disable IPv6 this way:
Add
“options ipv6 disable=1” to /etc/modprobe.conf
and
“NETWORKING_IPV6=no” to /etc/sysconfig/network

Posted in Linux | Comments Off on Stop Bind from performing forward lookups using IPv6