Powershell commands in packages

Author Message
chiners_68

  • Total Posts : 809
  • Scores: 5
  • Reward points : 76850
  • Joined: 10/31/2007
  • Status: offline
Powershell commands in packages Wednesday, May 09, 2012 5:13 AM (permalink)
0
Hi All,
  Ive got some commands I use in powershell & until now ive been creating a package with a .ps1 file with the commands in to run. Can I run powershell commands from a package or TS from the cmdline without having to create a PS1 file?
<message edited by chiners_68 on Wednesday, May 09, 2012 5:15 AM>
 
#1
    dstein

    • Total Posts : 554
    • Scores: 10
    • Reward points : 15570
    • Joined: 3/12/2003
    • Location: Virginia Beach, VA, USA
    • Status: offline
    Re:Powershell commands in packages Wednesday, May 09, 2012 9:02 AM (permalink)
    0
    It's easier if you place the code into a script file, but don't forget the Set-ExecutionPolicy setting as well.
    ----
    MCITP-SA/EA, MCSA, MCTS, ITIL, LMAO, BFF-OMG
    http://skatterbrainz.blogspot.com/
     
    #2
      Online Bookmarks Sharing: Share/Bookmark

      Jump to:

      Current active users

      There are 0 members and 1 guests.

      Icon Legend and Permission

      • New Messages
      • No New Messages
      • Hot Topic w/ New Messages
      • Hot Topic w/o New Messages
      • Locked w/ New Messages
      • Locked w/o New Messages
      • Read Message
      • Post New Thread
      • Reply to message
      • Post New Poll
      • Submit Vote
      • Post reward post
      • Delete my own posts
      • Delete my own threads
      • Rate post

      2000-2013 ASPPlayground.NET Forum Version 3.9