Wednesday, February 20, 2013

Create Shutdown, Restart, Log-off, Hibernate, Switch User Start Tiles for Windows 8 / Server 2012 featuring Metro Icons

Create Shutdown, Restart, Log-off, Hibernate, Switch User, Start Tiles for Windows 8 / Server 2012 using updated Metro Icons

I created one script that creates tiles for popular user/power links with new Metro icons.

Metro Style Icons created, improved look


This 
PowerShell script installs a Switch User, Log-off, RestartHibernate and Shutdown tile with new Metro icons on the new "start" screen for Windows 8+/Server 2012+.

Download and install Win8PowerUtilsTileScript.zip, see license/instructions below.

Tired of the old icons that have not been change since Windows 95, upgrade to modern Metro styled icons.


License:

The script is free to use and sourced from Microsoft Gallery. The icons are free to use for personal use, but not commercially. Commercial/Small businesses requires a license to buy the rights to use the icons, which I created. Don't get shocked, we are talking pennies here. License and Disclaimers listed in scripts.

             Contact metadataconsult@gmail.com for a commercial license.

Instructions: 

Download script Win8PowerUtilsTileScript.zip

1. Unzip and copy contents to c:\Windows\System32 directory. 

Click to see large image.































2. Right-click on doWin8Tiles-RunMe1st.ps1 and Run with Poweshell. This loads the Poweshell Editor (ISE) with administrator privileges.


3. In Poweshell Editor (ISE), press green arrow to run script.
ShutdownRestartLogoffSwithUserWindows8MDCTiles.ps1 Powershell script
4. If you see, the above the you have successfully run the script. If you see red, you may have re-run the Powershell IDE with administrator priveledges. Use Windows Search for it and run with adminstratative privelegdes, see article here.






Tuesday, February 19, 2013

Jformer - Created new validation type - alphaWords = alphaDecimal + spaces





















jFormer is a form framework written on top of jQuery that allows you to quickly generate beautiful, standards compliant forms. Leveraging the latest techniques in web design, jFormer helps you create web forms that:
  • Validate client-side
  • Validate server-side
  • Process without changing pages (using AJAX)
But it does lack a basic validation type that would expect from such a library, a validation type that could allow for spaces. I took the alphaDecimal base type and added spaces. 

That is exactly what I created, I called it using Jformer parlance alphaWords. 

alphaWords - Accepts only letter, numbers and spaces

Positive Validation Example : John Doe
Also extended the base type to handle periods and dashes and called it  

alphaFirstNameRestricted - Accepts only letter, numbers, periods, spaces and dashes.

Positive Validation Example : John-Doe Jr.


Friday, February 15, 2013

Turning off Java for IE9

Test if JAVA plug-in is turned off safely here.... 

How To Disable Java in IE9 (Java Version 7.07 or less) – The two methods below may not disable Java in all circumstances and therefore may not protect against malware attacks such as this week’s new 0-day Java Security Flaw. [see US-CERT.gov for a detailed list of the steps required to totally disable Java - they are extensive and very complex]

For this reason we now recommend uninstalling Java completely or using a different web browser (e.g. Firefox or Chrome) to reduce the risk of malware attack.There are 2 alternative methods – a registry tweak and a Java Control Panel tweak.
Manage Add-ons - Java is disalbe for IE9 DOES NOT WORK.















Here is the result:




















Registry Tweak  Be careful when editing the registry – create a system restore point first.
To disable Java in IE, close IE and then use Regedit to open the Registry and change the value of the UseJava2IExplorer registry key to 0 (zero) instead of 1.
Depending on the version of Windows and the Java plug-in, this key can be found in one of these locations:
  • HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Plug-in\{version}\UseJava2IExplorer
  • HKEY_LOCAL_MACHINE\Software\Wow6432Node\JavaSoft\Java Plug-in\{version}\UseJava2IExplorer
Open IE and test Java – you should find it is now disabled – at least as far as online tests are concerned. If you want to re-enable Java in IE just change the registry key value back to 1

Better still, update your Java and follow this:
http://www.java.com/en/download/help/disable_browser.xml

Test again and this should do it.