Re: Script Needed



Would it not be easier to remove permissions to print to that printer or something. Maybe even remove the printer and reinstall it when job has finished? This can be done by script


"Richard Mueller [MVP]" <rlmueller-nospam@xxxxxxxxxxxxxxxxxxxx> wrote in message news:uj0F3oCRIHA.6036@xxxxxxxxxxxxxxxxxxxxxxx
The WSHController object cannot be used to display messages to the remote user. See this link:

http://www.microsoft.com/technet/scriptcenter/guide/sas_wsh_wwgn.mspx?mfr=true

One thought is to have the worker script (the script that runs on the remote computer) save a text file on the desktop. However, you would need to specify the full path to the user's desktop folder. Also, both computers must have WSH 5.6, and the remote computer must have a registry setting. See this link:

http://www.microsoft.com/technet/scriptcenter/guide/sas_wsh_immo.mspx?mfr=true

I already tried WMI and the processes it runs remotely also are not visible to any users that happen to be logged on.

--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--

"Shane" <Shane@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:73A370E6-C726-49A8-84C5-3169977A0462@xxxxxxxxxxxxxxxx
Would it be helpful if I already knew the logged on users. These never
change. Essentially what I am trying to do is send a message to all users of
an accounting department not to send print jobs to one of the printers that
is used at various times to print paychecks for a large customer. Sending an
email is not good enough for the customer. And they will not allow the
messaging service to be turned on, and will not pay for a 3rd party app.
Also scheduling printer security to not allow people to print to the printer
during certain times is not a solution either. Gotta love the
requirements.... Thanks for any help you can provide.

-Shane

"Richard Mueller [MVP]" wrote:

Shane wrote:

> Hello. I would appreciate any help anyone can provide. I need a way > to
> send
> a pop up message to either a windows security group or a group of
> computers.
> The one catch is that I must keep the messenger service disabled. I > am
> not
> well versed in VB scripting but was thinking that this would be > possible
> with
> VB and checking computer with some sort of WMI function. Thanks in
> advance
> for any help.

If the message service is disabled, the only option I can think of is to use
WMI to deploy an executable (an exe, a script, or batch file) that displays
a message. The steps would be to connect to each remote computer, copy the
executable, run the executable, and delete the executable. However, the
process runs under the System account, no matter who is logged on (even if
nobody is logged on), so nobody sees any messages the executable might
display (I tried it). All other methods require knowing who is logged into
each computer. I also tried using WSHController, but without success. I
don't think this would be easy.

--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--






.



Relevant Pages

  • RE: Does WMI have to be installed on Remote Computer?
    ... IMHO this looks like a well constructed and very vell commented script. ... WMI comes as standard on w2k w2k3 and xp, ... does WMI need to be installed on the remote computer in order for a ... ''' First try to ping the server. ...
    (microsoft.public.scripting.vbscript)
  • Does WMI have to be installed on Remote Computer?
    ... I'm new to WMI, learning as I go. ... does WMI need to be installed on the remote computer in order for a ... script which uses WMI to work? ... ''' First try to ping the server. ...
    (microsoft.public.scripting.vbscript)
  • Copying files to a mapped drive on a remote computer
    ... another on a remote computer. ... The script (WMI) works fine if the locations are on the remote host itself. ...
    (microsoft.public.scripting.vbscript)
  • Re: convert FAT32 to NTFS problem?
    ... sDiskLetter = obiLogicalDisk.DeviceID ... >>> Your script is always launching convert.exe on the local machine. ... >>> script connects to the remote computer using WMI, and gets the drives of the ...
    (microsoft.public.scripting.vbscript)
  • Re: What permission(s) am I missing?
    ... of without success. ... > For the most part it doesn't matter which OS you're running the script on, ... > changed the permissions from the defaults on the remote computer. ... >> Administrators group missing and where can I change it? ...
    (microsoft.public.scripting.vbscript)