Tuesday, December 31, 2013

Kaviza VDI in a Box extra Computers in AD

Problem: At some point Kaviza or VDI in a Box did not remove deactivated computers from AD either due to an improper shutdown, timing issue,… finding out which are in use and are not can take some time. Here is how I sped up the cleanup process.

Solution: Follow the steps below to export your computer names to bat log file. Then edit the bat file to ping the systems and export to a log file then review the results and clean up ad.

All of my Kaviza systems have the same prefix of FBWKVFB-x so I ran the following command to pull the list from AD and export to a bat file:

Dsquery computer domainroot –name FBWKVFB-* > c:\kavizapc.bat

then edit the bat file and use the find and replace command to replace the excess fields. Here is an example of the unedited output:

"CN=FBWKVFB-7C246DT,OU=SBComputers,OU=Computers,OU=MyBusiness,DC=ad,DC=domain"

Find
“CN=
Replace with
Ping –4    
                              
Note: the “-4” command is to use IPV4 ping only if you want to ping IPV6 only use –6 instead

Find
OU=S
BComputers,OU=Computers,OU=MyBusiness,DC=ad,DC=domain”s”
Replace with
>> C:\kavizaping.txt

On the first line remove the first “>” so it will look similar to this:

Ping FBWKVFB-7C246DT> c:\Kavizaping.txt
Ping FBWKVFB-114URFF>> c:\Kavizaping.txt

You can now run the Kavizapc.bat and view the output in C:\Kavizaping.txt:

Ping request could not find host FBWKVFB-7C246DT. Please check the name and try again.
Ping request could not find host FBWKVFB-114URFF. Please check the name and try again.

Any of the desktops that failed to ping are likely your excess systems that need removed.

Note: Just because they pinged does not mean they are still valid as your DNS records may not be up to date. If in doubt use the ping logs to do a reverse query for example here is a positive result:

Pinging FBWKVFB-MJJLD4K [192.168.100.100] with 32 bytes of data:
Reply from 192.168.100.100: bytes=32 time=3ms TTL=128

To confirm that IP really is FBWKVFB-MJJLD4K you can run the following command:

Ping –a 192.168.100.100

The first line of the results should show you the same PC name:

pinging FBWKVFB-MJJLD4K.ad.domain [192.168.100.100] ….

Friday, December 27, 2013

Server 2012 Hyper-V Free Changing Network Switch Command

Problem: You need to change your network interface/Switch on a VM from the Command line interface on your Server 2012 Hyper-V free console

Solution: Use the following powershell commands:

Note: you do not need to download or install any third party Powershell add-ons to perform these tasks.

In the Administrative window type in “Powershell.exe” and enter

image

Now List your VM’s by typing “Get-VM”

image

Now we will check its current “switch” by typing in “Get-VMNetworkAdapter”
which will then prompt you for the VMname or names you wish to query

image

Now we will change its current “switch” to my switch named “HV VM TRAFFIC”  by typing in “Connect-VMNetworkAdapter –Switchname “HV VM TRAFFIC” which will then prompt you for the VMname or names you wish to change to this switch

image

Now we will check its current “switch” by typing in “Get-VMNetworkAdapter”
which will then prompt you for the VMname or names you wish to query

image

As you can see above the SwitchName is now “HV VM TRAFFIC”

Server 2012 Hyper-V Free Command Start,Shutdown,Restart VM

Problem: You need to shutdown restart or start a VM from the Command line interface on your Server 2012 Hyper-V free console

Solution: Use the following powershell commands:

Note: you do not need to download or install any third party Powershell add-ons to perform these tasks.

In the Administrative window type in “Powershell.exe” and enter

image

Now List your VM’s by typing “Get-VM”

image

You can see x-UMVM1 is off to turn it on type in “Start-VM “VMname””

image

To check the status you can either type in “Get-VM” and see all VM’s or you can type in “Get-VM “VMname”” to see just the VM you are working on:

image

To shutdown your VM cleanly type in “Stop-VM “VMname””

image

Again to check the status you can either type in “Get-VM” and see all VM’s or you can type in “Get-VM “VMname”” to see just the VM you are working on:

image

To do a HARD restart of you VM type in “restart-VM “VMName””

image

Note: I would recommend you do a Stop and start instead if possible

Monday, December 16, 2013

How to Setup Static IP Passthrough on ATT Uverse

Problem: You are changing from DSL or other internet service to use Uverse for your business. You need to have an external facing IP address for email, website, remote access or other traffic.

Solution: First you should have an external facing firewall.  Second when you purchase your Uverse account make sure you specify that you need external Static IP addresses. Third follow the steps below:

Once the ATT installation technician relays to you your IP information including your usable addresses, Modem IP, subnet mask, and DNS information. Setup your externally facing firewall with one of the usable addresses using the new schema settings.

Once your external firewall is ready log onto the ATT Uverse Modem

Note: you will need the Access Code located on the label of the modem

Once on the router select “Firewall” >“IP Passthrough”

Select “Default Server” and enter in the IP address of your externally facing firewall and “Save” as shown below:

clip_image001

You will then be prompted to restart the modem which will take at least 2 minutes

This should open up ALL ports externally coming IN to that external IP address.

Warning: If do not have a firewall in place you have opened the flood gates.

You need to call ATT and have them open port 25 out if you are hosting an exchange or other SMTP email server as port 25 OUT is blocked by default.

Once they say port 25 is open you test by using telnet

Telnet smtp.gmx.com 25

clip_image002

If you see the following SMTP may not be open. Try another domain or smarthost and ask ATT to run their test tool again to confirm 25 is open:

clip_image003

If you see the following connection is made then SMTP out is enabled:

clip_image004

Note: If using McAfee SAAS/MXLogic or other email filtering service you may need to change your inbound and outbound servers to match your new IP schema for EACH domain alias. The quickest way to change domains on McAfee Saas in “Email Protection Setup” for “Inbound Servers” and “Outbound Servers” is to click on the domain name on the right and a dropdown will appear to let you select your other domains.

Wednesday, December 11, 2013

Windows 8 Checkdisk or CHKDSK stops at 28%

Problem: Either you set chkdsk to run at next restart or Windows did due to a problem with the drive. Initially the check disk pauses at 0%-2% for a minute or two then it jumps up to 28% and appears to stop or hang. You see no change in 15-30 minutes.

Solution: WAIT! The older chkdsk program does not show an accurate percentage of the process as it runs. It will tend to stop at 28% for a long time, even well over an hour or more, depending on the data, drive, and your need for it to finish quicker. Just about the time you are ready to give up it will jump to Completed. 

Quickbooks 2014 Installation Hangs at registration

Problem: You upgraded or installed Quickbooks 2014 you registered online and it hangs the first time you try to logon to your data file at local registration.

Solution: Skip the local registration initially, Open the data file and convert as necessary if upgrading. Once you are in the data file then initiate the registration after using the tab in the top right corner. In my instance it appeared to get confused and lock up when trying to perform both tasks.