microsoft:scripting:batchfiles:notes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
microsoft:scripting:batchfiles:notes [2024/11/25 16:47] – Added the headline "Calculate a time X minutes from now". bas | microsoft:scripting:batchfiles:notes [2025/09/10 14:36] (current) – Corrected typo "exemple" -> "example" and added net localgroup version for groupnames at [Determine Windows InstallLanguage]. bas | ||
---|---|---|---|
Line 166: | Line 166: | ||
=====Determine Windows InstallLanguage===== | =====Determine Windows InstallLanguage===== | ||
- | To use with for exemple | + | To use with for example |
<code batch> | <code batch> | ||
Line 192: | Line 192: | ||
Source: [[https:// | Source: [[https:// | ||
+ | |||
+ | This works better if you want to use the correct groupname, as InstallLanguage does not always work accurately for this: | ||
+ | |||
+ | <code batch> | ||
+ | REM Determine the correct group name to use. | ||
+ | " | ||
+ | IF %ERRORLEVEL% EQU 0 SET USERGRP=Users | ||
+ | |||
+ | " | ||
+ | IF %ERRORLEVEL% EQU 0 SET USERGRP=Gebruikers | ||
+ | </ | ||
microsoft/scripting/batchfiles/notes.txt · Last modified: 2025/09/10 14:36 by bas