Archive for the ‘Windows Desktop OS’ Category

Tip: Fixing Windows 8.x to 10 Upgrade (Part 1… I assume.. :-( )

Tuesday, August 4th, 2015

Hello Folks,

did you also already tried to upgrade to Windows 10? On some devices it runs smoothly but on other one’s it could be a real nightmare… To be honest i assume the release was a little bit to early or the developers for the upgrade routines got a few beer to much during the development. As you can read iam currently not really happy with the upgrade process….

Why? I tried to upgrade a bunch of different devices and only on 50% the upgrade worked with the first try… On the other devices like the Surface Pro 2 it fails with really funny and nonsense error messages. There are already a lot of tweaks available but here is a small checklist to prepare the upgrade from my site.

1) Run “Dism /Online /Cleanup-Image /RestoreHealth" to verify your current installation (Windows 8.x) is working fine and correct. Maybe you are required to solve seperate issue here, try google in this case.. :-)
2) Uninstall any Virus Scanner from your current Windows, Virus Scanners can cause a lot of issues during the upgrade.
3) Add a Registry entry "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade" DWord 32-> "AllowOSUpgrade" and set it to "1". (This seams also to force the upgrade if you did not got the Microsoft upgrade notice in advance).
4) If you already tried to upgrade remove the $Windows.~BT and $Windows.~WS folders from drive C:
5) Reboot and retry the upgrade thru Windows update.

In some cases this will fix the issue but not always so i assume there will be some follow up articles…. ūüôĀ

Cheers

Michael

 

Tip: Troubleshooting Miracast devices and Windows 8.x

Friday, July 3rd, 2015

Hi Folks,

did you get a Miracast enabled device like the Microsoft Wireless Display Adapter? But now you suffer during the setup or it “just” did not work?

mswda

Here are a few simple tips’s how to troubleshoot a Miracast connection.

First of all verify that you device is Miracast enabled! To use Miracast you must be use a Miracast enabled GFX-Card and WiFi driver, you can check this out quite simple… Just execute “dxdiag.exe” and select “Save informations”, now open the saved “dxdiag.txt” file with a regular text editor and scroll down to the line beginning with “Miracast:” in the Display Devices area. ¬†If you have “Miracast: Supported” than you are ready to go but i assume that you have a “Miracast: Not supported…”

For Windows Phone you can find a Miracast enabled device list here: http://www.microsoft.com/en-us/mobile/support/faq/?action=singleTopic&topic=FA143456

If you run into a “Miracast: Not supported by Graphics Driver” issue make sure that you have installed the latest driver! By default newer Intel devices are working well also with low end Atom based tablets if they are not to old. You can download the latest Miracast enabled Intel Drivers from here:¬†https://downloadcenter.intel.com/search?keyword=4th+Generation+Intel%C2%AE+Core%E2%84%A2+Processors+with+Intel%C2%AE+HD+Graphics+4400. This driver supports a bunch of devices but be aware that not all devices are supported for Miracast, just review the driver release notes (see picture below).

IntelMiracast

AMD could be also be tricky, in anyway you mostly are required to perform a driver update but for a couple of AMD Devices you are required to add a registry entry “DalWirelessDisplaySupport” as Dword set to 1 in the¬†HKEY_LOCAL_MACHINE_System\ControlSet001\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\00?? area. 00?? means you have to figure out which registry part handles your AMD GFX-Card.

If you run into a¬†“Miracast: Not supported by WiFi Driver” issue you are required to update your wireless driver or maybe forced to replace the Wireless Module. ¬†For Intel devices there is a good article here:¬†http://supportkb.intel.com/wireless/wireless-display/templates/selfservice/intelwidi/#portal/1026/article/2511 to verify if your components are supported or “not”.

If you have a “Miracast: Supported” message in the dxdiag.txt but still you are not able to connect to the Miracast Device the fun beginns…

1) If the Hyper-V role is installed make sure that you have not assigned a virtual switch to the Wireless network card.

2) Make sure that no VPN client is installed during your tests, this can prevent the Miracast connection….

3) ..similar for a Virus Scanner inspecting the network traffic. During my tests i never got an issue with the enabled Windows Firewall but in any way disabling the Windows Firewall could be also tested.

4) Miracast currently works for¬†2,4GHz wireless connections, if you are connected to a 5GHz wireless lan a Miracast connection can not be started. This is not well documented but during my tests i never was able to connect to a Miracast device if my WiFi was connected to a regular 5GHz wireless network. The funny thing, i was able to browse the Miracast devices but if trying to connect it just hangs without any error message… So make sure that you are connected to a 2,4GHz network. In rare cases you might be also forced to fully disconnect from the wireless lan->setup the miracast connection->join the wireless lan again.

So the shortlist:

1) Make sure you have the right hardware and the right drivers installed!

2) Make sure you wireless network connection is configured well!

Have Fun!

Michael

 

Tip: Optimizing Windows Server 2012 (R2) or Windows 8(.1) for VDI/Terminal Server use

Wednesday, March 18th, 2015

Hi Folks,

Citrix already one year ago released in article with several optimizations for Windows Server 2012 (R2) and Windows 8(.1) to optimize these systems for VDI / Terminal Server use. A lot of people doesn’t know it and it can be really helpfull, you can find the article here¬†and it also include a .vbs script to run all these optimizations in one step. It will work for Citrix and also other solutions and can be very usefull to improve the user experience in general.

Just try it!

Cheers

Michael

Tip: Fixing HDX3D Pro performance issues with Citrix XenDesktop 7.x and Nividia Grid Cards

Friday, March 6th, 2015

Hi Folks,

if getting performance issues when using HDX 3D Pro together with XenDesktop 7.x and Nvidia Grid Cards you should try the latest XenDesktop Desktop VDA release which is available here.

It doesn’t matter what type of end device is used.

Cheers

Michael

Info: What clients can be used with the Windows Server 2012 Work Folder feature?

Monday, February 23rd, 2015

Hi Folks,

very often asked during workshop’s, what Clients can be used with the Windows Server 2012 Work Folder feature. Currently the following Desktop/Mobile OS’s are supported:

– Windows 8(.x) x86 and 64-Bit and Windows RT: Work Folder support is coming directly with the OS.
РWindows 7 x86 and 64-Bit; Work Folder support needs do be downloaded from here and to be installed.
–¬†Apple Ipad (IOS):¬†Work Folders app for devices is available in the Apple store

Still unsupported:

– Windows Phone 8(.x)
– Android
– Linux
– Webbrowser based access

It’s quite funny (no, not really) to see how Microsoft create good features/products and directly do the best to kill this advantage by not providing a client for several major OS’s in the same or nearly equal way.. Similar to the still existing Remote Desktop Gateway gap for Windows Phone or a missing Lync/RDP Client for Linux. Before talking about cloud as the future of Microsoft it’s maybe helpfull to unterstand that “cloud” means a bunch of end devices and it still seams that Microsoft did not realize this small but important fact. ..don’t misunterstand me, i really like these features/products but i really don’t like to explain customers/users all the time why they can’t use these features in there infrastructure regarding the lack of a well developed client infrastructure. Maybe it will be¬†better with Windows Server vNext… …or Skype for Business. ūüôā Maybe iam also to spoilt by the existing Citrix client environment… ūüôā ūüôā

Cheers

Michael

Tip: Using Windows Server 2012 R2 workfolders with Remote Desktop/Citrix XenApp based Terminal Servers/VDI’s

Monday, February 23rd, 2015

Hi Folks,

already a year ago I wrote an article how you can change the default port for the Windows Server 2012 R2 workfolder role/feature. By default the Workfolder feature works a “sync” share for Windows 8.1 based desktop systems/VDI’s like a self hosted OneDrive/Google Drive. In the article here¬†i’ve also mentioned that these Workfolders can be mapped to a Terminal Server based on Microsoft Remote Desktop Services and Citrix XenApp.

I got a couple of request how the setup should look like so here is a small guide.

1) Install the Workfolder feature (can be found in the file server roles setup) to a Windows Server 2012 R2, make sure that no other feature or application block the SSL Port 443 or modify the Port by following our guide here. During the Workfolder configuration you will be ask what “folder” name should be used, username or username@domain; use username here only.
2) After the workfolder setup is done create a new smb fileshare pointing to your workfolder directory, make sure to setup the exact similar user rights like set for the original workfolder directory. Open Windows Explorer at the Workfolder Server and check the User Rights for the Workfolder and adopt this configuration for the Workfolder Share. If not done right you may mismatch the Userrights and Users may can access files from other Users or loose the Workfolder access.
3) After this is done open the Group Policy Management Console (GPMC) and create a new policy linked to your Terminal Server OU
4) Edit the new policy and browse to User Configuration->Preferences->Windows Settings->Drive Maps and create two new mapping entries, in my sample i map the workfolder shares to drive U: (Click picture to enlarge). Location should be always \\*your_workfolder_server*\*Workfolder_Sharename*\%USERNAME%.

Create the share configuration

Create the share configuration

Update the share configuration

Update the share configuration

Final view

Final view

5) Close the policy and logon to a terminal server to verify the configuration, all modified content within the drive U: will be synced to the user devices and vice versa.

Cheers

Michael

P.S.: This can be also used with any Microsoft Desktop OS based VDI if you want to use the workfolder sync feature only for physical devices (which make sense to prevent double data in the Workfolder Share and the User Profile/Personal VDisk). If you install the file resource manager to the Workfolder Server to set quotes (like 250MB availabe space per User) make sure to set the similar quote also for the fileshare!

P.S.2: The screenshot’s are coming from a production environment, that why the location path¬†is pixeled.

 

Tip (Update): Setting the Startmenu for Terminal Server Users working with Windows Server 2012 R2

Monday, February 23rd, 2015

Hi Folks,

maybe you noticed already that the handling for the Startmenu is very different between Windows Server 2012 R2 and old Windows Server versions like 2008 R2 and so on. These configurations will also work for Windows 8.1 incl. Windows 8.1 RT (Require enabled Group Policy Client service or local Policy setup).

A lot of Administrator want to modify the Startmenu and to offer a standard view for all User, this can be a very tricky task and i saw already a lot of funny way’s how to edit it. To clear this up a little bit i would like to suggest you two ways how this task can be done, the first variant will introduce you a “static” way. Static means the User will get a “fixed” Startmenu without the ability to change something here. The second way will introduce you a way to create a “default” Starmenu ¬†that can be modified by the User. So you can figure out which way works best for you, depending on the scenario, for example if you deploy Terminal Server thru Citrix Provisioning with an static base image it doesn’t make sense to give the User the ability to modificate the Startmenu in any way. These configurations can be done thru local and/or domain policies.

Way 1 – Static Startmenu for all users

1) Login as User with Administrator permissions and install/setup all Applications you want to provide to the user.
2) Setup Starmenu like it should be “published” to the users.
3) After you have finished the final look and feel create a new SMB Share on any fileserver in your environment, call it “startmenu” or something similar.
4) At the server where you have created the Startmenu “User” view open the powerhell with administrative permissions and enter the command: “Export-StartLayout -Path \\*yourfileserver*\*sharename*\StartMenu.xml -As XML”
5) Logoff from the Terminal Server and start the GPMC (Group Policy Management Console) on any domain system where the GPMC is available.
6) Create a new policy (or use an existing Policy) and link it to the OU where your Terminal Server Users can be found and click the right mouse button->Edit.
7) In the policy browse to User Configuration->Policies->Administrative Templates->Start Menu and Taskbar and edit here the setting Start Screen Layout.
8) Enable the policy and set the Start Layout File to the file you have created in 4) = \\*yourfileserver*\*sharename*\StartMenu.xml

startmenustatic

9) Close the policy and make sure the policy is assigned to the right OU, after this login to the Server and verify the result.

Please note: The Startmenu can not be modified thru a User! For the Export-StartLayout command (4) you have to use the XML format for the export, the bin format¬†can not be used thru the policy! If you assign the policies to a Computer OU like your terminal servers don’t forget to enable loopback processing!

Update: I forgot, Applications¬†where the shortcut is not listed in %ProgramData%>Microsoft>Windows>Start Menu may dissapear after the second User¬†Login (Notepad, Internet Explorer default entry as example). So you may have to create the Shortcuts by your own and¬†assign¬†it to the Startmenu before exporting the XML file. In this folder you can also setup the¬†Applications that should be shown to the User in the “full” Starmenu applications view by editing the User permissions for each file and folder in a very simple way. As example if you want to hide the Windows Store disable the permission¬†inheritance and set the User permissions to full access for “Domain Administrators”, “System”, “Administrators” and add the Usergroup(s) which should be able to gain access to the Applications thru the “full” Startmenu view (Arrow down button in the Startmenu). If you want to be more secure regarding the general Application access you can also combine this with the Windows¬†Applocker¬†feature.

Way 2 РFlexible default Startmenu for all Users (Source: Microsoft Platform)

There is also an alternative described¬†here:¬†Microsoft Platform, this way allows also provide write access for the users but it’s a little bit tricky to set it up and can cause issues in production.

I personal do prefer Way 1 which make more sense for the most scenarios, so i do provide only the link to the source.

Cheers

Michael

cloud-client.info Remote Desktop Services Configuration Tool Beta is now available for download

Monday, February 16th, 2015

Hello Folks,

if you are looking for a small tool to simple configure a bunch of Microsoft Remote Desktop Service settings for Windows 8 (.1) or Windows 2012 (R2) than you should try our latest Tool “Remote Desktop Services Configuration Tool” which is now available as public Beta.

Remote Desktop Services Configuration Tool 1.0 Beta

The tool can also import and export settings, as example to switch settings very fast between different system’s or to adopt a configuration from a production system to a trial system and so on.

As written RDSCT is¬†currently a Beta Version and a bunch of settings will follow with upcoming releases (and depending on my time). The source is already more than 16k lines of code and i don’t have always the time to add new features as i want to do it. ūüôā

The download is available here: Remote Desktop Services Configuration Tool

Have Fun

Michael

P.S.: Please report bugs or settings you want to see in later versions to us, see readme.txt for details.

Windows Update KB3013455 breaks Font Smoothing on Windows XP, Server 2003R2 and 2008

Thursday, February 12th, 2015

Hello Folks,

if you are using Windows XP as VDI or have old Terminal Server’s (incl. Citrix solutions) running Microsoft Windows Server 2003R2 or 2008 (32-Bit) you should not deploy KB3013455 which was released during the last Microsoft Patch Day.

The Update will cause a general font smoothing issue with a bunch of fonts and the users will/can get a much lower user experience if working with a lot of text content.

There is currently no work around for this issue, Windows Server 2008R2/2012(R2) and Windows 7/8(.1) do not show any issue once the update is applied.

The issue is already confirmed by Microsoft, read also here: MS15-010

The MS15-010 article currently doesn’t mention Windows XP (or Vista) but i was able to reproduce it also with a Windows XP 32-Bit VM.

Cheers
Michael

P.S.: Some Users also reporting issues with Windows Vista 32 Bit but i believe this is less important for VDI environments.

Tip: Running out of storage? Slim down Windows 8.x and Windows Server 2012 R2 HDD use Part 2

Wednesday, January 14th, 2015

Hi Folks,

this is the second part of our “Slim down Windows 8.x and Windows Server 2012 R2 HDD use” series, the first part can be found here: Slim down Windows 8.x and Windows Server 2012 R2 HDD use Part 1

In this part we will get a closer look on Windows Server 2012 R2 incl. virtual Windows OS’s runinng on Hyper-V which is also available with Windows 8.1 Pro and Enterprise.

 

1) Compress VHD(x) files (in the right way)

You are using virtual Windows Systems together with the Hyper-V role or VHD boot to have multiple Windows systems available on a PC/Server?
VHD’s are available in different types, one is the dynamic mode and this is very common to use. Why? If you create a VHD with an size of 80GB in dynamic mode the VHD file size will be only a few MB. The VHD will increase the size everytime you add data to it and will max. grow to the defined size (in this case 80GB). But what will happen to the VHD if you remove content from it? Will the VHD size decrease? No… You need to run a compression to perform this task and most Users or Administrators are using the compression offered in the Hyper-V console. Is this a problem? For my point of view yes… In the Hyper-V console you can only run the compression for 1 VHD per Time and you have to repeats this for other VHD’s, boring right? Do you know that they are different compression types available? No? Of cause most people don’t know this because the Hyper-V console doesn’t offer any compression type selection and the “default” compression is not the most efficient one.

So what do we want to do… A simple command or script to compress all VHD or VHDX files in a folder with the best possible compression to gain the most possible free disk space. Here it is…

Attention: If using VHD(x) Boot do not use it for the used boot VHD, it will also not work for running VM’s and the current used VHD(x) files.

Command (Powershell, 1st line for VHDX and 2nd for VHD files):

Get-VHD *.vhdx | where {$_.VhdType -eq "Dynamic"} | Optimize-VHD -mode full

Get-VHD *.vhd | where {$_.VhdType -eq "Dynamic"} | Optimize-VHD -mode full

Supported by Microsoft: Yes
Require Administrator Permission: Yes
Produced space on HDD: Depends on VHD(x) use
Can be used with WIM boot installation: Yes
Disadvantage: Installed Hyper-V role is required to run the command, it will not work for VHD(x) files used by runinng VM’s. Do never use it for a VHD(x) with existing snapshots or VHD(x) files that work as parent disk for one or more differencing disks (See 2,).

 

2) If running multiple VM’s on Hyper-V use differencing disks

You want to run several VM’s with the Hyper-V role? You copy always your Master VHD(x) for each VM? So one 80GB Master Disk is required for 5 VM’s and you have now 480GB used on the HDD? This can be done much lower storage demand by using differencing disks. To explain this a little bit more in details.. A differencing disk (aka as fast clone/linked clone for other Hypervisors) is some sort of a snapshot, so it will take the data from the Master Disk and will add modified or added content to the differencing disk. This means if you use Windows in this way all Windows files will come from the Master Disk, if you now install office to a VM that is using a differencing disk Office will be installed in the differencing disk but the Windows OS files are still coming from the Master Disk. For my sample it means.. If i create a 80GB Master Disk and based on this Master Disk i created 5 VM’s based on a differencing disk, the differencing disk size per VM is only 4MByte at the beginning. So i don’t use 480GB like shown in the sample, i use only 80GB + 5x4MB for the VM’s, you can reduce this even more if the VHD(x) Master Disk is a dynamic expanding disk (see also 1.).

Command (Hyper-V console, no commands available to complete the full task):
– Prepare a Master Disk by installing and configure a VM (don’t forget to run a sysprep in the VM if a Windows OS is installed)
– Delete the VM but not the VHD(x) file used by the VM to prevent changes to the Master Disk in the future.
– In the Hyper-V console (right site) click on “New”->”Harddisk” and follow the assistant, important for the VHD(x) selection.. The differencing disk must be the same type as the Master Disk.
– Select “Differencing” in the Harddisk Type selection and click on next.
– Select the Path where the differencing disk should be created and type in the differencing disk name and click on next.
– Select the Master Disk and click on next and confirm the task to create the disk.
– Now create a new VM and assign the fresh created differencing disk to the VM.
– Create more differencing disks/VM’s if required.

Supported by Microsoft: Yes
Require Administrator Permission: Yes
Produced space¬†on HDD: “Size¬†of Master Disk” x “amount of VM’s”, applying Windows Updates to VM’s will decrease the saving by time.
Can be used with WIM boot installation: Yes
Disadvantage: Not recommended for production use by Microsoft! Do not change or delete the Master Disk or all related differencing disks will fail! I do use this only for VM’s that don’t require Windows Update (like Test environments), as more Windows Updates are installed to the VM’s based on a differencing disk as more space will be required for the differencing disks and as lower is the saving. Do never ever use this for Domain Controllers incl. CA’s¬†/¬†Exchange / SQL / Lync / Dynamics / Windows Storage / Sharepoint Servers, this is my personal opinion; it’s great to setup fast Test Systems / Web / Print or Terminal Server and to perform development/security audits to check/verify Software incl. load tests. Each differencing disk will highly increase the¬†IOPS for the Master Disk, the Master Disk should be always placed on a very fast storage (SSD’s or similar).

 

3) Remove not used or required Windows components

We already got a closer look on the winsxs folder in Part 1 of this series, we already removed superseded files/updates but why not removing files that are not required? If you prepare a couple of Terminal Server, why should you keep files related to the IIS or the Active Directory Domain controller role in the Master Image? You’re right.. There is no reason to do this but still most Administrators are doing it.

Removing the components also reduce the Windows Update footprint because the removed components will not updated anymore.

Commands (commandline):
This command will show all available Windows components and the current use state, the command will create a feature.txt file in the folder where the commandline is executed. Why? It’s more easier to read a txt file with all these components than a simple commandline output:
DISM /online /get-features /format:table > features.txt

This command will remove a not used (active) component from the hard disk (open the features.txt file created with the first command to get the current state), in the sample i will remove DirectPlay from a Windows 8.x:
DISM /online /disable-feature /featurename:DirectPlay /remove

Commands (powershell):
If you want to remove all not active used components you can do this also with a simple powershell command, this is the hardcore way:
Get-WindowsFeature | where-object{$_.Installed -eq 0 -and $_.InstallState -eq 'Available'} | uninstall-windowsfeature -remove

Supported by Microsoft: Yes
Require Administrator Permission: Yes
Produced space on HDD: Depends on amount of removed features
Can be used with WIM boot installation: Yes but mostly useless. Installing a component again will increase used space for drive c:
Disadvantage: Removed roles and features can not be installed without an external winsxs folder source once the files are removed/the above commands are executed. Execute the powershell command to remove all not used components only when you are really sure that you have finished the component setup for this system.

4) The simple way… Use the Microsoft Disk Cleanup Tool

In Part 1 i forgot to mention the “basic” tool, the default disk cleanup tool coming with Windows.

Commands (commandline):
cleanmgr.exe

Supported by Microsoft: Yes
Require Administrator Permission: Yes
Produced space on HDD: Depends on current data hold in Windows
Can be used with WIM boot installation: Yes
Disadvantage: Removed log files/data is not available anymore and maybe need to be recreated or can not be used for future troubleshooting as example.

This is the end of Part 2, maybe there will be a Part 3 (dealing with low-end tablet/low storage mobile cloud clients) but this depends on the available time and future ideas how to slim down a Windows.

Cheers

Michael

P.S.: No warranty at all, if you have no idea what iam talking about don’t use any of these¬†solutions. Don’t blame me if you crash your system.. Dealing with Windows and the components can¬†be always tricky.

Tip (Updated): Running out of storage? Slim down Windows 8.x and Windows Server 2012 R2 HDD use Part 1

Monday, January 12th, 2015

Hi Folks,

you run several Windows 2012R2 Servers or Windows 8.x VDI’s? You have Windows devices with small HDD’s/SSD’s? You run out of storage or you want to reduce the Windows Footprint in general?

Here are some supported and unsupported steps you can do… “Can be used with WIM boot installation” points to the new Install Option for OEM Vendors, mostly used for Windows 8.1 with Bing and low SSD devices. For a WIM boot description get a look here: WIM boot explained

1) Disable Hibernation

Hibernation could be usefull but I see mostly that Users are using the sleep/standby mode. The difference between the sleep/standby Mode is quite simple to explain. In standby mode the computer hold the current RAM state in the RAM and consume still some power, in hibernate Mode the RAM content will be placed on the HDD/SDD and the computer really shutdown. The disadvantage in this case is quite simple, it always consumes 75% of the total ram size with a file called “hiberfil.sys” on drive C:. So if you don’t need the hibernate mode, disable it…

Command (command line):

powercfg -h off

Supported by Microsoft: Yes
Require Administrator Permission: Yes
Produced space on HDD: 75% of the total RAM Size
Can be used with WIM boot installation: Yes
Disadvantage: Hibernation mode is not available

2) Remove superseded Updates/Windows files

Windows by design increase the used amount of HDD Space.. By default all installed Windows updates and also the old original files will be hold to roll back the updates. So if you have an old Windows System and you run Windows Update all the time, all this files will be hold and consume a lot of HDD space. You can remove this old stuff quite simple, this should be done everytime you create a golden image or after you run Windows Update…

Update: I’ve been asked if this is similar to the Windows Update clean up provided by the Windows disk clean up tool. No it’s not similar and will provide more free space as extension to the disk clean up tool

Command (command line):

dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase

Supported by Microsoft: Yes
Require Administrator Permission: Yes
Produced space on HDD: 0->4GB depending on how much Windows Updates applied
Can be used with WIM boot installation: Yes but smaller effect.
Disadvantage: Windows Updates can’t be rolled back in case of issues, test the Windows before you roll-out it.

3) Compress the “winsxs” and some other Windows folders (UNSUPPORTED!)

Windows comes with a sub¬†directory called “winsxs”, this is one of the most important Windows folders because this folder holds all Windows Installation Files and a lot of active used Windows Files are pointed to the files in the “winsxs” folder. This folder requires a lot of space and it could make sense to compress it if possible. By design this task is not simple to do and we need a more complex script to do it. You can also compress some other folders like the Fonts directory without any issue in the same step.

I use this script since a long time (> 12 Months) now and with a couple of test / low storage system’s like my Surface Pro, until now i never got an issue but i don’t recommend to use this in any Windows Server production environment.

Commands (command line, save as wincompress.bat):

echo Compress Windows folders
compact /s:"%WINDIR%\Fonts" /c /a /i *
compact /s:"%WINDIR%\Temp" /c /a /i *
compact /s:"%WINDIR%\Web" /c /a /i *
compact /s:"%WINDIR%\assembly" /c /a /i *
compact /s:"%WINDIR%\debug" /c /a /i *
compact /s:"%WINDIR%\LastGood" /c /a /i *
compact /s:"%WINDIR%\ShellNew" /c /a /i *
echo Compress winsxs folder
icacls "%WINDIR%\WinSxS" /save "%WINDIR%\WinSxS.acl" /t
takeown /f "%WINDIR%\WinSxS" /r
icacls "%WINDIR%\WinSxS" /grant "%USERDOMAIN%\%USERNAME%":(F) /t
compact /s:"%WINDIR%\WinSxS" /c /a /i *
icacls "%WINDIR%\WinSxS" /setowner "NT SERVICE\TrustedInstaller" /t
icacls "%WINDIR%" /restore "%WINDIR%\WinSxS.acl"

Supported by Microsoft: No, support is lost! (You use the script on your own risk!)
Require Administrator Permission: Yes
Produced space on HDD: ~3GB-5GB
Can be used with WIM boot installation: No, never use it with a WIM installation! Why? The files in the winsxs folder in a WIM boot installation are mapped from the recovery partition. If you compress now the files the files will be shifted/written into the Windows partition and this will highly blow up the used space.
Disadvantage:¬†System requires some CPU resources to handle the compressed files, system is now without any support from Microsoft. Do never abort the script once running, run it only with a 100% stable system! Script needs some time to run… If running on a physical hardware create a recovery partition on a USB Memory in advance: How to create a recovery partition on a USB memory or create a snapshot if used with a VM. Once the script is finished you will receive always a message that the script execution failed for one file, this is by design and no issue at all.
This is Part 1 of this article, Part 2 can be found here: Slim down Windows 8.x and Windows Server 2012 R2 HDD use Part 2

 

Cheers

Michael

P.S.: Figures shown as produced savings are max. savings, on a fresh installed windows the savings will be lower.

Tip (Updated): Getting Drivers for the Emdoor 7″ EM-18270 Windows 8.1 Tablet

Monday, December 29th, 2014

Hi Folks,

maybe you noticed that 7″ Windows 8.1 (with Bing) Tablets are available now very cheap… The cheapeast one is the Emdoor EM-18270 Tablet but in this case cheap means not cheap.

I got one of these tablets and iam very happy with it, it’s a¬†Emdoor EM-18270 Tablet, this tablet is available for less than 100‚ā¨ and comes with Windows 8.1 with Bing, a one year Office 365 subscription and offers a Micro HDMI, USB and SD Card extension incl. 2×2 MP Cameras incl. Bluetooth 4.0 based on a Intel Atom¬†Z3735G (Baytrail) platform.

The tablet is available in different revisions (EM-18270 seen in the UK as Linx 7″ Tablet¬†or EM-18270-D seen in Switzerland as Surf 7 Tab), there are only two differences i notified: The UK Version is partly available with a 32GB internal e-MMC¬†the Swiss Version in general comes with a 16GB internal e-MMC¬†also the UK Version comes with a plastic instead a metal case which comes¬†with the Swiss Version.

Update: In the US/UK a similar device can be seen as Cube Iwork7 (U67GT), it seams to be the same device based on a EM-18270 but i got this only as report and I was not able to verify this on my own.

For my Swiss Version i tried to optimize the e-MMC/SSD usage, 16GB is not very much and in the default Version there is only ~1GB HDD space available, enough for surfing but to less for working. ūüôā

So i wiped the e-MMC¬†and re-installed a regular Windows 8.1 x86 incl. Office (you should enable Office 365 thru the device before wiping the e-MMC ūüėČ ), compressed the Windows winsxs (script can be provided on demand but on your own risk) and c:/Program Files folder and installed/moved Office 365 by using symbolic links to a fast SD-Card in the slot.. (Microsoft is still not able to provide a simple target selection during the installation for Office 365). Now i got ~5GB free space for the e-MMC and a big issue.. Where do i get the damm drivers for the hardware? Emdoor do not provide any recovery media or driver packages on the website.. Very weak by Emdoor but after a lot of research i found an article here: Article¬†. The drivers for the Linx 7″ incl. the Kionix G-Sensor are working like a charm (don’t forget to install the registry file for the Kionix G-Sensor with Administrator permissions).

So i would really like to thank the author for providing the drivers in a simple way! If you also got the Emdoor Tablet this download is a must have for future recovery and maybe Emdoor should re-thing the way how “support” is provided to customers. The device itself is great but it doesn’t help if you can not recover or reinstall it and not all people do like the “default” installation coming with the device (like me). It should not be so hard to provide simple driver downloads…

Important: Do not perform a new installation without a Windows 8.1 installation media and a valid Product Key, do not wipe the partition without this! You will not get a Windows 8.1 with Bing installation media from Microsoft or the hardware Vendor! You also have to use the x86 Windows 8.1 Version, the 64-Bit Version will not fit on the 16GB e-MMC harddisk.

Cheers

Michael

P.S.: I did not try to install the Linx Bios on a Surf 7 Tab, the BIOS coming with my device is only a few days older than the Linx one but don’t come with the Linx icon. So i can not say if this works or not, i used only the drivers…. You should also get the Windows OEM Key from the BIOS in advance by following these instructions Get OEM BIOS Windows Key

Tip: Fixing Windows 8.1 Pro or Windows 8 Pro Workfolder sync errors 0x80072ee2 and 0x80c80203

Sunday, December 14th, 2014

Hi Folks,

you are using the Workfolder feature with Windows 8.1 Pro or Windows 8 Pro incl. Enterprise? For a few devices the download sync works fine but uploading files result in the error 0x80072ee2 or 0x80c80203? (Error codes can be reviewed in the Eventlogs->App and Service Logs->Microsoft->Windows->Workfolder).

These errors can happen if you are using the Hyper-V Role coming with Windows 8.x Pro and Enterprise, a virtual Switch is assigned to the WiFi Card and you are using the WiFi connection for the Workfolder sync. To fix it just remove the Virtual Switch thru the Hyper-V console and retry the sync, it should work now.

You can also receive other errors.. Like unstable Remote Desktop connections as example.

Cheers

Michael

P.S.: Other reasons for a failed sync could also be possible, but this is currently the main reason that i found. Connections thru a Hyper-V Virtual Switch assigned to a regular ethernet card could not be reproduced during my tests.

Info: Will Microsoft’s licensing change boost VDI installations?

Thursday, November 6th, 2014

Hi Folks,

some important change has been done by Microsoft to the volume Licensing, this can boost the VDI business in the future…

What was done exactly:

peruserlic

 

What does it mean? Microsoft changes the Licensing for Desktop OS’s from per Device to Per Device and Per User for Enterprise customers and allows also a installation at the same time on any device incl. Tablets. This can be a big driver for Enterprises to roll out or validate Desktop VDI Installation in the upcoming months now, it makes VDI licening much more simpler and flexible for Enterprise customers. It also includes Windows 8.1 Pro and Enterprise incl. Windows 7 and 8, so it’s not only limited to devices running Windows 8.1 Enterprise and this point could be important too.

For VDI also important is the Remote Access Right and here the Per User option comes with “Any device” access, the device licensing only offer support for “noncorporate” devices. Means the User licensing supports now also corporate owned Linux based Thin Clients or IOS/Android based devices.

One big step in the right direction from Microsoft, really nice! You can also read the full article here: VL Licensing Windows 8.1

Cheers

Michael

Tip: Microsoft Workfolder Sync fails with error 0x80080222

Saturday, September 6th, 2014

Hi Folks,

i just got the issue with a tablet (Windows 8.1), i boot up the tablet and got a sync error from the Workfolder feature. ¬†The error number was¬†0x80080222, after a research i did not found much information’s about this error. Typical it means that something with the licensing failed but all Servers incl. the tablet didn’t show any license issue and were still activated, also other devices still got no issues and worked without any error.

Funny… Only difference to the working devices was the fact that the workfolder file location was stored on a SD-Card (to save rare SSD space) and i remember that i remove the card a few hours before (device was off) to copy a file from it (not from the workfolder file folder…). So i tried to reproduce it and yep.. Same happens again, so it seams to be that the workfolder feature checks the filesystem and if something is wrong it denies to work anymore. ūüôĀ No workaround, just stop the use of workfolders and set it up again to get it working. Quite simple and don’t waste your time for troubleshooting.

Cheers

Michael

P.S.: Similar can happen with regular HDD’s/SSD’s if removed from the device and attached to an other one (to take a backup or whatever). I would like to get a more detailed error description or a hint at Microsoft TechNet but i did not found any article related to the issue.

Info: cloud-client.info App is now available in the Windows Store

Friday, June 27th, 2014

Hello Folks,

since today the cloud-client.info App is available in the Windows App Store, you can download it for free here: CCI App

cciapp

 

No Ads, No in app sales of course.

Have fun!

Michael

 

Tip: Where are my Windows Store Apps and Data located on my local Harddisk

Saturday, April 12th, 2014

Hello Folks,

a few times i’ve been asked where the Windows Store Apps located incl. the data for Apps (Savegames, configuration files and so on).

So here are the locations for these files:

Binary Application Data: C:\Program Files\WindowsApps
Configuration Data: C:\Users\*User Name*\AppData\Local\Packages

Check the subfolder names in these directories, it should be easy to identify the App folder that you are looking for.

If you want to backup your configuration data or maybe save games just backup the configuration data folder, you can also copy this folder to an other device, i never got an issue by doing this and I’ve done this a few times for Apps which don’t offer a “Sync” option thru Microsoft One Drive.

Please note: These folders are hidden and you need Administrator permissions to modify these folders. Do also note that you never remove an Windows App by deleting just the folder in C:\Program Files\WindowsApps, this will never be enough and can create major issues for this App.

Cheers

Michael

Tip: How to get free space for your Windows Tablet SSD / Moving Windows Applications to a SD-Card

Saturday, April 12th, 2014

Hello Folks,

maybe you sometimes need some space for your Windows Tablet SSD to install new Apps or whatever but without loosing any other Application. One way is to move an Application to the SD-Card but how?

First of all this will not work for Application installed thru the Windows App Store! So don’t touch the “WindowsApps” folder in the C:\Program Files directory, do also not touch C:\Windows folder or the folder where your Windows OS files are located. Second: I will not take any warranty if you damage you system, you do this modification on your own risk!

Steps (Administrator rights are required!):

1) Create a folder on the SD-Card where you want to move the applications, i’ve used “d:\Program Files (x86)” to identify the location in a simple way.
2) Move the application folder from the “Program Files” directory located on drive C: to the new created folder on D:, in advance make sure that no component from this folder is already running! I recommend to do this directly after a reboot.
3) After you have done this start a Windows command line with Administrator permissions (Important!).
4) Now create a Link with the commandline tool “mklink”, don’t use the “normal” way thru Windows Explorer to create the Link: This way fails during all my tests!. The mklink commandline should look like this “mklink /J “c:\Program Files (x86)\*foldername here* “d:\Program Files (x86)\*foldername here*”, replace *foldername here* with the Program folder name you have moved.
5) Verify that a link for the folder is created in c:\Program Files (x86) and start the Application thru the Start Menu do verify it’s working as it should be.

That’s it, repeat this for Applications you want to move too. If you want to move an application back to c: delete the “linked” folder in c:\program files and move the folder back from the SD-Card to the SSD/HDD drive.

I’ve tested this with VLC Media Player, Mozilla Firefox, Microsoft Office 2013, Microsoft MapPoint Europe 2013 and Microsoft Visual Studio 2013, in all cases i did not discover any issues incl. the deployment of updates. Moving Apps installed thru the Windows App Store is not possible, once the folder is moved and the link is created the Apps will not start anymore, i’ve tested this a few times and always with the same negative result; no need to waste your time with this.

Cheers

Michael

P.S.: As said… Anything you’re doing in this way is without any warranty!

P.S.: It would be great if Microsoft could add a feature in the Windows App Store to move applications quite simple and without any issues like now.

Tip: What are the differences in the Citrix Receiver by OS?

Friday, April 4th, 2014

Hello Folks,

you want to know what is the difference in the Citrix Receiver Versions for MacOSX, Android, Windows 8 or Linux, have a look in the new Citrix Receiver Feature Matrix which is available here: Citrix Receiver Feature Matrix

Cheers
Michael

Release: Windows 8.1 / Server 2012 R2, Windows RT 8.1 Update and SQL Server 2014 are now available in the MSDN

Thursday, April 3rd, 2014

Hello Folks,

you can now download the Update for Windows 8.1 / Server 2012 R2 and Windows RT 8.1 in the Microsoft MSDN (MSDN Account required), also SQL Server 2014 RTM is available now in the MSDN.

Cheers

Michael

P.S.: It’s named as Update and not Update 1 ūüôā