Friday, June 28, 2013

Linux Scripting: Lesson 1

Writing your first Shell script:

To successfully write a shell script, we have to do three things:

1. Write a script
2. Give permission to the shell to execute it
3. Put it somewhere the shell can find it

Writing a script

A shell script is a file that contains ASCII text. To create a shell script, you use a text editor. There are many text editors available for Linux system. Some of the popular ones are vi, vim, emacs, nano, gedit, kmacs

I am going to use VIM to write my first script. Now lets start it.

NOTE: write the commands only between the <>which  i will mention below

1. Login to your linux machine and type <vim>
Now you are into a text editor.
2. Press <i> to start typing in the text editor.
3. Type following 
< #!/bin/bash
   # My first script
       echo "Hello my name is Billy Jean!">
4. Type <:w billyjean> (This will save your script as billyjean)
5. Type <:wq!>  (This will let you exit from the text editor)
6. Type <chmod 777 billyjean(This will give full permission to run the script)
7. Type <./billyjean(This should display what you have written in between "" after echo)



Friday, June 7, 2013

How to disable IE10 automatic update via group policy

1.

Download Microsofts toolkit

2.

Open and store files

Open the exe and chose a location to save the files
3.

Add to group policy

Now go to group policy management and create a new policy and edit it or edit an existing policy.
Go to Computer configuration>polices, right click on "Administrative Templates" and click add/remove templates
click "Add..." and go to the folder you put the files and choose the "IE10_Blocker.adm"
4.

block or unblock

now simply expand administrative templates>Classic administrative templates> windows components>windows update>automatic updates blocker v3
in there will be an option called "Do not allow delivery of internet explorer 10 through automatic updates" edit the policy settings to either enable (to block) or disable (to allow).
5.

gpupdate

now just force a group policy update out to you client machines as you see fit and IE10 will not install through automatic updates.

Conclusion

This does not prevent uses downloading and installing IE10 in other ways.
If you want to run this just on one machine you can run "Command Prompt” as Administrator.
Type “CD” followed by the path to where you have extracted the files to
and type "ie10_blocker.cmd /B"