It Happens, you mistakenly create a partition at say 100 Gig instead of the required 50. But how do you get it back to its required size?
The main way to do this ( and currently only supported VMWare method) is to do a virtual to virtual migration using VMware vCenter Converter Standalone. This will allow you to change the size of both the VMDK and the partition size to within the desired parameters. This tool can be downloaded from the VMWare Website. This Article can also be located on our sister site DizzyIT.com athttp://dizzyit.com/2013/04/07/shrink-vmdk-partition-vmware-esxi/
Cant View Desktop or Blank Desktop on an Apple Mac
This can happen on a mac after a reboot. The normal trigger for this is installing an update or a new program which causes instability on the system.
the great thing is that this is normally a simple solution. To fix the issue, restart your Mac and while it is booting up hold down the Shift key. This will put your Mac into Safe Mode. From here, your Mac will automatically run a check disk and hopefully repair your issue.
Windows Update Error 8024800A in Windows 8, Windows 7, Vista, Server 2008 and 2008 R2
If you receive Error 8024800A occurs when a windows update there are a few things you can do to resolve the issue. Note: Please see this post for ways to troubleshoot Windows Update Issues including 8024800A : How to Troubleshoot Windows Update Issues Observing Windows update logs are a great place to start and can give you some insite into whats happening in the background. These logs are located at: %windir%\Windowsupdate.log . Google searching the error codes in this log will help solve a large percentage of the issues listed. Next, run the Windows Update Readiness Tool, located here: http://support.microsoft.com/kb/947821 .
Make sure that you choose the appropriate version for both Windows Version and for 32 or 64 Bit. A reboot may be required at the conclusion of this process.
Remove Network Printers from Command Line or Script
There are several options when it comes to removing printers via command line / script.The first option is to use the "rundll32 printui.dll" method. For this, open a command prompt and type:
if you want the operation to be silent, then use the /q switch at the end. this is especially useful if you have multiple printers that you want to remove via a batch file and/or if you are unsure if the printers are installed on the end users machines. If the printer is not currently installed and you attempt to remove it without the /q switch then you will receive an error. The figure below shows the command in its entirety:
The next method would be to use a VB script such as this :
to make the script work, just replace the \\PRINTSERVER\PRINTERNAME" field with the details of your network printer and save as a .vbs file. to call the script just open up an administrator command prompt and type in " cscript scriptname.vbs " where scriptname is the name of your script.
To delete more printers just another line to the " Dim sPrinterName " lines with the printer number at the end, and then again add another objNetwork.RemovePrinterConnection sPrinterName2, True, True line that reflects the printer number you just added.
Likewise, to remove only one printer just remove one of the above lines.
Option Explicit Dim objNetwork, objPrinters Set objNetwork = CreateObject("WScript.Network") Set objPrinters = objNetwork.EnumPrinterConnections ' ### Delete selected network printer Dim sPrinterName1 Dim sPrinterName2 sPrinterName1 = "\\PRINTSERVER\PRINTERNAME" sPrinterName2 = "\\PRINTSERVER\PRINTERNAME" objNetwork.RemovePrinterConnection sPrinterName1, True, True
objNetwork.RemovePrinterConnection sPrinterName2, True, True
I found with this method however that it will error out if that printer does not exist. im not enough of a VB guru to tell you if its possible to quieten it down to run silently.
When all is said and done, there is a much better way of doing this, and that is with Group Policy Preferences. this gives you centralized control over your printer environments, allowing you to add and remove and update printers for small groups or your entire organisation.
Group Policy Preferences will be covered for printers in an upcoming entry.
How to Set a Static Default Route on a Cisco Router
A Static Default Route is used to provide a path to an external network, commonly an ISP or external network.
The syntax for a static default route is quite simple:
ip route 0.0.0.0 0.0.0.0 (destination IP address)
e.g. to point to a default route of 8.8.8.8 then you you would use ip route 0.0.0.0 0.0.0.0 8.8.8.8
Sometimes you may need to redistribute this to other routers in your infrastructure. To do so, you use the redistribute static command on the router. These routes will appear with a R* symbol when observed with a show ip route command.
Set Interface Speed, Duplex and Description on a Cisco Switch / Router
By Default, Cisco Switch Ports are set to auto negotiate. This means that the Cisco Switch / Router will agree on a speed determined by the line conditions with the end device. This works great for workstations and other end user devices as it gives freedom and flexibility without the admin needing to hard set speeds at both ends.
However, for key ports such as those to servers, other switches or routers, its often best to hard code in the speed and duplex, as well as provide a description to provide an explanation of what the port is used for.
In this example we will set the speed, duplex and a description on interface fast ethernet 0/3 .
The first step is to enter the configuration prompt for that switchport:
enable
config t
interface fa 0/3
From here, you can edit the configuration of the port.
To set the description, you use the description command - e.g description domain controller. Next, to set the Speed you use the speed command - e.g. speed 1000 . Finally, you set the duplex with the duplex command - e.g. Duplex Full .
How to Erase the Config and VLAN Database on a Cisco Switch or Router
Erasing the config on a Cisco Switch or router becomes necessary at times for either disposal or re-purposing into a new location or lab environment.
NOTE: I highly recommend that before you delete any configuration from a switch or router you take a backup for the config and the vlan.dat . The one time you will need this is the one time you dont have it, and its good practice for archival purposes.
Firstly, you need to erase the startup configuration. to do this two commands are used - either write erase or the newer erase startup-config.
On a Catalyst Switch, you may need to to erase the VLAN database. To do this, type you type the command delete flash:vlan.dat
From here you need to reload the router / switch. When running the reboot you will be prompted that system configuration has been modified, Save? [yes/no] Here, you should choose no . or you will write the running config back to the startup config and have to repeat the process!