Friday, April 19, 2013

Fix: Unable to make a bootable USB stick via the USB/DVD Tool or Manually

NCIX had a great sale on a while ago for some inexpensive 32GB USB 3.0 flash drives so I just had to pick up 3.  After all, I try to travel around with a full set of device drivers, various software tools for troubleshooting, and a bootable WinRE stick just in case.  Imagine my surprise when I went to create a bootable USB stick with Server 2012 when I came across this error:

"We are unable to copy your files.  Please check your USB device and the selected ISO file and try again"

I thought that I had a bad USB stick, so I moved on to the next one ... same thing ... the THIRD one ... same thing!

I left it on the side-burner for a while but today really needed to do some manual server installs.  Came across this excellent post by Devin which outlines the fix (THANKS DEVIN!)

http://www.devinonearth.com/2012/08/cant-make-a-bootable-usb-stick-for-windows-8-join-the-club/

If you don't feel like clicking through to Devin's site (its excellent btw), here are the nitty gritty steps you need to do:

  1. Connect the affected USB stick
  2. Open either CMD or PowerShell (I really need to work more in PS)
  3. Run Diskpart
  4. Type List Disk to bring up the list of current disks on your system
  5. Type Select Disk x where x = the disk number for your USB stick
  6. Type Clean to clear the configuration of that USB stick (Caution, make sure you don't have any files on there that you need as this will erase everything)
  7. Type Create Partition Primary to create a new partition
  8. Type List Disk to verify that the new partition is made.  If you see an offset of 1024KB then the fix worked
  9. Type Exit to close diskpart, then disconnect the USB stick from the system
  10. Plug it back in, it will ask if you wish to format the USB stick, say Yes or Format
You should now be able to make a bootable USB stick!

From what I can tell, this has something to do with how the USB stick was partitioned at the factory.  Maybe it was created without Windows in mind ?

Enjoy!
Terry

Friday, March 15, 2013

Fix: Scrolling in the Application Catalog

For the longest time I've been trying to figure out why, on some of my workstations, users have to scroll horizontally in order to see the Install button when they select a program.  Even when they fullscreen the browser, same issue.

At first I though it was a problem with page scaling; when someone zooms in on their browser.  In actuality I wasn't that far off!

The solution?

DPI Settings!!!

If your DPI settings are anything other than 100% then the Application Catalog will have scrollbars all around.  To change this, do the following:

Windows 7/Windows 8

  1. Right-click anywhere on the Desktop and select Screen Resolution
  2. Click Make text and other items larger or smaller
  3. Click the 100% radio button, then click Apply

You will need to log out/log in for the DPI setting change to take affect.  But, after that .. NO MORE SCROLL BARS!!  Some laptop screens will actually use 125% DPI as the default setting.

How I came across this solution has to do with an in-house application that was developed some time ago (and retired now, thank goodness).  If your DPI was set anything over 100%, you would only see part of the input screen.

Enjoy!

Tuesday, February 26, 2013

Fix: You need permission to perform this action ...

So this is frustrating.  In an earlier post I detailed how to repair WDS/PXE when it is no longer talking properly to SCCM.  Today I had to apply that fix on another of my Secondary Site Servers however I then ended up with a new problem.

I couldn't delete the RemoteInstall folder

Interestingly enough, It was asking me for permission to delete the folder.  I thought, no worries, I'll just take ownership of the folder and sub-folders then try again.  No dice, though this time it was rather amusing since it was now saying that it needed permission from me to delete the folder!

It turns out I was on the right track for resolving this, but just didn't go far enough.

So, if you get "You need permission to perform this action ..." when trying to delete a folder tree, you can try the following:

1) Open an Elevated Command Prompt (Right-click Command -> Run As Administrator)
2) Run: takeown /f path/foldername  /R /D Y
3) Run: icacls path/foldername  /grant accountName:F /t

After running these commands against the RemoteInstall I was able to delete it and continue on to rebuilding WDS/PXE for my Distribution Point.

Enjoy!

Monday, February 11, 2013

Opinion - Are Tablets truly ready for the Enterprise ?

#Mobility #windows8 #tablets

So I've decided to take a break from my usual Technical Blog to air some of my opinions on tablet computing in the Enterprise.  I'll start with a bit of a disclaimer:

This post is my opinion about the future of tablet computing in the Enterprise, and is only an opinion.  Everything posted here is completely open for discussion and I may be COMPLETLY wrong on some of this.  All told, I welcome your comments and discussion on this exciting topic.

Tablets have been around for a very long time, longer than a lot of people realize.  Back in November of 2001, Bill Gates introduced Comdex to the concept of tablet computing (Link) but unfortunately the available technology at that time was just not 'there' yet so it got off to a rocky start at best.  Then Apple came along and introduced the iPad and the tablet/slate device was popularized.  Since the iPad's launch in April of 2010, tablets have exploded to the point where they are starting to outpace laptop and desktop sales ... but is this just another fad like the netbook?

Since the iPad launched a number of competing devices using various OS's have worked their way into the market with varying success.  Microsoft's partners tried to counter the iPad with tablets based on Windows 7 but that OS was just not ready to be used in a full-touch environment, even though it had touch functionality built in.  Android has been ported to run on tablet hardware, with Google even releasing versions of Android designed to run on tablets.  Blackberry launched its ill-fated PlayBook, HP tried and failed with WebOS.  Now that Windows 8 is out, which is a Windows OS designed from the ground up to run on tablets ... what now?

Lets be clear, most of the tablet offerings that have been made available to date are NOT enterprise devices.  Sure, you can invest in apps to bring some enterprise functionality to the tablet, but they are mostly of the "Remote Desktop" variety so really shouldn't count.  How many tablets have BUILT-IN enterprise functionality?  What actually constitutes enterprise functionality?  Is this even a fair question to ask?

Personally, I think that Microsoft and their hardware partners have an opportunity here to really win over the enterprise market by providing basically a replacement for a laptop.  Think about it for a sec, what can a tablet on Windows 8 Enterprise bring you?

  1. Connectivity into your corporate network via DirectAccess
  2. Device-level security by the use of BitLocker
  3. Device Management and Application Deployment via System Center Configuration Manager 2012 SP1
  4. Ability to use your standard application catalog as well as any Line-Of-Business apps that you already have in place, without having to invest in new specialized applications designed specifically for tablets
  5. Provide users the flexibility of having a tablet AND a laptop in one small package, great for road warriors and users who may do some form of field review
There are many more reasons, but I don't want this post to be TOO long in case you get tired of reading.

So what does Microsoft and their hardware partners need to do?

RELEASE COMPELLING HARDWARE!

I'm typing this blog entry from my Dell Latitude 10, which is connected to a docking station and to a 24" monitor.  Forgive me for being blunt, but this tablet sucks in many ways.  Its using an Atom-based CPU which is incredibly slow.  The video card is not capable of displaying the native resolution of my monitor (1900x1200) even though it uses the HDMI 1.3a spec which allows for much higher resolutions.  Microsoft Office is incredibly slow, it hangs on most operations.  I don't use this tablet for any heavy tasks, just word processing, email, internet, and connecting to remote desktops.  It isn't all bad though, I've had to do some remote troubleshooting while away from the office, using my Mobile Hotspot on my Blackberry and DirectAccess to get into the network ... that functionality alone is making me not want to give up on tablets.

Now, this isn't strictly a Microsoft problem.  Indeed, Microsoft did something quite smart by essentially releasing reference hardware in the form of the Microsoft Surface and the Surface Pro.  Their hardware partners need to see those devices for what they are, the lowest common denominator from a performance and functionality standpoint.  Atom-based Win 8 tablets are, as far as I'm concerned, dead in the water.  I wish Dell would have released a tablet in their latitude line-up based on the i5 CPU like they did with the XPS 12 (though that is a convertible tablet, not a slate device).

At BEST, tablets are a niche device that will never really take over the desktop and laptop market.  Without a doubt, it will slow the market down since people will spend more and more time on tablets for their day to day needs, but will fall back to their desktop or laptop PCs when they need to do anything heavy.

Am I off base here?  Is there something I'm missing?

For the record, I have a desktop, 2 laptops and 3 tablet computers at my disposal that I use on almost a daily basis.  The Desktop, Laptops and one of the tablets run Windows 8, then I have a Windows RT tablet and a Blackberry PlayBook.  I have colleagues who have iPads who don't really use them that often for work use, with the exception of using iTap to remote into servers when needed.  I'm not new to tablets, I've pushed many initiatives with my employer to try to increase the adoption of tablets within the company, but even they are starting to push back to say that its just not a viable platform.

What do you think ?  How are YOU adopting tablets for the Enterprise ?

Thursday, January 31, 2013

SCCM 2012: Not able to boot clients from PXE

Talk about Murphy's Law ...

One of my Secondary Site servers stopped processing PXE requests.  In fact, I actually have 2 Secondary Site servers doing this, but haven't had much time to troubleshoot the other one.

I noticed the following things were happening:

  1. In \Program Files\SMS_CCM\Logs ... the SMSPXE.log file does not exist
  2. The Windows Deployment Service will not start.  When checking the Event logs there are two errors that pop up:
    1.  An error occurred while trying to initialize provider WDSDDPS from C:\Windows\system32\wdsddps.dll. Windows Deployment Services server will be shutdown. Error Information: 0x906
    1.  An error occurred while trying to start the Windows Deployment Services server.  Error Information: 0x906
So searching for that error code: 0x906 returned some excellent articles for troubleshooting WDS on its on, however nothing specific for SCCM.  Typically they would get you to run the following two commands:

wdsutil /uninitialize-server
wdsutil /initialize-server /reminst:

This doesn't jive very well for SCCM though since it prefers to configure WDS on its own.  Here is how I fixed it:

1) ConfigMgr Console: Administration -> Site Configuration -> Servers and Site System Roles.  Select your site server, then right-click Distribution Point and select Properties
2) Go to the PXE tab and uncheck to disable, do the same for Multicast if you have it enabled.  When asked if you want SCCM to remove WDS, say No.
3) On the Secondary Server, uninstall the Windows Deployment Services Role then restart.
4) If exists, manually delete the RemoteInstall folder which is on your largest partition by default
5) Reinstall the Windows Deployment Services role and restart
6) Go back into the ConfigMgr Console and re-check the PXE box in the Distribution Point Properties and configure your PXE settings
7) Watch the distmgr.log to monitor the progress of the PXE installation and setup

SCCM will re-create the RemoteInstall folder and populate it with your boot images.  This can take a while depending on  the configuration of your Secondary Site server so be patient.  Once it is done go ahead and give it a shot!

Terry


 

Wednesday, January 30, 2013

Happy Launch Day Blackberry!

#BB10, #Blackberry.

A break from my usual missives about SQL and SCCM.  RIM has announced that they have not only released their new flagship phone, the Z10, but they also decided to re-name the company!

Us Canadians will be able to get the new Blackberry Z10 starting Feb 5th, with the US starting sometime in March.  I've long been a fan of the Blackberry platform so I'm pretty optimistic about it!


Good Luck Blackberry!  I really can't wait to get my hands on one ! :D

Monday, January 28, 2013

Report Building Part 5: Parameters

So we have this lovely SQL Query, but how do we tell it where to look?

The answer ?

Simple, we give it Parameters!

There are built-in Parameters that come with Report Builder but unfortunately they aren't styled specifically for SCCM (mostly of the time/date variety), so we would have to create our own.  The type of Parameters I'm going to focus on is a Dataset Parameter since that allows us the kind of granular control that we are looking for.  The Dataset Parameter has two parts:

The Dataset

This is basically a SQL query to identify a specific section of your database that relates to what you want to find.  In this example, I'm trying to limit my query to only run against specific collections, and I want that option to be available as a dropdown so I can easily choose collections at will.  In the last post I'll take you through the complete creation process in Report Builder, but for the time being this is the query that I'm going to use:

SELECT Name, CollectionID
FROM v_Collection
ORDER BY Name

This query will basically report back all the Collections you have in your environment and order them by name.  So now that we have the dataset figured out, now we need to create:

The Parameter

A Parameter is usually identified with an @ symbol at the beginning of the name.  Within the Parameter would specify which dataset you are using in the Parameter as well as the value and label fields.  This is important as this is how the dropdown is populated.  Looking back at the dataset query above,  you can gleen this info out of it:

Dataset: Dataset1 (this is the name assigned automatically by Report Builder, you can change this if you wish)
Value field: CollectionID
Label field: Name

This will give you a list of collections that are sorted by the collection name.  In the background its linking the name to the CollectionID so you don't have to try to do this by Collection ID specifically.

Once the Parameter is built, you have to add it to your primary SQL Query so the two essentially talk to each other.  This is done using a WHERE statement, like this:

SELECT Manufacturer0, Model0, COUNT(model0) AS 'Count'
FROM v_GS_COMPUTER_SYSTEM
INNER JOIN v_FullCollectionMembership ON v_GS_COMPUTER_SYSTEM.ResourceID = v_FullCollectionMembership.ResourceID
INNER JOIN v_Collection ON v_FullCollectionMembership.CollectionID = v_Collection.CollectionID
WHERE v_Collection.CollectionID = @CollectionID
GROUP BY Manufacturer0, Model0
ORDER BY Model0

Note that in this, I've named the Parameter CollectionID.  Because it is a parameter, you will need to enter it as @CollectionID.

So how does this all fit into Report Builder?  So far we've talked about some general/basic SQL Query building concepts but haven't really touched Report Builder yet.  In the next segment we will go through the Report Building process from end-to-end using the queries that we've built.

Everyone is different when it comes to building SQL Queries, as to how they wish to go about it.  Personally, I've gotten the hang of manually typing out a Query in Notepad first, then slowly cleaning it up with the actual report building as a final step.  If you wanted to check your progress along the way you can use Report Builder or SQL Server Management Studio to test your SQL Query to ensure that you are using the correct syntax.

Once this series is complete I do plan on revisiting a lot of this as I'm still developing my skills as a blogger .. there is a lot that I have to clean up.