Lorky`s Blog - Techno ressources and general informations for everyone !

Important

To filter the blog, please use theses tag:
General news. Website related post website. parental-control about technology. technology post.

Note

All blog links are archived here.

Hi, Today I wanted to share a small tip if you want to enable local write for the HCU / HKEY_USERS registry hive with UWF enabled.

By default UWF does not allow to exclude the HCU/ HKEY_USERS, you will got error if you try to exclude those registry path.

The tip seem small, but it's not intuitive to do it with UWF. The tip is to exclude the NTUSER.DAT folder where those settings are wrote.  c:\users\ if you want to exclude all user profile, or just c:\users\userx\ntdata.* where you want to exclude the registry.

With such exclusion it would be mandatory to exclude that registry hive;

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

That exclusion would make sure Windows will remember each profile created inside the computer.

Thanks everyone

 

 

 

Continue Reading...

Hi everyone

Today I will share a small tip if you got a lot of Windows 10 to manage the default language. IoT or any other Windows 10 version for that tip.

A lot of new system come by default in en-US but if you want to automate the distribution you can tweak a bit some policy to set correctly the wanted locale.

It seem simple, but don't forget the locale impacts those settings differently;

- The OS language

- The login screen language

- The default keyboard for new session

- The default keyboard for the login screen

- The date format and various localized settings

 

For almost all of those settings it's a settings to push for each one.

Where it can be tricky is if like me you live in zone where the default keyboard never match by default.

In example, I live in French's Canada, and Windows put for me Canadian multilingual by default, which is not the best one for fr-CA. You have legacy french Canadian keyboard and finally the french Canadian's layout.

So when we push the locations settings, as you can guess in a case like me the default keyboard is never set correctly, thus it need a bit more settings to push.

First of, you need to know if your computer got ready the language pack or not. On IoT usually they are already ready. If not, please download the language ISO and copy the one you need to deploy.

6.png

5.png

When the file is deployed, you can pre-install the .cab that way in a script :

dism /online /add-package /packagepath:C:\Microsoft-Windows-Client-Language-Pack_x64_fr-ca.cab

After that we can run the script to set the correct layout we need, I will explain below;

Powershell.exe -executionpolicy remotesigned -File C:\language.ps1

control.exe intl.cpl,, /f:"C:\language.xml"

language.ps1

Set-Culture fr-CA
Set-WinSystemLocale fr-CA
Set-WinHomeLocation -GeoId 39
Set-WinSystemLocale -SystemLocale fr-CA

\$langList = New-WinUserLanguageList -Language "fr-CA"
\$langList[0].InputMethodTips.Clear()
\$langList[0].InputMethodTips.Add('0c0c:00001009')
\$langList.Add("en-US")

Set-WinUserLanguageList -LanguageList \$langList

language.xml

\<!--Keyboard Language Change-->
\<gs:GlobalizationServices xmlns:gs="urn:longhornGlobalizationUnattend">
\<!--User List-->
\<gs:UserList>
\<gs:User UserID="Current" CopySettingsToDefaultUserAcct="true" CopySettingsToSystemAcct="true"/>
\</gs:UserList>

\<!-- MUI-->
\<gs:MUILanguagePreferences>
\<gs:MUILanguage Value="fr-CA" />
\<gs:MUIFallback Value="fr-CA" />
\</gs:MUILanguagePreferences>

\<!--input preferences-->
\<gs:InputPreferences>
\<!--en-US-->
\<gs:InputLanguageID Action="add" ID="0409:00000409"/>
\</gs:InputPreferences>
\</gs:GlobalizationServices>

The command Powershell.exe -executionpolicy remotesigned -File C:\language.ps1 does set the location and the default local.

The only thing the script can't do, is to set the keyboard for NEW users account.

The XML import, control.exe intl.cpl,, /f:"C:\language.xml",  simulate a click on apply to new user account and to the login screen and system's account. The important flag is see is; CopySettingsToDefaultUserAcct & CopySettingsToSystemAcct

That XML set that screen options correctly;

10.png

 

Thanks everyone :)

Continue Reading...

Hi everyone

Today I will talk about the auto-enrollment inside the domain.

This task is possibly one of the first that would be done if you have a internal domain.

For this task I suggest to create a service account that will have the correct deleguated right. In my case, with my exytaordinary imagination, created an account named hpdm 😳🤷‍♂️

The task itselft is kinda straighforward to create from the HPDM, but if we want to autoenroll our devices, so if like our customers plug 100 or even 1000 of devices we want to do the less manual tasks possibles and with the autoenrollment we can target GPO to those computers afterward.

For rhe task please create too an OU where all those IoT device will be :) a big party for them alone.. just kidding.

In the HPDM we will start by creating a rule with a first contact condition.

In my rule I will add another configuration too, I will rename the terminal. As the generic name is pretty ugly, I will add one easier to spot. Out of the box it's a generic name generated from the MAC address, in my task I will rename the terminal to win10-mac.

Now for the rule;

001.jpg

002.jpg

003.jpg

005.png

008.png

The sub task :

Our domain creatial and the target OU:

007.png

The renaming task:

006-1.png

After we can apply that rule :)

009-1.jpg

 

I hope you enjoyed today tip !

Continue Reading...

Hi everyone

Today I wanted to talk a small bug I seen from some Windows 10 with UWF enabled.

The error I seen was 0x000003EB and 0x000006BA

km02.png

The error is pretty generic, but the system greyed all the printers in the Windows 10's list, and you can't connect to other printers from the server, nor add them by GPP or by deploying them.

km03.png

In the past I used to use a Microsoft KB .exe to fix and erase all the spooler, by a hard reset, but the utility was removed from the website, as such to find the exact cause or to reset the error I suggest to get that small Kyocera's utility (KM Deleter) now;

km01.png

The error in my case seemed to come from UWF, as I unlocked the spooler folder for read and write, but I miss some registry key. As seen there;

km04.png

As you can see no file or driver were present, but the registry were, so it blocked the Windows 10 to reconnect to those printers.

In my case I allowed more exceptions in the UWF, but you can see those two errors can happen if the driver is badly setupped, or missing necessary files.

Continue Reading...

Hi everyone

In the previous article series about deploying Windows 10 IoT terminal I talked about the global use in the Introduction, and secondly how to protect the C drive for unwanted change.

Now in this article I will bring subject, how to publish application to those terminals and I will start by talking HPDM.

It exist some way that we need to think about;

- Application pushed by a remote server and using the remote server ressources; Remote App, XenApp (technically speaking you need the RDSCAL to run XenApp, as such I tell about it there, but overall you must see XenApp as a feature set over RemoteApp)

- Applications pushed by a remote server, but running on the terminal; App-V, MSIX, XenApp Streaming Client (depreciated)

- Applications pushed by GPO (.MSI)

- Application pushed by HP Device Manager (HPDM)

Now the fact that we protect the hard disk bring us some limitations, as such in my guide I suggest for Office, or such application to be pushed by RemoteApp (or XenApp). The limitation is not only the fact the hard disk is using a UWF, but by the fact on IoT terminal the SSD is often small, and we try to not overuse it by product update. With a central server you can update the program and each terminal  would be using the latest version of the productivity's suite.

I would start by talking of the HP Device Manager. On other articles I will cover other's way.

We need to install it first and I suggest the latest version 5. We now need to have an account, and you need to ask to download, after we can got it free.

hpdm01.png

I will skip the install step as I want to focus on how to push the application correctly with the tool.

For the test I will push Google Chrome Enterprise.

At first we go inside the template menu in HPDM, and we want to push the file to the terminals;

1-1.png

We select the _File and Registry Template

2.png

Inside the template we click Add (Ajouter)

3-1.png

We click Deploy Files (Deployer les fichiers)

4-1.png

We click to add the Chrome Enterprise .msi

5.png

 

6.png

For the folder we select C:\TEMP, which is a special folder for the terminal.

7.png

We create an install.cmd (with that content), and we will push that file too;

8.png

7-1.png

Now we click Ok, HPDM will upload the file to its HTTP repertory and we click Generate.

10.png

After that we create a script action;

13.png

12.png

We save that, and now we do another template, a Sequence Template.

14.png

Inside the sequence, we need that;

  • We turn OFF HPWF or UWF.
  • Change Temp to C.
  • We deploy our first sequence's files.
  • We change back Temp to Z.
  • We turn ON HPWF or UWF.

The task should look that way:

15.png

And voila, we can now deploy to any number of terminals we want the needed local application they need ! That finish that article.

Take care, and see you soon in the next article for that serie :)

 

Continue Reading...