Power Shell shell startup scripts over network

Discussion in 'Scripting' started by Brandon Hamm, May 3, 2006.

  1. Brandon Hamm

    Brandon Hamm Guest

    Power Shell RC1 doesn't seem to play nice with network $home directories. I
    was not able to get a $home/My Documents/PSConfiguration/profile.ps1 script
    to run when $home is located on a network share. It runs fine when logged
    into a local-machine account (vs. logging into corporate domain), where $home
    is defined as directory on the local drive.

    Brandon Hamm
    Sr. Software Engineer
    Rogue Wave Software
     
    Brandon Hamm, May 3, 2006
    #1
    1. Advertisements

  2. Brandon Hamm

    Thomas Lee Guest

    For reasons I still don't understand, remote scripts are not apparently
    obeying Execution Policy. This is broken in RC1, IMHO, although no doubt
    some MS marketing slug will try to justify it on the grounds of better
    security.
     
    Thomas Lee, May 3, 2006
    #2
    1. Advertisements

  3. Brandon Hamm

    Thomas Lee Guest

    Mine is UNRESTRICTED (but it still fails).
     
    Thomas Lee, May 3, 2006
    #3
  4. Brandon Hamm

    Brandon Hamm Guest

    RemoteSigned. I had also tried it with "set-executionpolicy unrestricted"
    but it still failed.

    Thanks,
    Brandon

    Brandon Hamm
    Sr. Software Engineer
    Rogue Wave Software
     
    Brandon Hamm, May 3, 2006
    #4
  5. What error message are you getting?

    Also, is the UNC path to the network share using a short netbios name or a
    fully-qualified DNS name?
     
    Jonathan White [MSFT], May 3, 2006
    #5
  6. Brandon Hamm

    Brandon Hamm Guest

    No error message at all, the script just does not get executed. It's a
    short netbios name, I have not attempted it with an FQDN.

    -Brandon


    Brandon Hamm
    Sr. Software Engineer
    Rogue Wave Software
     
    Brandon Hamm, May 3, 2006
    #6
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.