I'll look at it more in detail, but I recall having to preface ps1 script execution with a cmd script to set the execution policy. Windows won't run ps1 by default, needs to change execution policy: https://technet.microsoft.com/en-us/library/ee176961.aspx
I had a cmd script to call powershell with that on command line arguments. From: 범희대 [mailto:[email protected]] Sent: Wednesday, September 23, 2015 11:11 PM To: xCAT Users Mailing list Subject: [xcat-user] how to run powershell script as postbootscript and postscript Hello, nowadays I'm testing auto-installing windows2008r2 by osimage and referring the document http://sourceforge.net/p/xcat/wiki/XCAT_Windows/ BTW I got a problem about postbootscript/postscript written in powershell script during testing. Once I wrote a powershell script, just set postbootscript to osimage with correct postfix 'ps1' as I saw on the document, however, it wasn't being executed, then it just shown floating on the screen as if it were just a text file. Then I looked through the script file 'xcatwinpost.vbs' and 'runpost.vbs' and it seemed there was no part able to run powershell scripts but parts to run batch script and cmd script. Therefore, here I have two question. 1. is a bug missing controlling powershell script? (Because the wiki saying that we only have to define correct postfix 'ps1' and there is nothing to do additionally) 2. if it's not a bug and it was just my mistake, where could i get a clue about the problem? Thx.
------------------------------------------------------------------------------
_______________________________________________ xCAT-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xcat-user
