ConnectWise Control Software User Forum
»
Default
»
Tips and Tricks
»
Trying to run a cmd automatically when a system comes online
 Rank: Guest Joined: 11/30/2017(UTC) Posts: 7  Thanks: 6 times
|
I have a few remote laptops that are on at various times of the day/night. I have a trigger setup to email me when the machines come online. From that email I have a VBSscript that saves that email to a text file. At which point task scheduler on my server run a powershell script that pulls the computername and pushes a PDQ deploy command to it. Work fine and dandy except for the server isn't finding the correct name in the DNS entry..(VPN assigning new ip's) ugh!
So I am thinking if I can use the same trigger to run my CMD commands from the machine this will solve the DNS errors.
Screenconnect displays and send me the ip address, but it's the external IP not our VPN. I can run ipconfig from within SC to get the VPN IP but cant figure how to include this in my email.
If I can get the email to included the VPN ip I can tell powershell to grab that ip instead of the computername.
Running updates is a pain...
Any ideas?
|
|
|
|
 Rank: Guest Joined: 11/30/2017(UTC) Posts: 7  Thanks: 6 times
|
|
|
|
|
ConnectWise Control Software User Forum
»
Default
»
Tips and Tricks
»
Trying to run a cmd automatically when a system comes online
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.