Fog Snapin not working 1.3.0-RC-8 Client 0.11.5
-
These scripts worked on Fog 1.2 not sure what changed
-
@Kleber Just at first glance, you’re using a 2-piece script. A batch file that gets access to a share, and runs a vb script.
You don’t need to do that in fog trunk. you can upload the vb script directly, the new fog client is capable of running vb script. There’s a template for vb script, even, in the snapins creation area.
-
@Wayne-Workman
Hi I tried doing it directly and it will not work. -
@Kleber Can you include a try - catch in the script and send the error to a file on the c:\ drive?
-
Hi, I believe that VB script doesn’t have a try/catch, if you know of a way please point me in the right direction.
-
I went ahead and removed the fog client 0.11.5 and installed the legacy client on the computer and the script worked flawlessly. I am not sure why this is happening.
-
@Kleber Because all snapins run as SYSTEM, try to remove this line and see what happens:
" RunAsAdministrator", , "runas", 1
Also, just thinking outloud here, no SYSTEM task can ever spawn a UI, ever. This is by design of Microsoft. It’s so users may never interact with any program that is running as SYSTEM.
So - I’m not entirely sure its even possible to cause SYSTEM to do a login.
Also think I need to ask @Joe-Schmitt to look. Sorry for pinging you so many times today, Joe.
-
@Wayne-Workman
The old client ran the script fine and it also runs under the system account. Maybe there is a bug with the new client. -
@Kleber I’m not sure why it isn’t working. It could be a bug. We should wait for Joe’s response, he is the new client developer.
-
@Kleber I talked with Joe briefly about this, he suggests to add logging to the vb script. Basically, output every variable to a text file, put messages everywhere that get put into a text file. For example “About to execute line 15” and " About to execute line 16" or “About to do step 20”. Adding logging at every point in the script will let you know how far it gets, and can lead us to figuring out what’s wrong.
-
@Wayne-Workman Thanks for taking the time to help me with this. Currently, I can not even get a simple batch file to deploy to the computer. I will make a test script to log the vb script to see what the log outputs. I am also going to remove the part of the script that elevates the command, I usually do this because windows might throw a UAC prompt. I will get back to you on the results, hopefully sometime next week.
Thanks for all your help!
-
@Kleber Here’s a basic example that uses powershell with snapins - testing working on Win10. https://forums.fogproject.org/topic/8348/reset-local-windows-account-password-1-3-0