Home Forums Programming SMO/RMO/DMO Powershell SMO works in cmd, not from script RE: Powershell SMO works in cmd, not from script

  • Well, I guess I'm an idiot! My script file is not a script, but a function. I loaded the script file into memory, and then called the function, and it works fine -- just like the command line execution! Problem solved. Thanks to Don Jones / Jeffery Hicks and "Learn Powershell Toolmaking in a month of lunches" (p. 36)