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)
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>
|
|
|
|
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)
It's easier if you place the code into a script file, but don't forget the Set-ExecutionPolicy setting as well.
|
|
|
|