snapin and batch script
-
@plegrand
It seams that i have to create the zip file on windows , on linux i have this error.
After that the snapin pack is launched but i think it’s waiting interaction with user and even i use psexec the script is launch by system. Then it doesn’t works.
I have to find an other solution -
Psexec needs the EULA to be accepted on first use (I’m guessing per user basis even)
So add -accepteula maybe.
edit: But given you only to execute commands on the local system as a different user, runas is likely the easier/better tool for the job.
edit2: Just remembered you can’t pipe passwords to it, nvm
-
@Quazz
I think the problem is that snapin is launched as SYSTEM user, then even i use psexec or runas to run command as local user, snapin is launched as SYSTEM and then it does not works. I try with -accepteula but … -
@Avaryan @Tom-Elliott @Quazz @Wayne-Workman
May be someone know a solution to launch remote command on mulitple computers without GPO’s ? -
@plegrand PDQ Deploy?? https://www.pdq.com/pdq-deploy/
We use this tool instead of FOG Snapins to deploy applications in our offices. They have a free version that should do what you need, but the paid for version is reasonable in cost and well worth the price because of the additional functionality.
-
So, the overall objective here, is it just to get Windows updated? Does it have it be offline using wsusoffline?
There are PowerShell modules for Windows Update that may be able to trigger updates.
-
@plegrand said in snapin and batch script:
I think the problem is that snapin is launched as SYSTEM user
This is not a problem, this is by design. Not only is it by design in the FOG Client, it is by design from Microsoft. This is how deployments are made safe, anything less is a breach of security.
-
@plegrand said in snapin and batch script:
@Avaryan @Tom-Elliott @Quazz @Wayne-Workman
May be someone know a solution to launch remote command on mulitple computers without GPO’s ?I already said it, Systems Manager from Amazon Web Services.
-
@Wayne-Workman I understand that
-
@Wayne-Workman Not sure i want to use Amazon service
-
@Wayne-Workman @Avaryan @george1421 @Quazz @Tom-Elliott
Just for information :
I found this tool :
https://github.com/CoreSecurity/impacket/tree/impacket_0_9_13There is this script inside : “psexec.py”
The package exist for debian : Package python-impacket
psexec.py works fine from the linux command line (very long command line )And i think i will be able to use it on several remote windows computers with tmux.
-
@plegrand psexec already has the ability to send commands to remote machines, I’m not sure why you would try to make psexec commands into fog snapins.
This whole thread seems really over-complicated.
Why not just bake-in some run-once functionality into your image? Windows already does this natively via the registry. Doing it for Linux images is trivial because SystemD is amazing.