Author Archives: admin

Open command prompt on a remote computer

The PsExec tool which is one of the SysInternals tools provides a way to open a remote command window without needing to install anything on the remote computer. http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx With psExec installed you can open a remote command prompt by … Continue reading

Posted in Windows | Comments Off on Open command prompt on a remote computer

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 … Continue reading

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

Useful PowerCLI scripts

—Find VMs with snapshots Connect-VIServer vcenter Get-VM | Get-Snapshot | Select Created, VM —Find VMs with mounted ISO Get-VM | FT Name, @{Label="ISO file"; Expression = { ($_ | Get-CDDrive).ISOPath }} —Get Datastores and Used Storage for VMs within Cluster … Continue reading

Posted in Virtualization | Comments Off on Useful PowerCLI scripts