Category Archives: H2So4

Elevating PowerShell Script Execution Permissions

Hi, This blog entry is one of first of the series on PowerShell Scripts. You will find in this blog how can you run the PowerShell Scripts from your PowerShell Command Prompt on Windows 7 or Windows server 2008 and above.

The script execution is by default is disabled by Microsoft to protect the environment against malicious scripts, but you can run the scripts from your trusted sources by elevating and enabling the scripts execution policy.

image

*Sorry for a bad quality picture here, please try opening the picture in new window to see the parts.

If you follow the snap shot as above and Run the power shell as an administrator you will get the following shell. Try checking the Execution Policy on your computer by running the following command

Get-ExcecutionPolicy

SNAGHTML589113b

In this case you are not allowed to run scripts on your machine and you will get the following error while executing any script

SNAGHTML6056631

Now this is the time to set the execution policy to the one you required to run the scripts. You have different options here as follows

Restricted – This is the default execution policy on installation. When this policy is in effect, script execution is disabled.

AllSigned – When the execution policy is AllSigned, scripts can be executed, but they must be Authenticode-signed before they will run.

RemoteSigned – RemoteSigned requires that all scripts that are downloaded from a remote location must be Authenticode-signed before they can be executed.

Unrestricted – When the execution policy is unrestricted, PowerShell will run any script. It will still prompt the user when it encounters a script that has been downloaded however, this is the least secure setting.

In Our case we are going to use RemoteSigned option and we will run the following command

Set-ExecutionPolicy RemoteSigned –Force

SNAGHTML6074aa5 

Now if we Run the same Script as before we will be able to do that as follows

image 

In the screen above the script just open a Balloon in the System tray. I will be sharing the script in my next post.

So, after performing the above steps now you can run the scripts in your power shell and exploit the feature of this excellent creation

Information on this Post is helpful, Please don’t forget to rate or comment.

Visit us on http://www.bytebeats.com

Advertisements

Royal Institute 0f Information and Technology

Hi,

I have received an admission letter from KTH, The Royal Institute of Information and Technology, Kista, Stockholm. I have admission in “Software Engineering of distributed Systems”, and I’m planning to go there by this August. I have applied for Sweden Visa, in fact Schengen States Visa. I’m from Lahore, Pakistan, and finding some prospective students at KTH this year for shared Accommodation, right now we are two students, both enrolled in KTH.

Interested should contact me at their earliest. You can get my contact information here

Good Luck all of you.

Regards,
Usman Afzal
+92 321 405 9065

LUMS MBA Interview Question/Suggestions

Well there are few post regarding LUMS Interview question and pattern.

First of I would Like to share few question that I supposed to be asked by the panel, these are few of those told by LUMS Alums.

Personal Value Added Questions

  • About You Questions
  • What value added in your personality by you previous studies
  • What value in your personality Expected by MBA
  • Your Professional growth to date
  • Professional Questions
    Don’t be among those, who say they won’t ask such question, be prepared for questions from your BS, at
    least 30% of your interview constitutes this part; get prepared about your current activities at Job, and
    expect some actual definitions out there.

    MBA Questions

  • Why MBA after Technical education
  • Why MBA Now, why not before this time
  • What value do u expect from MBA
  • After MBA Plan
  • About Your Aim
  • Reasons of your appearing for MBA
  • Why MBA from Pakistan
  • whom you are Inspired in business
  • MBA at LUMS

  • Why MBA from LUMS, why not somewhere else
  • What you know about MBA at LUMS
  • What you know about LUMS
  • What Value you would add after MBA from LUMS
  • and some more, but keep in mind to manipulate the things
  • These are some tips and general question that you will find by goggling a little bit.

    Now I would like to share some questions like those asked to me

    1. They started from my previous studies and remained there till end 🙂 (very strange)
    2. Read that day’s newspaper, at least go through the headlines
    3. Read some about the causes of crises these days
    4. Look at that day’s celebration if any, they asked me about the Allama Iqbal’s death Anniversary
    5. IPL remained hot during my Interview, but they asked simple questions regarding this

    This is it. Above are some questions they asked me during my Interview. Good Luck !

    I will also blog about some stuff that I goggled before my Interview, You will find in Next Post.

    Rate If You find above Information helpful.

    Usman Afzal

    Happy Teacher’s day

    When I turned the leaves of my life, I found my teacher’s efforts on each page; helping, guiding, teaching, and tutoring  me and making me Go after my dreams.

    I want to take this opportunity to wish all my teachers specially Rashid Kaleem, Shehzad Afzal, Adam Muhyudin, Syed Ahsan, Anwar Alam, my father Muhammad Afzal, and above all Mr. Rizwan Ahmed a very happy teacher’s day.

    With the help of these guys, I’m able to see beyond others. They added lots of things to my personality and forced me to think out of the box.

    Rashid Kaleem, Shehzad Afzal:
    I really feel myself very lucky to have such a nice pair of teacher in my life, they opened my doors for me, but most of all, they always discourage me going through windows during my study life at UET, Lahore.
    Happy Teacher’s day.

    Rizwan Ahmed:
    I should say, whatever I’m today is just because of my elder brother Rizwan, where my teahcer teach me about values and others, he gave me an opportunity to implement those in reality. Thank you bahi for everything you did in my life. Happy Teacher’s day.

    Remember Me In Your Prayers
    Usman Afzal