Advanced Windows PowerShell Scripting Video Training

Advanced Windows PowerShell Scripting Video Training
Advanced Windows PowerShell Scripting Video Training

Monday, December 12, 2011

How to let users see websites that do not have a rating

Content advisor uses a rating system known as Recreational Software Advisory Council on the Internet ) RSACi to determine if the content in a web site is suitable to the user based on the users preferences.  Below shows the rating levels:

Level Language Nudity Sex Violence
4 Explicit or crude language Provocative frontal nudity Explicit sexual activity Wanton and gratuitous violence
3 Obscene gestures Frontal nudity Non-explicit sexual touching Killing with blood and gore
2 Moderate expletives Partial nudity Clothed sexual touching Killing
1 Mild expletives Revealing attire Passionate kissing Fighting
0 Inoffensive slang No nudity No sexual acts No violence

If content advisor is turned on and a website does not include a RSACi rating, that content is blocked.  To override this, open the Internet Explorer’s Properties.

Click the Content tab.

Click Settings

In the Content Advisor window, click the General tab.

Check Users can see websites that have no rating and then click OK twice


Friday, December 9, 2011

How to control the installation of Add-Ons in Internet Explorer.

For many organizations, controlling what can be added to clients help to reduce the Total Cost of Ownership (TCO) of a network.  Controlling what extensions can be added to Internet Explorer is part of the TCO reduction effort by preventing the IT staff from support issues caused me non-approved Add-ons.


The first thing we need to do is to discover the GUID of an Add-On that we want to prevent from being installed.  For this reason, you fist need to install it on a test client.


Once installed, open Internet Explorer.


Click Tools / Manage Add-ons.


Browser to the Add-on that you want to prevent the installation of.


Right mouse click the Add-on and select More Information.


Record the GUID ( curly braces as well ) and the Name.



Close the window.


Open a Group Policy that is scoped to the computers that your want to prevent add-ons from being installed.


Browse to Computer Configuration / Policies / Administrative Templates / Windows Components / Internet Explorer / Security Features / Add-on Management.


Enable the policy for Add-on List.


Click Show  and enter the Name in the Value Name field and the Class ID/GUID in the Value field. Click OK when done.


Click OK again.


Enable the policy for Deny all add-ons unless specifically allowed in the Add-on List.


Now, only the Add-on that you listed can be installed once this GPO is applied to your clients.

Thursday, December 8, 2011

Case sensitive “Contains” operator in PowerShell

In PowerShell, we can use the –contains operator to determine if a string contains something that we care looking for.  Here is an example:


$collection = "One","Two","Three"
$collection -contains "One"

In this example, True would be returned. In the next example, True would also be returned.

$collection -contains "one"

The difference is the ‘O’ is lower case.  This may not serve your needs if case sensitivity is a requirement.  The below code will prove a case sensitive test.


$collection -ccontains "one"


Now the result will be False.

Thursday, December 1, 2011

How to Disable the clients from removing the IE Menu Bar with Group Policy.

This is a simple fix utilizing Group Policy.  Make sure you are doing this in a GPO that is properly scoped to the Users that you want affected by this policy.

In your GPO, browse to User Configuration \ Policy \ Administrative Templates \ Windows Components \ Internet Explorer \ Toolbars.
Enable the following policies:
  • Disable customizing browser toolbar buttons.
  • Disable customizing browser toolbars.