September 24, 2009
So, if you’re like me and don’t leave at the US, you’ll notice that because of the locale you choose, you’ll get an annoying language bar.
To get ride of it (hiding it) you can use a registry tweak.
.: Navigate to [HKEY_CURRENT_USER\Software\Microsoft\CTF\LangBar]
.: If LangBar key doesn’t exist, create it
.: Inside LangBar create a new DWORD called “ShowStatus"
.: Set the ShowStatus value to 3
Of course that to apply this to all users, you should create a script (ex.: vbscript) loading the Default User hive.
Hope this helps
Leave a Comment » |
Uncategorized | Tagged: hide language bar, langbar, language bar, registry, vbscript, windows 7 |
Permalink
Posted by Diogo Sousa
October 29, 2008
So…I’ve found myself in the need to install new fonts to my OS Image.
I’ve already read some things in the past about this, and tried a couple of things to silently install fonts.
The approachs were things like, copy the font to %systemroot%\fonts; Copy the font to %systemroot%\fonts and add a registry key.
At least for me, this didn’t work almost eveytime.
So I googled a little and found a useful resource from the MS Technet Scripting Guy!
So here’s an example of what you need to do:
Const FONTS = &H14&
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(FONTS)
objFolder.CopyHere "C:\Maestro\Fonts\BesSanR_.ttf"
And this little piece of code really works great!
For more information please visit the Scripting Guy website (link)
2 Comments |
Uncategorized | Tagged: fonts, install fonts, scripting guy, shell.namespace, silent, unattend, vbscript |
Permalink
Posted by Diogo Sousa
October 23, 2008
Because of the need to install some hotfixes separated from the OS Packages way, I’ve created a script (VBScript) to install them.
Then I call them from my task sequence (TS) and started the deployment process.
When the TS got to the step to run my newly and pretty awesome ( no kidding!
) vbscript everything got stucked in transit!
For some reason the step could not be performed and seemed to got into a strange loop.
I stop the TS and aborted the deployment process to take a look for bugs on the script. Nothing found at the first sight.
Then went to the command-line and run the script. What I was looking then was a pretty nasty, bad ass “Open file – Security Warning” dialog box. A good security feature but not quite good when your trying to deployment in unattended mode…
But take no mistake, good mother Microsoft has the solution. In the following article, that works for Windows Vista too, there is a workaround/solution for this.
This is a sample script to avoid the issue:
<code>
set objWshShell= CreateObject(”Wscript.Shell”)
set objEnviroment = objWshShell.Environment(”PROCESS”)
‘Disable the “Open File – Security Warning”
objEnviroment (”SEE_MASK_NOZONECHECKS”) = 1
‘Install your security updates
objWshShell.Run “c:\ms04-038\WindowsXP-KB834707-x86-enu /quiet /passive /norestart”,0,True
‘Enable the “Open File – Security Warning” again
objEnviroment .Remove(”SEE_MASK_NOZONECHECKS”)
</code>
For more information, please read the KB article:
http://support.microsoft.com/kb/889815/en-us
Leave a Comment » |
Uncategorized | Tagged: avoid prompt, kb889815, Open file Security Warning, security warning, SEE_MASK_NOZONECHECKS, vbs, vbscript |
Permalink
Posted by Diogo Sousa