coolsport00 Posted March 10, 2023 Report post Posted March 10, 2023 Good afternoon - I created a simple PoSH script in 'Run Scripts' to create a local account on some PCs. Simply speaking, it's not creating the account on the client. I ran the script locally on a client to test & it works, but just not via SCCM. I think I'm forgetting something..what, I don't know. (I'm still learning SCCM). I have another script, created 4-5yrs ago, which does the same thing, and it works. I just copied that code and modifed the user/pwd for my current needs. I approved it, then thought it would just work. What am I forgetting/missing? It's not like Applications where you have to Distribute a Script to the DP, correct? Or, do you? My version of SCCM is 2207. Any help would be appreciated. Thanks a bunch! I did spend a couple hours searching around the Webz and it seems to be Scripts are straightforward. Just create. Approve. Run. But, for some reason...this new Script isn't working. A final bit of info - I did check the Script.log on the Client and get the same log output as the other Script that works. No errors/warnings. When I run the working script...it provides 'details/output' after it runs in the Run Script wizard/Script Status window. When I run the new Script...there is not output. But, it does return an Exit Code of 0. Again, any ideas? Thanks all. Quote Share this post Link to post Share on other sites More sharing options...
coolsport00 Posted March 10, 2023 Report post Posted March 10, 2023 I figured this out. It seems Win10 PCs need pwds longer than 8 char's. I configured my pwd in the PoSH script to be at 8 char's, which is what Local Password Security policy says is default. After I modified my Script user pwd to be 9 char's, it worked. Thanks! Quote Share this post Link to post Share on other sites More sharing options...
anyweb Posted March 11, 2023 Report post Posted March 11, 2023 glad you got it sorted and that you posted the solution Quote Share this post Link to post Share on other sites More sharing options...
coolsport00 Posted March 11, 2023 Report post Posted March 11, 2023 (edited) I'm glad too. This one drove me crazy! Interestingly enough...the other script which worked, has a pwd of only 8 char's. Not sure if newer SCCM versions have added that 'feature' for scripting, to detect default Windows pwd behavior? Eh well..regardless...I finally figured it out. Edited March 11, 2023 by coolsport00 Quote Share this post Link to post Share on other sites More sharing options...
coolsport00 Posted March 25, 2023 Report post Posted March 25, 2023 @anyweb How do I mark my comment as the 'correct answer'? I received an email to do so, which I'm more than happy to do, but there are no options next to a comment saying 'best answer' or 'mark as answer', etc. ....at least, none I can see. Thanks! Quote Share this post Link to post Share on other sites More sharing options...
anyweb Posted March 25, 2023 Report post Posted March 25, 2023 heh good question, let me try and figure it out, it could be a forum setting that i need to enable, i'll take a look and report back later Quote Share this post Link to post Share on other sites More sharing options...
coolsport00 Posted March 25, 2023 Report post Posted March 25, 2023 Thanks! ? Quote Share this post Link to post Share on other sites More sharing options...
anyweb Posted March 25, 2023 Report post Posted March 25, 2023 does this help ? https://invisioncommunity.com/news/invision-community/45-marking-as-solved-r1187/ do you see the option by clicking in the top right of a post ? Quote Share this post Link to post Share on other sites More sharing options...
coolsport00 Posted March 25, 2023 Report post Posted March 25, 2023 I assume you mean "Moderation Actions"? No... I do not have that. The attached pic shows what I see Quote Share this post Link to post Share on other sites More sharing options...
coolsport00 Posted March 25, 2023 Report post Posted March 25, 2023 And, if it's this difficult to close a post/mark best answer, then obviously changes should be made to the UI Quote Share this post Link to post Share on other sites More sharing options...