I am trying to use Group policy preferences to deploy a registry key that has an empty space as its only value (one press of the space bar).
I am using: User Configuration -> Preferences -> Windows Settings –> Registry
The DC's are W2008R2.
If I enter a space in the ‘Value data’ field, it accepts that without quibble. But when I close that dialogue box and open it again, the field is empty (the cursor is at the far left of the field). Entering a space in double quotes results in a registry value of exactly that, two quote marks with a space between them, which is quite amusing but not what I am looking for.
*
For those interested in the why of it, it is to define a thousand’s separator so that numbers exported from Navision to Excel math properly.
I live in a region that uses space as a thousand’s separator. And yes, Windows regional and language options sets that up for me automatically. But (and here it gets a bit odd), that is a non line breaking space. Which is quite appropriate for creating documents; if you write the number 10 000 you don’t want those three zeroes orphaned on the next line. But it also results in Excel not treating numbers > three digits exported from Nav as numbers. Hence this.
I realize I might have to script it, but I prefer to use this method if at all possible.