| |
SAPIENScripter
Posts: 275
Score: 2
Joined: 11/1/2006
From: SAPIEN Technologies
Status: offline
|
Your service account will likely need a profile script just like a regular user. Or simply add the commands to your script. Is this part of a scheduled task? How is the service account running the script? If you don't have a "real" person running the script then there's no way to enter a password. If you absolutely have to embed credentials, then consider packaging your script with a product like PrimalScript.
_____________________________
Jeffery Hicks Windows PowerShell MVP SAPIEN Technologies - Scripting, Simplified. www.SAPIEN.com Follow Me: http://www.twitter.com/JeffHicks
|
|