Is there anyway to get node.js to run a command in a tty? This is part of a deploy script where it really wouldn't be ideal to add !requiretty to the sudoers file. this.thing /to/here/ " directly from the command line-in other words, directly from a tty-I get no error, and this.thing moves /to/there/ just fine. If I run ssh -qt user#remote.machine - "sudo mv. I get the requiretty error sudo: sorry, you must have a tty to run sudo. Var execSync = require("child_process").execSync Spawning a child process with tty in node.js I am trying to do some work on a remote server using ssh-and ssh is called on the local machine from node.jsĪ stripped down version of the script looks like this: Starting to pull my hair out a bit as this really should be a fairly easy thing to do but I cant figure out why its not working. execmgr 09:58:40 6404 (0x1904)Ĭhecking deployments and the uninstall package it says that its completed and successful. Sending SoftDistProgramHasRunBeforeWithoutFailing. The program Uninstall MSI Wrapper will not run because it has been run before and it succeeded and policy indicates it should rerun only it it has previously failed. Instance of SoftDistProgramOfferReceivedEventĬlientID = "GUID:CA632D41-F365-4A97-AAC2-2376DF2E3949" Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="AAA00200",ProgramID="Uninstall MSI Wrapper", actionType 6l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l execmgr 09:58:40 1968 (0x07B0) There isn't too much info in the execmgr.log file either teamviewer is still installed.Īlso there is no new log file in my temp folder so I know its not running. When I deploy the package and refresh the policies on my machine it doesnt seem to do anything. The package definitely contains the run with administrator rights option selected. So I know the string is correct and that it requires elevated permissions but I cannot get it to work via sccm. When I runs this command with a elevated to admin cmd prompt, the uninstall completes.
#REMOVE TEAMVIEWER MSI WRAPPER PC#
When I run this command locally on my pc via a normal cmd prompt it fails. MsiExec.exe /X /qn /L*V "c:\temp\tvlog3.log" I've created a collection with my machine - collection name is TEST and I can confirm my pc name is in there.
I've created a package that runs the msiexec command I'm looking at uninstalling teamviewer 9 (msi wrapper) from all machines. Sccm uninstall teamviewer using msiexec /x - msiexec I'm fairly new to sccm so trying to get my head around how it works.