Get DHCP IP address into Ubuntu 16.04 on VMware


Greetings, long time no see, I have been messing around with Vmware and Ubuntu lately and found out I snagged a problem which I did not have with Hyper-V

Hyper-V can allow you to connect to your Internal network with just a few clicks but not with VMware

[Windows machine hosting VMware Workstation]
1. Go to Control Panel\Network and Internet\Network Connections on your Windows Machine

2. Select your main network card and double click on it
3. Click on Properties, select VMBridge Protocol (this is not checked by default)
4. Click on OK (the window will hang there for a while, its ok, leave it)

[On VMWare Workstation]
1. Open Vmware Workstation
2. Click on Edit > Virtual Network Editor
3. Select VMnet0 (Bridged), under VMnet information, select Bridged to , select your Ethernet card and click on OK

[On Ubuntu VM]
1. Right click on your Ubuntu VM and click on Settings
2. Select Network Adapter
3. Ensure Device status is connected and connect at power on is checked
4. Under network connection, select Custom: specific virtual network to VMnet0 (Bridged)
5. Click on OK
6. Boot up your Ubuntu VM, log in as user and run ifconfig
7. You should see there is an ipaddress assigned to the VM now. You might want to set the IP settings to static.
8. Ping your gateway IP address and google.com

Note, if you have Hyper-V installed , you will notice that the network on your host computer and your guest slows down significantly. Go to the Network adapter which you have enabled VM Bridge Protocol and disable Hyper-V Extensible Virtual switch. This will resolve the issue.

Done! Hope it helps someone!

Remote Assistance with Windows Intune


Greetings, it has been a long time since I updated something here. Recently I was tasked to install Windows Intune on the remote client computers. They did not want to buy Teamviewer and has asked me if there are alternatives to it.

My previous experience with Remote Assistance is , if I could, I would want to use Teamviewer. Why? Remote Assistance does not have the great features Teamviewer has, however, they have a limitation which almost put me off from using it. The users’ computers do not have administrator rights and due to policy, we cannot let them know the password to key it on their end. When they run any programs with UAC, I present you, the screen below:

sharing paused

To resolve this issue
Under Local security policy
1. User Account Control: Allow UIAccess applications to prompt for elevation without using the secured desktop – Enabled <– This will need to be set to be disabled

2. Restart your computer

And try again and viola!

admin

Hope this helps other IT admins out there!

 

 

How to combine Hyper-V VM snapshots from orphan VHD and AVHDX files


Hi guys

I was converting my lab from Hyper-V to VMware for work purposes and I realized I have forgotten to do some things.

a. I have forgotten to delete snapshots of the VM to merge them to a single VHD so my servers on VMware were not recent (Doh!)

b. I have deleted the VMs from Hyper-V without merging after the conversion from VHD to VMDK, only to realize there some VHDs files that are still not merged. (Double Doh!)

I was tempted to delete the snapshot files to save space on the HDD. I thought of trying something that may sound crazy but just might work.

Note: Snapshots are now known as Checkpoint in Windows 10 and Windows Server 2012

  1. Open Hyper-V Server
  2. Choose a existing Virtual machine that is not in use or create a new one.
  3. Attach the snapshot file as a harddisk to the VM  (avhdx file, the dude with a very long filename). Do not power on the VM.
  4. Create a checkpoint of the VM. (Wait what? Are you crazy? What is this for? The snapshot is not created on this VM…..)
  5. Delete the checkpoint which you have just created. (Ok but it didn’t list the old snapshot though)
  6. You will see the merging process has started.
  7. Once the merging has stopped, you will see that the VHDX file is no longer in the source folder and your VHD filesize has gotten bigger.
  8. If you look at the HDD properties which you have set in step 3, the pathname is no longer AVHDX but is a VHD file now.
  9. You can now boot your combine VHD on this HyperV or copy to another computer.

Hope this saves IT administrators who are stuck with Hyper-V VHD and their snapshot files and save time not to rebuild the entire servers.

 

Experience with Software Update Point and WSUS server over slow WAN


Hi guys, its been sometime since I posted something new 🙂

I received a question on whether to use System Center Update Point (SUP) or WSUS over the slow WAN network. Let’s say 1 Mbps.

From experience, I have encountered three different ways to deploy Windows Updates

  1. Deploy Windows Updates from one WSUS server location regardless of how many remote locations you have
  2. Deploy Windows Updates from one WSUS upstream server to multiple downstream servers in remote locations
  3. Deploy Windows Updates from System Center Configuration Manager 2012 R2.

We all know WSUS servers can be built on existing Windows Servers at no cost.
For System Center Configuration Manager 2012 R2, servers and clients will require licenses for management.
How do they fare differently?

  1. Deploy Windows Updates from one WSUS server location regardless of how many remote locations you have

    Reliability: 4 out of 5 (I never had issues with this, except all right, I admit, people complaining about the network being slow at times but I do send them emails to notify them ^__^;;)

    Pros:
    a. Single point of deployment
    b. Do not need to configure additional WSUS servers

    Cons:
    a. Do this and your network administrators will not be happy.
    Imagine deploying a 2GB worth of Windows Update files during working hours over 1Mbps. Even though the updates are distributed       to the computers via BITS so that network impact will not be significant. It takes a longer time to monitor the deployment to ensure         the Windows Updates are installed

    If you have 10 computers at the remote office with a network bandwidth of 1Mbps, you are going to have a hard time.
    You will be sending 2GB to each of the 10 computers. If you schedule to install at night, not all computers will download
    the Windows Updates as they may not be on or being hibernated.

  2. Deploy Windows Updates from one WSUS upstream server to multiple downstream servers in remote locations
    Reliability: 1 out of 5 (It synchronizes fine the first time, subsequent times I get synchronization failures and also download failures. Have to fix the WID a few times to get rid of the issue)

    Pros:
    a. Downstream servers will get a copy of the Windows Updates from the Upstream server. So computers can get their Windows Updates     from their respective downstream server.

    Cons:
    a. Connecting to upstream network and replicating the upstream server to the downstream server over slow WAN is a bad idea. I experienced Windows Update failed to download and also synchronize fully. I spent a few nights fixing this.

    Be sure to uncheck the This Server Is A Replica Of The Upstream Server  checkbox. This allows the downstream server to receive approvals but download from the Internet on the remote office’s end.

    b. Multiple server management. That means more group policies.

  3. Deploy Windows Updates from System Center Configuration Manager 2012 R2.
    Reliability: 4 out of 5 (You can choose to download, package, omit Windows Updates from deployment list after your Window Update test in test environment , something that WSUS doesn’t have. The cool feature is that you see only the updates you deployed , instead of having to go through the entire WSUS Windows Updates list. )

    Pros
    a. No need to install or configure additional WSUS servers on Secondary Sites (unless you are adding an additional SUP role to the distribute site server, the SUP will configure the WSUS server)

    b. Create collections with query and place computers in. In WSUS server, you will need to create computer groups manually and add     them in.

    c. System Center Configuration Manager 2012 has comprehensive reporting features. You can tell at a glance how many computers are required, installed and not installed per deployment. On WSUS you can only see a graph of how many computers requires this update.

    d. You can set a computer not to prompt a user to restart.

 

WinPE keeps rebooting during OS deployment SCCM2012


Alrighty, I have my new SCCM lab environment built up and ready to go. Now to try to do OS deployment.

My lab environment

– Windows Server 2012 R2 Hyper V and VMs
– Cable modem + Router to assign DHCP IP addresses to clients (sounds crazy I know, should have the servers connected to the DHCP server of Domain controller)

1. Enabled PXE network adapter on my virtual machine CHECK
2. Able to boot to PXE and press F12 CHECK
3. Able to boot to WinPE CHEE…………..*Virtual Machine restarts after loading into WinPE halfway and did not load Task Sequencer* Hey! D:< …..

4. After the virtual machine rebooted, I pressed F12 and once at WinPE, I pressed F8, to get the command Window during WinPE , command prompt appear Looking good CHEEE…………..*Virtual Machine restarts after loading into WinPE halfway and did not load Task Sequencer* Hey! D:< ….. 😦 How am I going to troubleshoot like this, I can’t get the smsts log 😦

5. Having looked online, there are hints that it requires a network driver and requires to run with the boot image file. This virtual machine previously had Windows 7 installed and the network adapter worked out of the box. I tried it anyway and it didn’t work.

Then I remembered earlier on, I had issues joining my virtual machines to the domain unless I set the IP address of the domain controller manually on the IPV4 settings of the virtual machines. The virtual machines get their IP address and DNS entries of the ISP from the cable modem router but not my lab DC controller (Duh, how would the router know you will have a DNS server??)

Could it work the same for this as well? Let’s try it

I went to the router and added a DNS entry 192.168.0.12 and rebooted.
This resolved the issue and Task Sequencer came out.

Hope this helps someone who is stuck….

User Profile Service service failed the logon. User profile cannot be loaded. Windows 8


Good day, I was troubleshooting my colleague’s laptop and for some reason, his local administrator accounts went missing and I had to put it back. I can only log in using the local Administrator account, any other local account I created , be it domain, local or even Microsoft user login, I get this error

“User Profile Service service failed the logon. User Profile cannot be loaded.”

My first thought was to refresh the computer, having tried that and failed, I almost wanted to reformat the computer.

Having checked the Application log in the event log, I noticed there is a problem copying from the Default account to the newly created account. Like C:\Users\Default\Appdata\Local\Microsoft\WERX.

I noticed my other Windows 8 machines do not have this folder so I moved it to another part of C: drive which is C:\temp.
I logged off and logged back in, it is able to log in as the user now 😀

Secondary Site Replication kept going to degrade and failed


This is probably one of the annoying problems I faced temporarily with Secondary Sites, but lately it has been going from Active to Degraded to Failed very frequently.

I ran the Replication Link Analyzer , I kept resetting the queues and lately it gave me these dialog boxes which are editable.
Replication link analyzer detected the following replication groups on site SPS are degraded. It doesn’t fix anything at all.

Because I have no settings to change, I clicked on OK, it kept prompting me and the Secondary Site link stays as Degraded and then goes to Failed again.  Under the Child site tab of the Secondary Site, all the components are filled with (?) instead of the usual green checks. I have turned off the firewall to do this , same issue so I turned it back on. Nothing was changed, the SQL server is working, what happened?

The WAN connection to the Secondary Site is very slow and I do not want to reinstall the Secondary Site nor do a recovery of the Secondary Site.

This is how I fixed this

1. Stop the SQL Server service on the Secondary Site
2. Browse to : C:\Program Files\Microsoft SQL Server\MSSQL10_50.CONFIGMGRSEC\MSSQL\Log , you will see alot of files there
3. Create a new folder called Backup.old, move ALL the files to that folder.
4. Start the SQL Server service.
5. Go to the Primary Site and rerun the Replication Link Analyzer.
6. You should not be prompted with the dialog box that says Replication link analyzer detected the following replication groups on site SPS are degraded
7. Once you see the final result, it should be all green
8. Go back to the Primary Site server, you will see that the link is now active. You should monitor this for a few hours and make sure it doesn’t go back from Active > Degraded > Failed.

Hope this helps, it helped me a couple of times. I am fixing this as I blog 😀 so far so good

Setting up WSUS + SUP on a Secondary Site (SCCM2012)


Installing WSUS (Action to be taken on Secondary Site Server)
1. Install WSUS onto the Secondary Site server using Server Manager (Add Role)

2. Install the following Microsoft hotfix patches below:
a. WSUS-KB2734608-x64

b. WSUS-KB2720211-x64

==========================================================================
Installing SUP (Action to be taken on Primary Site Server)

1. On your Primary Site Server, open Configuration Manager 2012
2. Click on Administration on the bottom left menu
3. Navigate to Overview\Site Configuration\Servers and Site System Roles
4. A list of servers (Primary and Secondary Site) will appear on the right panel, right click on your Secondary Site and select Add Site System Role
5. Click Next , specify proxy settings and click Next
6. Click on Software Update Point and click Next
7. If you are using Windows Server 2008 R2, select WSUS Server is configured to use port 80 and 443 (which is for my case), if you are using Windows Server 2012, select the second option.
8. Under Client Connection type, select Allow Intranet and Internet Client connection (this can vary in your enviroment) and click on Next

9. Under WSUS Server account, add an existing account which you are using for SCCM and click Next and Next.

==========================================================================

Monitoring SUP installation (Action to be taken on Secondary Site Server)
1. On your Secondary Site Server, Navigate to C:\Program Files\Microsoft Configuration Manager\Logs\SUPSETUP.LOG to check if the installation has been completed.

2. If the installation is successful, at the end of the log, it will show  Installation was successful.
If it is not successful, follow the instructions that the log gave youVVV.

Checking for supported version of WSUS (min WSUS 3.0 SP2 + KB2720211 + KB2734608)

==========================================================================

Configuring your SUP (Action to be taken on Primary Site Server)<– Must do or you will not see any clients reporting on the WSUS server.

1. On your Primary Site Server, open Configuration Manager 2012
2. Click on Administration on the bottom left menu
3. Navigate to  Site Configuration\ Site , on the right panel , right click on your Secondary Site , select Configure Site Components>Software Update Point

4. Under WSUS reporting events, after the SUP is installed, the Do not create WSUS reporting events will be selected by default. Select “Create all WSUS reporting events

Failing to do the above will lead to the following issues

a. Clients stopped reporting and the reporting time is out of date on the Secondary Site WSUS server
b. Newly detected clients will show Not Yet Reported status
c.  You will see  error = 0x8024400D, soap client error = 7, soap error code = 300, HTTP status code = 200

Nothing is wrong with your WSUS or client computers at this point. You need to do this step and have alot of patience.

==========================================================================
Verifying your WSUS is now integrated with SCCM2012 (Action to be taken on Secondary Site Server)

1. Open WSUS on your Secondary Site Server
2. On the left panel, click on Options
3. Click on Product and Classification
4. You will see something like this: Note you cannot make any changes here. You will need to go to the Primary Site server SUP to change it.

5. Sync the WSUS with the Primary Site Server SUP and wait for it to complete.

opt

6. Last but not least, you are ready to change add clients to get updates from your Secondary Site 😀
Update your WSUS group policy to point your clients to the Secondary Site WSUS servers.
Hope this helps!

How to connect a non domain server or workstation to your WSUS server


I am tasked to connect non domain machines to our WSUS server.
I have researched online and found tips to change registry or export registry from working domain computers to non domain computers but I think it didn’t work out for me, I found another way to do it and it worked every time.

Checking to see if Windows Update is turned on
1. Go to Control Panel and click on Windows Update
2. Click on Change settings on the left menu
3. Under Important updates, select Download updates but let me choose whether to install them and click on OK
4. Leave this window open

Group Policy
1. Open Gpedit.msc
2. Expand Computer Configuration > Administrative Templates>Windows Components>Windows Update
3. On the right side panel, double click on Allow signed updates from an internet Microsoft Update service location
4. Click on Enable and click on OK
5. Double click on Specify intranet Microsoft update service location, enter your WSUS server FQDN and port number (if any)

Windows Update
1. 
Switch back to Windows Update
2. Click on Check for updates on the left hand menu
3. Note, you should see this, Managed by your system administrator
Image

Verifying that your non domain server or workstation is connected to the WSUS, check the C:\Windows\WindowsUpdates.log. Scroll down till you see the FQDN of the WSUS server.

WSUS server
1. Open Windows Server Updates Services
2. Expand to Computers>All Computers>Unassigned Computers
3. You should see your non domain server or workstation there. Note that it is different from the rest, it only shows the NETBIOS name but without the FQDN.

Hope this helps 🙂

How to reinstall WSUS and SUP on SCCM2012 , Windows Server 2008 R2


Our storage device with kaput along with our WSUS files and package files. So I am currently trying to fix everything as I blog

Distribution Point
1. Uninstall the distribution point on the Primary Site Server
2. Reinstall the distribution point on the Primary Site Server

Because I have a Secondary Site, I copied the contents over to the storage drive so that I can redistribute them.
Note that if you have the list of software packages , you cannot redistribute to the content drive just like that. The application files has to exist.
You should try to redistribute the Configuration Manager Client package first before trying to do new packages. These files are located in the Configuration Manager folder located in your OS partition.

WSUS

A. Prepare the following installation, you can google and search for these downloads
1. WSUS 3 SP2
2. KB2720211
3. KB2734608

B. Incase if you have problems uninstalling the WSUS, this is what you do

1. Open REGEDIT in and locate: HKLM\Software\Microsoft\Update Services\Server\Setup
2. Find the registry value “wYukonInstalled” , double click on it and set it to “0”

C. Remove Software Update Point from the Configuration Manager

D. Uninstall WSUS by removing the server role.
E. Restart your computer.
F. Add the Windows Update Services Role , install KB2720211 and install KB2734608
The above is must do! Otherwise the SCCM cannot talk and sync with the WSUS server!

G. If you ran the Windows Service Update and was unable to install due to unable to find update, delete this registry and try again
Run Regedit and delete HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate

Reinstalling SUP
A. Reinstall the Software Update Point
B. Go to Administration > Site Configuration > Site> Configure Site Components > Software Update Point> Product tab
Ensure you have unchecked the box in SUP before synchronizing (this is important, if you have used SCUP previously , you will experience alot of errors in WCM.log and Wsyncmgr.log)

C. Synchronize the update
D. Monitor WCM.log and Wsyncmgr.log

You should be on your way now.
Either you rebuild your packages from start or if you have a Secondary Site which has most of your deployed packages, you can do the following
a. Recreate the application installation files and folders (you can check against the created packages for more information)
b. Distribute, you can check distmgr.log for this to see if there are any errors.

I had problems earlier but it is synchronizing with Windows Updates now, once it is done I will fix the SCUP next 🙂