Jump to content

Recommended Posts

Posted

Hi Everyone,

 

This weekend I’m in the process of getting our company imaging process more slick.

 

All programs are installed and which works great but we don’t know when there finished installing as we don’t use sccm yet.

 

So our programs are installed via a script but we don’t know when all programs have finished so we have to manually unc into the computer and look for a folder which the script creates,

 

And because we use o365, this is made even harder for us as we want to send an email which tells us that this computer has finished i imaging at date time etc and with the computer name.

 

Is this accomplishable?

Posted

I've done this a bunch of times on linux/unix systems but not on windows. Usually so something can trigger when a file gets installed. I'm pretty sure it's going to be very similar on windows if you can get all the packages installed.

 

fswatch  /path/to/file/you/need/to/watch | xargs -n1 -I{}  mail -s "file found" < emailcontent.txt [email protected] 

 

uses fswatch (which does support windows but you may need to compile the binary)

https://github.com/emcrisostomo/fswatch

Posted
I've done this a bunch of times on linux/unix systems but not on windows. Usually so something can trigger when a file gets installed. I'm pretty sure it's going to be very similar on windows if you can get all the packages installed.

 

fswatch  /path/to/file/you/need/to/watch | xargs -n1 -I{}  mail -s "file found" < emailcontent.txt [email protected] 

 

uses fswatch (which does support windows but you may need to compile the binary)

https://github.com/emcrisostomo/fswatch

 

Thanks for this. Will have a play around with it.

Posted
the problem you might have is sending the email as the account you use to image may not have rights to send an email. If that is the case, have the client save a text file in a file server share, then you can have an FSRM file screen email you when the pattern file is detected. Like the old fashioned "crypto canary" but in a more wanted sense!
  • Thanks 1
  • 2 weeks later...
Posted

Have a look at powershell. I've had plenty of scripts and you should be able to do a check when a file exists.

 

Also if you are going to use passwords you can encrypt on the server you are running the script on so you don't have passwords in the script in plain text.

  • Thanks 1
Posted
Have a look at powershell. I've had plenty of scripts and you should be able to do a check when a file exists.

 

Also if you are going to use passwords you can encrypt on the server you are running the script on so you don't have passwords in the script in plain text.

 

That’s great!

 

Will take a look into this over Christmas

 

Thanks

Posted (edited)

with FSRM file screen it makes no difference if you are running on premises exchange. You make a screen to detect a file in a directory. This emails you using whatever email server you set up in FSRM with whatever email you set up in the screen.

 

So you can set up to detect file "I_HAVE_INSTALLED.DAT" in "c:\mydirectory" emailing to "[email protected]" using whatever email server you like. There was no noticeable overhead when we used to use it for cryptocanary and that had HUNDREDS of file extensions set up in about a dozen screens. You can set up the email in a particular way so you can add an outlook rule and file the email accordingly. Have your install script create the file "I_HAVE INSTALLED.DAT" and you are gravy.

 

FSRM was designed to do this (amongst other things such as quotas). If you have quotas set up then you already have FSRM installed.

Edited by KK20
Posted
with FSRM file screen it makes no difference if you are running on premises exchange. You make a screen to detect a file in a directory. This emails you using whatever email server you set up in FSRM with whatever email you set up in the screen.

 

So you can set up to detect file "I_HAVE_INSTALLED.DAT" in "c:\mydirectory" emailing to "[email protected]" using whatever email server you like. There was no noticeable overhead when we used to use it for cryptocanary and that had HUNDREDS of file extensions set up in about a dozen screens. You can set up the email in a particular way so you can add an outlook rule and file the email accordingly. Have your install script create the file "I_HAVE INSTALLED.DAT" and you are gravy.

 

FSRM was designed to do this (amongst other things such as quotas). If you have quotas set up then you already have FSRM installed.

 

Ah right, that makes more sense now.

 

Thanks for this!

 

 

Hope you have a lovely Christmas.

  • 2 weeks later...
Posted

Hi Everyone, managed to get this working now!

 

Basically I made my own script that connects to exchange server and sends me an email with the computer name etc.

 

All working great!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...