Cant run powershell script with .PS1 extension

Posted on 2007-10-15
Last Modified: 2012-06-27
At work I ran a script with a .PS1 extension perfectly in Powershell. I get home and install powershell on my computer and I cant run the same exact script that I ran at work. It's saves as a .PS1 extension but I get the generic error that: "The term filename.ps1 is not recognized as a cmdlet, function etc....
What gives?
Question by:tolinrome
    LVL 11

    Expert Comment


    This is the Powershell security that restricts runnings on any machine just like that...

    Please go through this link...

    LVL 7

    Author Comment

    I set it to unrestricted but I'm getting the same error!!!
    LVL 11

    Accepted Solution

    Just try using it like this...

    Change the "Filename" to your filename
    Where is the file locate
    LVL 7

    Author Comment


    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
    Over the years I've spent many an hour playing on hardened, DMZ'd servers, with only a sub-set of the usual GNU toy's to keep me company; frequently I've needed to save and send log or data extracts from these server back to my PC, or to others, and…
    The viewer will learn how to dynamically set the form action using jQuery.
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now