Script works in PowerShell ISE but not in regular PowerShell window

Hello all!
I've got another PS conundrum to ponder.  I have the following script lines:
write-host"Check
for password complexity requirements:"-foregroundcolorblack-backgroundcolorwhite
write-host""
import-moduleactivedirectory
$PasswordPolicy=Get-ADObject$RootDSE.defaultNamingContext
-PropertypwdProperties
$PasswordPolicy|Select@{n="PolicyType";e={"Password"}},`
DistinguishedName,`
@{n
="Password complexity requirements";e={Switch($_.pwdProperties)
0{"Passwords
can be simple and the administrator account cannot be locked out"} 
1{"Passwords
must be complex and the administrator account cannot be locked out"} 
8{"Passwords
can be simple, and the administrator account can be locked out"} 
9{"Passwords
must be complex, and the administrator account can be locked out"} 
Default{$_.pwdProperties}}}}
|ft*-auto
When I run this code in ISE, it works great.  It returns the value for the setting "1" which is what this GPO is set to.
But, when I run this same code in elevated PowerShell prompt, I get the following error:
Any help would be greatly appreciated.

Hi,
Are you creating $RootDSE before you use it?
Don't retire TechNet! -
(Don't give up yet - 13,085+ strong and growing)

Similar Messages

  • Script works in ISE but not in regular Powershell

    I created a script that will read in files, encrypt them using openssl, and then remove the original. Only downside is that the script only works in ISE and not in powershell.
    On powershell command line the line "remove-item $file" ends up being an entire list of files instead of a single file. While in ISE the command is the single file instead of the list of files.
    Code in question:
    $file= get-content $file
    Foreach ($file in $files)
       $in=$null
       $out=$null
       #set the in and out files
       if ($enc -eq "-e")
          $in = "$file"
          #add .enc to let people know it is encrypted
          $out= "$file" + ".enc"
          }else{
          #we are decrypting
          $in="$file"
          #remove the .enc at the end of the string to restore to normal      
          $out="$in" -replace ".enc"        
        if ($file -eq ".enc")
        break
        $run = $cmd  + " enc" + " -" + $type + " -pass pass:" + $password + " " + $enc + " -in " + $in + " -out " + $out
        invoke-expression $run
        remove-item $file
        $in=$null
        $out=$null
    any help would be wonderful

    Technically it starts with my parameters and setting up the openssl command. Here is the mostly full version - i can give the full full one if you want.
    $files= get-content $files    
    #check the switch to see if we are encrypting or decrypting
    $enc="-e"
    if ( $decrypt)
       $enc="-d"
    Foreach ($file in $files)
       $in=$null
       $out=$null
       #set the in and out files
       if ($enc -eq "-e")
          $in = "$file"
          #add .enc to let people know it is encrypted
          $out= "$file" + ".enc"
          }else{
          #we are decrypting
          $in="$file"
          #remove the .enc at the end of the string to restore to normal      
          $out="$in" -replace ".enc"        
        if ($file -eq ".enc")
        break
        $run = $cmd  + " enc" + " -" + $type + " -pass pass:" + $password + " " + $enc + " -in " + $in + " -out " + $out
        invoke-expression $run
        remove-item $file
        $in=$null
        $out=$null
            

  • G4 iBook works in Safe Mode, but not in regular mode (stuck on blue screen)

    14" iBook G4 1.2GHz with 1 gig of RAM.
    I recently had an issue with this machine in that the image on the screen would freeze but the cursor would be able to move around. This was narrowed down to an issue with the logic board. I wanted something a little more permanent than a shim, so I sent the board in to have it reballed.
    After installing the maching back into my iBook, it seemed to work fine until I applied a software update to the machine.
    It was then that I got to experience the first of many kernel panics.
    Restarting at different times always brought me to the dialog box which states that the machine needed to be restarted in multiple languages.
    Running the Apple Hardware Test off my install disks yielded this error code: 2ATI/2/4:113-xxxxx-125
    I have no idea what that means. I do know that just before I got the results of the test, the screen changed to all kinds of colors. It was only for a few seconds and then the results (with the error code) were displayed.
    Still, not sure what to do next, I tried resetting the PRAM. I also tried resetting the NVRAM.
    I also tried booting up into Safe Mode which actually worked. There were no issues with the machine and everything seemed to be working fine.
    When I tried to restart the machine in regular mode, I'm taken to the infamous blue screen and the machine just stays there. When I let the machine stay off overnight, it booted up normal, but after applying the software update, the machine was in kernel panic again.
    I've tried running fsck, but nothing changes.
    I'm still not sure why it seems to work in Safe Mode but not in regular mode.
    I'd appreciate any suggestions or ideas.

    Hi,
    A couple of the things that are disabled in safe mode are AirPort and non Apple startup items. The easiest thing for you to test is the AirPort card. Shut down and remove the AE card under the keyboard. See if it starts. If it does your AE card is bad. If not, start in safe mode and go to System Preferences>Accounts>youraccount and disable all non Apple startup (LOgin) items by clicking on them and then the minus sign. Restart normally and see if it will start.
    John

  • Short, basic VB script works on 2003 Server but not on 2012 R2 server

    Hello all,
    Hopefully I'm posting this in the right place. I have a legacy VB script that I need to keep, but I'm having trouble getting it to work on Server 2012 R2.
    The script reads a file called "Test.txt" that contains the following string:
    String1|String2
    Part of the VB script is to read this "Test.txt" file and parse this line into 2 separate elements based upon the "|" delimeter:
    On Error Resume Next
    Dim FSI, inputFile, String, f, WshShell,WshNetwork, WshFSO, StringArray
    inputFile = "Test.txt"
    CONST ForReading = 1, ForWriting = 2, ForAppending = 8
    Set FSI = CreateObject("Scripting.FileSystemObject")
    Set f = FSI.OpenTextFile(inputFile, ForReading, True)
    Set WshShell=WScript.CreateObject("WScript.Shell")
    '********* Read the file ********
    String = f.ReadLine
    msgbox("String: "&string)
    '********* Split the line *******
    StringArray = Split(String,"|", -1, 1)
    msgbox("stringarray(0): "&stringarray(0))
    msgbox("stringarray(1): "&stringarray(1))
    The variables in this script when ran on Server 2003 are:
    string = String1|String2
    stringarray(0) = String1
    stringarray(1) = String2
    So this script parses the String1|String2 line perfectly on Server 2003. However, running this same VB script on Server 2012 R2 results in very strange output:
    The variables in this script when ran on Server 2012 R2 are:
    string = ӱƥt
    stringarray(0) = ӱƥt
    stringarray(1) =
    Is there anything on Server 2012 R2 that I need to install to get this to work in VB, or what is the issue with Server 2012 R2 and visual basic? I'd LOVE to redo this in PowerShell but I need to keep it Visual Basic for legacy reasons for a few more months.

    Hmm interesting. I tried using the 3 different "format" parameters for the OpenTextFile method, and none of them worked on Server 2012 R2:
    http://msdn.microsoft.com/en-us/library/aa265347(v=vs.60).aspx
    However, I copied the text file directly from the 2003 server and placed it on the 2012 R2 server, and then the script worked great!
    Thanks for steering me in the right direction Bill!

  • Script works for one frame but not another

    I set up 2 keyframes, each one loads a different text file
    into a dynamic text box. The text box for the first keyframe is
    named "session" and the text box for the second keyframe is named
    "oneptq". The text file for the first text box is named Titles.txt
    and the text file for the second keyframe is 100Q.txt. The code I'm
    using is identical (except for the respective names of the text
    boxes and text files) but for some reason the text will load in the
    first text box but not the second.
    Here's my AS for the first keyframe:
    lvLoader = new LoadVars();
    lvLoader.onLoad = function(success)
    if(success)
    session.text = lvLoader.textbody;
    lvLoader.load("Titles.txt");
    And my AS for the second keyframe:
    lvLoader = new LoadVars();
    lvLoader.onLoad = function(success)
    if(success)
    oneptq.text = lvLoader.textbody;
    lvLoader.load("100Q.txt");
    I can't figure this thing out. Please help. Thanks.

    Have you double checked that it's a DYNAMIC text box? Maybe
    it was accidentally swapped by to static at some point...

  • Find... has Icon Scaling bar, but not the regular Finder window?

    Hi,
    Why is it that the Find... window in Finder has a bar that enables you to scale the size of Icons, but the regular Finder window doesn't?
    Also, why is the typical Icon Size in Icon View limited to 128 x 128 pixels? When you're in one of the Find... windows, you can scale any icon all the way up to approximately 428 x 428 pixels, completely fluidly, all in real-time.

    Probably so you can make them smaller if there are a large number of search results without having to permanently change you default configuration. I can surely see a need for this if you normally view search results in icon view (personally, I don't). But I wouldn't want to then have that change reflected system-wide.

  • Simple Script works on 10.6 but not 10.5.8

    Hi,
    Brand new to Applescript...I made a simple script (saved as an application) to rename Excel Sheet Tabs and it works on my MBP (10.6.2) however when I try sharing with other users (10.5.8), it fails to carry out properly. It opens a blank workbook rather than the "test.xls" workbook and won't go any further. Am thinking it might be due to:
    1) where the script and .xls file were originally created/saved?
    2) 10.6.2 vs. 10.5.8?
    3) method of sharing? Tried attaching to Mac OSX Server Wiki, NAS and e-mailing but still wouldn't work.
    here's the script-
    tell application "Microsoft Excel"
    try
    open workbook workbook file name "test.xls"
    activate object worksheet "names"
    set myRange to range "A2" of worksheet "names"
    set myName to input box prompt "Please type a Student Name" title "Students"
    set value of myRange to myName
    set name of sheet 3 to myName
    set myRange to range "A3" of worksheet "names"
    set myName to input box prompt "Please type a Student Name" title "Students"
    set value of myRange to myName
    set name of sheet 4 to myName
    set myRange to range "A4" of worksheet "names"
    set myName to input box prompt "Please type a Student Name" title "Students"
    set value of myRange to myName
    set name of sheet 5 to myName
    set myRange to range "A5" of worksheet "names"
    set myName to input box prompt "Please type a Student Name" title "Students"
    set value of myRange to myName
    set name of sheet 6 to myName
    set myRange to range "A6" of worksheet "names"
    set myName to input box prompt "Please type a Student Name" title "Students"
    set value of myRange to myName
    set name of sheet 7 to myName
    set myRange to range "A7" of worksheet "names"
    set myName to input box prompt "Please type a Student Name" title "Students"
    set value of myRange to myName
    set name of sheet 8 to myName
    set myRange to range "A8" of worksheet "names"
    set myName to input box prompt "Please type a Student Name" title "Students"
    set value of myRange to myName
    set name of sheet 9 to myName
    set myRange to range "A9" of worksheet "names"
    set myName to input box prompt "Please type a Student Name" title "Students"
    set value of myRange to myName
    set name of sheet 10 to myName
    set myRange to range "A10" of worksheet "names"
    set myName to input box prompt "Please type a Student Name" title "Students"
    set value of myRange to myName
    set name of sheet 11 to myName
    set myRange to range "A11" of worksheet "names"
    set myName to input box prompt "Please type a Student Name" title "Students"
    set value of myRange to myName
    set name of sheet 12 to myName
    end try
    end tell
    Any suggestions will be greatly appreciated! THANKS!

    more info:
    a co-worker with a MacBook (10.5.8) was able to download the script and .xls file from our server and it worked...
    An eMac (10.4.11) was not able to run the script.
    All machines are running 2008 Office for Mac

  • PHP Script works in Chrome, IE9 but not in Firefox 15

    This page is a PHP script for creating hyperlinks to all files in a directory:
    http://www.checktheevidence.co.uk/audio/index.php?dir=&sort=date&order=desc
    It works fine in IE9 and Chrome, but Firefox "give up" about 3/4 way down the listing the hyperlinks for the files are no longer shown. Weird stuff.
    This issue has been present for a long time

    It's not pretty, is it. The problem is that your page opens <strong> tags without closing them. For example:
    <div>
    &lt;a href="Victoria Derbyshire Cuts off Police Constable talking about The Club in the Police - Radio 5 Live - 13 Sep 2012.mp3" class="w"><b>&lt;strong></b>Victoria Derbyshire Cuts off Police Constable talking about The Club in the Police - Radio 5 Live - 13 Sep 2012.mp3 &lt;/a>
    (1.5 MB) (Modified: Sep 17 2012 11:06:37 PM)
    &lt;/div>
    This causes Firefox to "nest" tags in the page past a maximum depth. After that point, it just dumps text to the page. Similar/related past threads:
    * [https://support.mozilla.org/en-US/questions/846246 Part way through a particular web page, HTML stops being rendered]
    * [https://support.mozilla.org/en-US/questions/929969 text is missing from webpage]
    So just a small fix to your PHP and you should be good to go.

  • SQL script works in SQL Developer but not when scheduled

    I have a script that I can run, logged onto my server as a user with full permissions and into my database as SYSDBA, that produces a CSV file on the server when I run it from SQL Developer ON the server. HOWEVER, when I set it up as a scheduled job, using those SAME CREDENTIALS (same Windows/network user; same database user), I get no output. The job indicates that it's running successfully, but no file gets created.
    Any advice is greatly appreciated.
    Here's the script:
    WHENEVER SQLERROR EXIT FAILURE;
         set serveroutput on
         DECLARE
         my_query varchar2(5000);
         BEGIN
         my_query := q'[
    SELECT client_id, JOB_NAME, SCHEDULE_TYPE, TO_CHAR(START_DATE,'MM/DD/YYYY HH24:MM') AS START_DATE,
    REPEAT_INTERVAL, ENABLED, STATE, RUN_COUNT,
    TO_CHAR(LAST_START_DATE,'MM/DD/YYYY HH24:MM') AS LAST_START, LAST_RUN_DURATION,
    TO_CHAR(NEXT_RUN_DATE,'MM/DD/YYYY HH24:MM') AS NEXT_RUN
    FROM DBA_SCHEDULER_JOBS
    WHERE instr(client_id,'10.') is not null
    ORDER BY LAST_START_DATE DESC
         p2k.ccsd_any_query_to_csv('HRISEDB_E_OUTPUT_MK', 'dbserver_job_output.csv',my_query);
         end;
    =================================================================
    Here's the called procedure (I don't really understand it -- I gleaned it from others on the internet):
    -- DDL for Procedure CCSD_ANY_QUERY_TO_CSV
    set define off;
    CREATE OR REPLACE PROCEDURE "CCSD_ANY_QUERY_TO_CSV" (p_dir in varchar2, p_filename in varchar2, p_query in varchar2) AUTHID CURRENT_USER
    is
    l_output utl_file.file_type;
    l_theCursor integer default dbms_sql.open_cursor;
    l_columnValue varchar2(4000);
    l_status integer;
    l_query long;
    l_colCnt number := 0;
    l_separator varchar2(1);
    l_col_desc dbms_sql.desc_tab;
    l_col_type varchar2(30);
    l_datevar varchar2(8);
    BEGIN
    l_query := 'SELECT SYSDATE FROM DUAL; ';
    dbms_sql.parse(l_theCursor, p_query, dbms_sql.native);
    dbms_sql.describe_columns(l_theCursor, l_colCnt, l_col_desc);
    l_output := utl_file.fopen( p_dir, p_filename, 'w' );
    dbms_sql.parse( l_theCursor, p_query, dbms_sql.native );
    for i in 1..l_col_desc.count LOOP
    utl_file.put( l_output, l_separator || '"' || l_col_desc(i).col_name || '"' );
    dbms_sql.define_column( l_theCursor, i, l_columnValue, 4000 );
    l_separator := ',';
    end loop;
    utl_file.new_line( l_output );
    l_status := dbms_sql.execute(l_theCursor);
    while ( dbms_sql.fetch_rows(l_theCursor) > 0 ) loop
    l_separator := '';
    for i in 1 .. l_colCnt loop
    dbms_sql.column_value( l_theCursor, i, l_columnValue );
    utl_file.put( l_output, l_separator || '"' || l_columnValue || '"');
    l_separator := ',';
    end loop;
    utl_file.new_line( l_output );
    end loop;
    dbms_sql.close_cursor(l_theCursor);
    utl_file.fclose( l_output );
    execute immediate 'alter session set nls_date_format=''dd-MON-yy'' ';
    exception
    when others then
    execute immediate 'alter session set nls_date_format=''dd-MON-yy'' ';
    raise;
    end;
    /

    hello,
    does oracle showing any errors in user_scheduler_job_run_details for this job ? I would advise try inserting some debug statement to identify where exactly its stuck. Also please check sample configurations syntax for user_scheduler_jobs.
    Cheers
    Sush

  • Scroll script works in Flash 6, but not in 9

    I have a simple scroller script that works fine for scrolling
    a movieclip in Flash 6, but when I publish in anything later, it no
    longer scrolls. Both are set to AS2. Is there an obvious reason
    that anyone can see of why this should be? When I test the script
    syntax in the actions panel, it says there are no errors in the
    script. By tracing I can see that there's no trouble with targeting
    the up and down buttons or scroll slider, and the slider still
    drags, but the content MC doesn't move as it should. Thank you very
    much for your help, in advance. Here's the script, in case the
    answer isn't obvious from the description:

    You were right! It works now, even as posted above. I just
    remembered I had fixed an upper/lower case inconsistency just for
    neatness since I last tested, never thinking that would fix the
    problem! I just tested again and to my surprise, it works great. I
    guess neatness does count!!! Thanks again, kglad!

  • Script works in one frame, but not with frames before it

    Hi all-
    I'm a complete AS/Flash n00b, but hoping that I can get some guidance on this.
    I'm trying to test a very simple function for an e-learning module that is to train people on using 'quick keys' or key combinations on their keyboard. Basically, I want to show them a command and have them practice. In the practice, they will be asked to use a command and then have to do it on their keyboard.
    I used the code below successfully with one frame and a couple layers. I created a text-area ("traceArea), put it on the stage, set up the event and function... it works great! (although I'm sure the code isn't very pretty) When anything other than ctrl-p is pressed, it traces the "Try again!" message and when ctrl-p is pressed, "Great job!" pops up.
    stop();
    stage.addEventListener(KeyboardEvent.KEY_DOWN, detectKey);
    function detectKey(event:KeyboardEvent):void
    if (event.ctrlKey== true && event.keyCode==80 )
    traceArea.text = "Great job!";
    else
    traceArea.text = "Try again!";
    So, then I tried to build on to the file and added two frames before the previous AS code.
    Frame 1 - Intro
    A short introduction to the 'module' with a continue button. The code for this frame is:
    stop();
    continueBtn1.addEventListener(MouseEvent.MOUSE_UP,buttonPressed);
    function buttonPressed(event:MouseEvent)
    nextFrame();
    Frame 2 - Instructions
    This frame shows the viewer the correct keys to use to print (ctrl-p). There is another continue button here. Code:
    stop();
    continueBtn2.addEventListener(MouseEvent.MOUSE_UP,buttonPressed);
    The last frame is then the 'practice' (see first code above).
    When I run this file, there are no errors, but when it gets to that last frame, nothing is traced and there is no output on any keyboard command. I know the solution must be pretty easy, but I'm missing it and have no idea what it might be!
    Any help is appreciated. Thanks!
    -Andy

    use the trace function to debug your flash code:
    stop();
    stage.addEventListener(KeyboardEvent.KEY_DOWN, detectKey);
    function detectKey(event:KeyboardEvent):void
    trace(event);
    if (event.ctrlKey== true && event.keyCode==80 )
    traceArea.text = "Great job!";
    else
    traceArea.text = "Try again!";

  • Script works fine in CC but not CS5- Any tips?

    So i have this script that detects instances of XXXXXXXX and turns them into hyperlinks. It works fine in InDesign CC however won't play nice in CS5.
    Anyone have any tips as to how I can go about making it work?
    var myDoc = app.activeDocument;
    var myLinkStyle = myDoc.characterStyles.itemByName("link"); // the Character style of the links
    var myURL = "http://www.abc.com.au/part/{part_id}?utm_source=ABC%PublicationName&utm_medium=Catalogue&utm_term={part_id}&utm_campa ign=Catalogue"; // url of your company
    var myUrlPartReplace = new RegExp("{part_id}", 'g');
    var i, myLinks, myLink, mySource, myDestination;
    for (i = myDoc.hyperlinkTextSources.length-1; i >= 0; i--){
        mySource =  myDoc.hyperlinkTextSources[i];
        if (mySource.sourceText.appliedCharacterStyle == myLinkStyle){
            mySource.remove(); // removes existing hyperlinks to avoid "double bookings"
    app.findGrepPreferences = null;
    app.findGrepPreferences.findWhat = "\\<(\\d\\d\\d\\d\\d\\d\\d\\d)\\>";
    myLinks = myDoc.findGrep();
    app.findGrepPreferences = null;
    for (i = 0; i < myLinks.length; i++){
       myLink = myLinks[i];
       mySource = myDoc.hyperlinkTextSources.add(myLink);
       myDestination = myDoc.hyperlinkURLDestinations.add(myURL.replace(myUrlPartReplace, myLink.contents.replace(" ", "")));
       myDoc.hyperlinks.add(mySource, myDestination);
    Thanks in advance!

    HI Trevor,
    Thanks for the suggestion. I copied the script into a new file and tried to run from the ESTK... no luck (see screenshot).

  • Another powershell workflow script will run in powershell ISE but no powershell command prompt.

    Hi,
    Im having some issue with a few powershell workflow scripts that will work in powershell ISE but they will appear to not run in a Admin powershell command prompt session.
    The script is simple.
    Workflow NewUser
        Param (
                [Parameter(Mandatory=$True)]
                [string] $givenname,
                [Parameter(Mandatory=$True)]
                [string] $surname,
                [Parameter(Mandatory=$True)]    
                [string] $template
        "Param1 = $givenname"
        "Param2 = $surname"
        "Param3 = $template"
    The saved file name is NewUser.ps1.
    When I run .\NewUser.ps1 -givenname test -surname test -template test
    Nothing happens.   In Powershell ISE, it outputs
    Param1 = test
    Param2 = test
    Template = test
    I can run .\NewUser.ps1 skdjfsdkfjsdkfjsdkfj in powershell command
    and nothing happens.
    I notice this behavior with a number of scripts that I get working with ISE and they dont work in powershell command prompt. 
    We are using Powershell 4.0
    Thanks Lance

    When I run
    Set-psdebug -step
    then newuser.ps1 -givename test -surname test -template test
    it gets to the line workflow newuser and quits
    am I missing some dependency?
    Running  [System.Threading.Thread]::GetDomain().GetAssemblies() in powershell commmand returns the following.
    GAC    Version        Location                                                                                       
    True   v4.0.30319     C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll                                   
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.ConsoleHost\v4.0_3.0.0.0__31bf...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll      
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.C...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Management.Automation\v4.0_3.0.0.0__31bf3856...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\Syst...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xm...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.DirectoryServices\v4.0_4.0.0.0__b03f5f7f11d5...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Management\v4.0_4.0.0.0__b03f5f7f11d50a3a\Sy...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Management.Infrastructure\v4.0_1.0.0.0__3...
    False  v4.0.30319                                                                                                    
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration.Install\v4.0_4.0.0.0__b03f5f7f...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_64\System.Transactions\v4.0_4.0.0.0__b77a5c561934e089\Sy...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Security\v4.0_3.0.0.0__31bf385...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Activities\v4.0_3.0.0.0__31bf3...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\Sy...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Workflow.ServiceCore\v4.0_3.0....
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities.Presentation\v4.0_4.0.0.0__31bf38...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework\v4.0_4.0.0.0__31bf3856ad364e3...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.0__31bf3856ad364e35\WindowsB...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_64\PresentationCore\v4.0_4.0.0.0__31bf3856ad364e35\Prese...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xaml\v4.0_4.0.0.0__b77a5c561934e089\System.X...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Core.Activities\v4.0_3.0.0.0__...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Diagnostics.Activities\v4.0_3....
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Management.Activities\v4.0_3.0...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Security.Activities\v4.0_3.0.0...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Utility.Activities\v4.0_3.0.0....
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.WSMan.Management.Activities\v4.0_3.0.0.0_...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.DurableInstancing\v4.0_4.0.0.0__31bf...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Internals\v4.0_4.0.0.0__31bf385...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Dat...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Commands.Utility\v4.0_3.0.0.0_...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\Syst...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Mic...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Commands.Management\v4.0_3.0.0...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Dynamic\v4.0_4.0.0.0__b03f5f7f11d50a3a\Syste...
    and for the ISE it returns this 
    GAC    Version        Location                                                                                                     
    True   v4.0.30319     C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll                                                 
    False  v4.0.30319     C:\Windows\System32\WindowsPowerShell\v1.0\powershell_ise.exe                                                
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.ISECommon\v4.0_3.0.0.0__31bf3856ad364e35\Mic...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll                    
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Window...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll    
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Management.Automation\v4.0_3.0.0.0__31bf3856ad364e35\Syste...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll          
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.GPowerShell\v4.0_3.0.0.0__31bf3856ad364e35\M...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.Composition\v4.0_4.0.0.0__b77a5c561934e089\...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Editor\v4.0_3.0.0.0__31bf3856ad364e35\Micros...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework\v4.0_4.0.0.0__31bf3856ad364e35\Presentation...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.0__31bf3856ad364e35\WindowsBase.dll          
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_64\PresentationCore\v4.0_4.0.0.0__31bf3856ad364e35\PresentationCore.dll  
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xaml\v4.0_4.0.0.0__b77a5c561934e089\System.Xaml.dll          
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Config...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll            
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\Syste...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\UIAutomationProvider\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationP...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Accessibility\v4.0_4.0.0.0__b03f5f7f11d50a3a\Accessibility.dll      
    False  v4.0.30319                                                                                                                  
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.DirectoryServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Di...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Management\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Managemen...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Management.Infrastructure\v4.0_1.0.0.0__31bf3856ad364e3...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll  
    False  v4.0.30319                                                                                                                  
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework.AeroLite\v4.0_4.0.0.0__31bf3856ad364e35\Pre...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\UIAutomationTypes\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationType...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework-SystemXml\v4.0_4.0.0.0__b77a5c561934e089\Pr...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration.Install\v4.0_4.0.0.0__b03f5f7f11d50a3a\Syste...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_64\System.Transactions\v4.0_4.0.0.0__b77a5c561934e089\System.Transacti...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Security\v4.0_3.0.0.0__31bf3856ad364e35\Micr...
    False  v4.0.30319                                                                                                                  
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.GraphicalHost\v4.0_3.0.0.0__31bf3856ad364e35...
    False  v4.0.30319                                                                                                                  
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework-SystemCore\v4.0_4.0.0.0__b77a5c561934e089\P...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll            
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Commands.Utility\v4.0_3.0.0.0__31bf3856ad364...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework-SystemData\v4.0_4.0.0.0__b77a5c561934e089\P...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Commands.Management\v4.0_3.0.0.0__31bf3856ad...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceProcess\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Servi...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Activities\v4.0_3.0.0.0__31bf3856ad364e35\Mi...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activitie...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Workflow.ServiceCore\v4.0_3.0.0.0__31bf3856a...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities.Presentation\v4.0_4.0.0.0__31bf3856ad364e35\Sys...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Core.Activities\v4.0_3.0.0.0__31bf3856ad364e...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Diagnostics.Activities\v4.0_3.0.0.0__31bf385...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Management.Activities\v4.0_3.0.0.0__31bf3856...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Security.Activities\v4.0_3.0.0.0__31bf3856ad...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Utility.Activities\v4.0_3.0.0.0__31bf3856ad3...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.WSMan.Management.Activities\v4.0_3.0.0.0__31bf3856ad364...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.DurableInstancing\v4.0_4.0.0.0__31bf3856ad364e35\S...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Internals\v4.0_4.0.0.0__31bf3856ad364e35\Syst...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll  
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework-SystemXmlLinq\v4.0_4.0.0.0__b77a5c561934e08...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Dynamic\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Dynamic.dll    
    Thanks Lance

  • Same command works on the server but not on the workstation

    Scenario
    Exchange 2010 sp3
    Name                           Value
    CLRVersion                     2.0.50727.4984
    BuildVersion                   6.1.7600.16385
    PSVersion                      2.0
    WSManStackVersion              2.0
    PSCompatibleVersions           {1.0, 2.0}
    SerializationVersion           1.1.0.1
    PSRemotingProtocolVersion      2.1
    Worstation:
    Name                           Value
    PSVersion                      4.0
    WSManStackVersion              3.0
    SerializationVersion           1.1.0.1
    CLRVersion                     4.0.30319.18063
    BuildVersion                   6.3.9600.16406
    PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0}
    PSRemotingProtocolVersion      2.2
    I input a command from my workstation using ISE
    get-exchangeserver | Where-Object {$_.IshubtransportServer -eq $True} | Get-MessageTrackingLog -Start (get-date).AddHours(-2) -Sender '[email protected]'
    Error:
    The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the 
    parameters that take pipeline input.
    The Exact same command from the Server works.
    In my profile I have the following:
    set-Location c:\
    $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri 'http://MyExchangeServer/powershell'
    import-pssession $Session
    Import-Module ActiveDirectory
    $host.PrivateData.ErrorForegroundColor = 'green'
    Clear-Host
    From My Workstation:
    PS C:\> Get-PSSession
     Id Name            ComputerName    State         ConfigurationName     Availability
      1 Session1        MyExchangeServer  Opened        Microsoft.Exchange       Available
    Why  does the command work on the server but not on the workstation?
    Alexis

    Hi Tiri2014,
    There are some differences between Remote PowerShell and Exchange Management Shell. You cannot use the pipeline when you run some cmdlets by using Remote PowerShell.
    Here’s a link to similar case for your reference:
    Error message when you try to pipe the result of a cmdlet into another cmdlet by using Remote Powershell in Office 365 dedicated: “The input object cannot be bound to any parameters
    for the command”
    http://support.microsoft.com/kb/2701827/en-us
    Hope it helps
    Best regards

  • Flex mobile 4.6 app works inside flash builder but not in android emulator

    Originally posted on stackoverflow: http://stackoverflow.com/questions/8663892/flex-mobile-4-6-app-works-inside-flash-builder- but-not-in-android-emulator
    I have a basic flex mobile 4.6 app and it works fully fine in the flash builder built-in emulator using an android device profile like aria...
    It also launches fine in the android emulator but one particular view shows blank (and this view works fine in flash builder).
    Before I get in to many details of the view are there any categorical gotchas that can be causing this?
    I can't seem to get the trace statements from the app to show in 'adb logcat'. It seems I need to compile a debug version of the apk but I don't know how to do this. I use the 'Export Release Build' from the Project menu in flash builder and it doesn't seem to have an option for debug=true.
    The problematic/blank view basically uses the stagewebview and iotashan's oauth library to call linkedin rest apis... A different (and working) view can make restful web service calls in the emulator fine, so it doesn't seem to be an internet permission.
    The source code contained in the problematic/blank view is almost identical to the tutorial found at:http://www.riagora.com/2011/01/air-and-linkedin/
    The differences are: a) The root tag is a View b) I use StageWebView instead of HtmlContainer c) I use my own linkedin key and tokens.
    I would appreciate it if someone can provide me with some pointers on how to troubleshoot this situation. Perhaps someone can tell me how to debug the app while running in the emulator (I think I need the correct adt command arguments for this which matches the 'Export Release Build' menu but adds the debug param?)
    Thanks for your help in advance.
    Comment Added:
    I suspect that this has to do with connections to https:// api.linkedin.com and https:// www.linkedin.com. The only reason I can think of that the same code is not having issues inside of Flex Builder but indeed having issues in the Android emulator is something to do with certificates. Any ideas?

    Thanks er453r,
    I have created a project that clearly reproduces the bug.  Here are the steps:
    1) Create a UrlLoader and point it to https://www.google.com (HTTPS is important because http works but HTTPS does not)
    2) Load it
    3) Run in Flash Builder 4.6/Air 3.1 and then run in Android emulator.  The former works with an http status 200.  The latter gives you an ioerror 2032.  I am assuming what works in Flash Builder is supposed to work in the Android Emulator and what what works in the emulator is supposed to work in a physical device (plus or minus boundary conditions).
    I see a certificate exception in adb logcat but not sure if it's related...
    Here is the self contained View code which works with a TabbedViewNavigatorApplication:
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
                        xmlns:s="library://ns.adobe.com/flex/spark"
                        xmlns:mx="library://ns.adobe.com/flex/mx"
                        xmlns:ns1="*"
                        xmlns:local="*"
                        creationComplete="windowedapplication1_creationCompleteHandler(event) "
                        actionBarVisible="true" tabBarVisible="true">
              <fx:Script>
                        <![CDATA[
                                  import mx.events.FlexEvent;
                                  protected var requestTokenUrl:String = "https://www.google.com";
                                  protected function windowedapplication1_creationCompleteHandler(event:FlexEvent):void
                                            var loader:URLLoader = new URLLoader();
                                            loader.addEventListener(ErrorEvent.ERROR, onError);
                                            loader.addEventListener(AsyncErrorEvent.ASYNC_ERROR, onAsyncError);
                                            loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
                                            loader.addEventListener(HTTPStatusEvent.HTTP_RESPONSE_STATUS, httpResponseStatusHandler);
                                            loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
                                            var urlRequest:URLRequest = new URLRequest(requestTokenUrl);
                                            loader.load(urlRequest);
                                  protected function requestTokenHandler(event:Event):void
                                  protected function httpResponse(event:HTTPStatusEvent):void
                                            label.text += event.status;
                                            // TODO Auto-generated method stub
                                  private function completeHandler(event:Event):void {
                                            label.text += event.toString();
                                            trace("completeHandler data: " + event.currentTarget.data);
                                  private function openHandler(event:Event):void {
                                            label.text +=  event.toString();
                                            trace("openHandler: " + event);
                                  private function onError(event:ErrorEvent):void {
                                            label.text +=  event.toString();
                                            trace("onError: " + event.type);
                                  private function onAsyncError(event:AsyncErrorEvent):void {
                                            label.text += event.toString();
                                            trace("onAsyncError: " + event);
                                  private function onNetStatus(event:NetStatusEvent):void {
                                            label.text += event.toString();
                                            trace("onNetStatus: " + event);
                                  private function progressHandler(event:ProgressEvent):void {
                                            label.text += event.toString();
                                            trace("progressHandler loaded:" + event.bytesLoaded + " total: " + event.bytesTotal);
                                  private function securityErrorHandler(event:SecurityErrorEvent):void {
                                            label.text +=  event.toString();
                                            trace("securityErrorHandler: " + event);
                                  private function httpStatusHandler(event:HTTPStatusEvent):void {
                                            label.text += event.toString();
                                            //label.text += event.responseHeaders.toString();
                                            trace("httpStatusHandler: " + event);
                                  private function httpResponseStatusHandler(event:HTTPStatusEvent):void {
                                            label.text +=  event.toString();
                                            trace("httpStatusHandler: " + event);
                                  private function ioErrorHandler(event:IOErrorEvent):void {
                                            label.text +=  event.toString();
                                            label.text += event.text;
                                            trace("ioErrorHandler: " + event);
                        ]]>
              </fx:Script>
              <fx:Declarations>
                        <!-- Place non-visual elements (e.g., services, value objects) here -->
              </fx:Declarations>
              <s:Label id="label" y="185" width="100%" color="#0A0909" horizontalCenter="0" text=""/>
    </s:View>

Maybe you are looking for

  • How to set a password on a folder

    I was wondering if it is possible to protect a folder with a password. Let's say I don't want to create an account for other users. They use my account when using my Mac. But I have a folder I don't want them to access. Is it doable?

  • Regarding BAPI_DOCUMENT_CRATE

    Could you please provide me any complete code using RFC BAPI_DOCUMENT_CREATE or BAPI_DOCUMENT_CREATE2.Please send me complete code. Thanks in advance, Venkat.

  • DBL to binary indicator/array?

    Hi, I have a DBL data type value that is 2^48 & I need to convert it to bits (form of; a binary array?)& display "LED" indicators on the front panel. All LabVIEW array/conversion tools only allow 32 bits @ the most. The ideal display form would be 6,

  • AW: [Acrobat Installation & Update Issues] AW: [Acrobat Installation & Update Issues] Update von Acrobat 8.0 auf 8.3

    hello I say again that I have acquired the Acrobat 8.0 version honestly. I ordered this version even if a handler is Germany. This handler was registered on the website at Adobe as a handler. If you do not believe me, I'm looking for stuff from my ar

  • Disable EAP Authentication for Web-Auth on WLC

    Hello Everyone We Use a Special Radius Server who is implemented according to RFC 2865.  But now we get Errors that the Radius Server cant handle the Attribut Typ 80. For that i now this Attribut has to do with EAP Authentication, which is a newer ad