Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 24, 2013, 04:49:37 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Remote control for Administrators  (Read 1359 times)
Laurenz.Lanik
JkDefrag Junior
**
Posts: 5


View Profile
« on: July 04, 2012, 07:46:36 am »

Since I have to support more than 100 PC's I would really appreciate, if it would be possible to install, start and control MyDefrag from remote, while the user is working on its PC.

At the moment we manually "clean" our PC's, when the users are on vacation or out of office. - We therefore use first CCleaner and then MyDefrag.
It really would be a "nice" feature to be able to start MyDefrag from remote. Maybe as a service or similar.

Unfortunately the "scheduled" run does not work all the time. Sometimes the MyDefrag process gets stuck and then blocks any further scheduled MyDefrag starts.

Do you think this could be implemented easily ?
Logged
Olivarezen
Newbie
*
Posts: 3



View Profile
« Reply #1 on: July 05, 2012, 06:22:09 am »

It's nice idea as I also used to face the same scheduling prob for defrag,,,, but I think it wud hinder the foreground processes and functionalities.... wont u think it will consume more time...
Logged
Laurenz.Lanik
JkDefrag Junior
**
Posts: 5


View Profile
« Reply #2 on: July 05, 2012, 06:44:12 am »

Of course it will take some processor resp. I/O-time from the users processes. But if you start it e.g. at lunch time when most users are out and just have their screen locked, or you start it remote when you know the user is in a meeting, etc.
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #3 on: July 06, 2012, 12:22:24 am »

Since I have to support more than 100 PC's I would really appreciate, if it would be possible to install, start and control MyDefrag from remote, while the user is working on its PC.
You can remotely start MyDefrag (and many other programs) with the free PsExec utility from Microsoft. You can also use this to remotely install MyDefrag, see the MyDefrag Installer commandline parameters, but from a management point of view it's perhaps better to place MyDefrag (and it's scripts) on a network share. You can use the MyDefrag no-install version for that, see Is there a no-install version available?
Logged
Olivarezen
Newbie
*
Posts: 3



View Profile
« Reply #4 on: July 06, 2012, 07:54:20 am »

Every industry is in need of automation nowadays. According to the views of the users of remote control for administrators these are the obnoxious tools that can hinder the functionalities and foreground processes to much extent.
Logged
Laurenz.Lanik
JkDefrag Junior
**
Posts: 5


View Profile
« Reply #5 on: July 06, 2012, 07:59:52 am »

Thanks Jeroen, I just created and tested the no-install version, made a script with very low priority and wrote a batch file to start it with psexec in any PC. - Thats fine for me, thanks.

P.S.: Just one more question: Where can I find the logfile of the remote PC ?
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #6 on: July 06, 2012, 10:12:59 am »

P.S.: Just one more question: Where can I find the logfile of the remote PC ?
There is no default logfile. You can create a logfile with WriteLogfile and AppendLogfile commands in your script. In other words, you can put the logfile anywhere you want, for example a share. See the Macros and the Variables to form a name for the logfile that contains things like the computer name and date/time.
Logged
Laurenz.Lanik
JkDefrag Junior
**
Posts: 5


View Profile
« Reply #7 on: July 06, 2012, 10:47:22 am »

Fine. So I added the following lines to the start of "SystemDiskMonthly.MyD"

Code:
/* Make MyDefrag run invisible in the background as slow as possible ... */
WindowSize(invisible)
Slowdown(80)
ProcessPriority(Background)
SetVariable(LogFile, "\\uranos\edv$\Mydefrag\Logs\!COMPUTERNAME!.log")

/* Write the header to the logfile. See the "Settings.MyD" file for the
   definition of the "LogHeader" string. */
WriteLogfile("!LogFile!","LogHeader")

Works perfect
Logged
Laurenz.Lanik
JkDefrag Junior
**
Posts: 5


View Profile
« Reply #8 on: July 06, 2012, 11:56:55 am »

Unfortunately: Works almost perfect :-(.

The "COMPUTERNAME" Variable is only set correctly for my own PC. For every foreign PC I dont get logfiles .... This might be, because psexec does not handle the environment variables correct ... :-(
Logged
Darlis
JkDefrag Hero
*****
Posts: 1707


View Profile WWW
« Reply #9 on: July 06, 2012, 05:34:51 pm »

You could pass the name as an argument to MyDefrag and then use it in the scripts. See Macros for further information.
Logged

Need help creating a script? Try MyDefrag Script Creator.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!