Re: Pin Calc to Start Menu on Remote Computers
- From: "Ramesh, MS-MVP" <ramesh@xxxxxxxxxxxx>
- Date: Mon, 4 Jul 2005 21:45:08 +0530
Thanks for the info David.
-- Ramesh, MS-MVP Windows Shell/User
Windows XP Troubleshooting http://www.winhelponline.com http://windowsxp.mvps.org
Windows XP Newsgroup Setup Instructions for Outlook Express: http://www.microsoft.com/windowsxp/expertzone/newsgroupsetup.mspx
"David Candy" <.> wrote in message news:Olg%239RHgFHA.2880@xxxxxxxxxxxxxxxxxxxxxxx
Windows Script Host
WshRemote Object See Also WshController Object
Language a.. JScript
b.. VBScript
c.. Show All
Provides access to the remote script process.
Remarks
The WshRemote object allows you to remotely administer computer systems on a computer network. It represents an instance of a WSH script, i.e., a script file with one of the following extensions: .wsh, .wsf, .js, .vbs, .jse, ..vbe, and so on. An instance of a running script is a process. You can run the process either on the local machine or on a remote machine. If you do not provide a network path, it will run locally. When a WSHRemote object is created (by using the CreateScript() method), the script is copied to the target computer system. Once there, the script does not begin executing immediately; it begins executing only when the WSHRemote method Execute is invoked. Through the WshRemote object interface, your script can manipulate other programs or scripts. Additionally, external applications can also manipulate remote scripts. The WshRemote object works asynchronously over DCOM.
Example
The following example demonstrates how the WshRemote object is used to start a remote script.
[VBScript]
Dim Controller, RemoteScript
Set Controller = WScript.CreateObject("WSHController")
Set RemoteScript = Controller.CreateScript("test.js", "remoteserver")
RemoteScript.ExecuteDo While RemoteScript.Status <> 2
WScript.Sleep 100
Loop[JScript]
var Controller = WScript.CreateObject("WSHController");
var RemoteScript = Controller.CreateScript("test.js", "remoteserver");
RemoteScript.Execute();while (RemoteScript.Status != 2) {
WScript.Sleep(100);
}Properties
Status Property | Error PropertyMethods Execute Method | Terminate Method
Events Start Event | End Event | Error Event
See Also WshController Object
--------------------------------------------------------------------------------
© 2001 Microsoft Corporation. All rights reserved.
Build: Topic Version 5.6.9309.1546
--
--------------------------------------------------------------------------------------------------
http://webdiary.smh.com.au/archives/_comment/001075.html
=================================================
"Ramesh, MS-MVP" <ramesh@xxxxxxxxxxxx> wrote in message news:uyWmYzFgFHA.1372@xxxxxxxxxxxxxxxxxxxxxxx
http://www.microsoft.com/technet/community/newsgroups/dgbrowser/en-us/default.mspx?dg=microsoft.public.windowsxp.wmi&lang=en&cr=US http://www.microsoft.com/technet/community/newsgroups/dgbrowser/en-us/default.mspx?dg=microsoft.public.windows.server.scripting&lang=en&cr=US
-- Ramesh, MS-MVP Windows Shell/User
Windows XP Troubleshooting http://www.winhelponline.com http://windowsxp.mvps.org
Windows XP Newsgroup Setup Instructions for Outlook Express: http://www.microsoft.com/windowsxp/expertzone/newsgroupsetup.mspx
"MartinaL" <MartinaL@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:FC00DC90-9898-487C-B399-0A65B79C8B33@xxxxxxxxxxxxxxxxI don't have outlook express so is there somewhere in the online newsgroups
I
can find the WMI section?
"Ramesh, MS-MVP" wrote:
Should be possible using WMI. Try this question in WMI groups.
Microsoft Public Newsgroups: http://aumha.org/nntp.php
-- Ramesh, MS-MVP Windows Shell/User
Windows XP Troubleshooting http://www.winhelponline.com http://windowsxp.mvps.org
Windows XP Newsgroup Setup Instructions for Outlook Express: http://www.microsoft.com/windowsxp/expertzone/newsgroupsetup.mspx
"MartinaL" <MartinaL@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1B6BC734-F9E0-4319-B081-0D7CABAE2C2E@xxxxxxxxxxxxxxxx
> Yeah we could do it that way, but I though it would be just as easy to
> run
> a
> one off script that looped through and ran my pin_calc.vbs script on
> each
> pc
> in a list.
>
> Just not sure how to do this??
>
> "Ramesh, MS-MVP" wrote:
>
>> The script should run fine on remote PCs. How about a logon script?
>>
>> -- >> Ramesh, MS-MVP
>> Windows Shell/User
>>
>> Windows XP Troubleshooting
>> http://www.winhelponline.com
>> http://windowsxp.mvps.org
>>
>> Windows XP Newsgroup Setup Instructions for Outlook Express:
>> http://www.microsoft.com/windowsxp/expertzone/newsgroupsetup.mspx
>>
>>
>> "MartinaL" <MartinaL@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:B048A27F-4B88-4F60-9254-8EA90E6563DF@xxxxxxxxxxxxxxxx
>> > Yeah I've seen this and I can run this from the command prompt >> > using
>> > csript
>> > or wscript on my local machine, but I need some way of running a
>> > batch
>> > file
>> > type thing where I can run it on a number of remote pc's
>> >
>> > "Ramesh, MS-MVP" wrote:
>> >
>> >> There is no Programmatic acess to the Pinned list. But here is a
>> >> workaround
>> >> from our Scripting Guy
>> >>
>> >> Hey, Scripting Guy!:
>> >> http://www.microsoft.com/technet/scriptcenter/resources/qanda/nov04/hey1111.mspx
>> >>
>> >> -- >> >> Ramesh, MS-MVP
>> >> Windows Shell/User
>> >>
>> >> Windows XP Troubleshooting
>> >> http://www.winhelponline.com
>> >> http://windowsxp.mvps.org
>> >>
>> >> Windows XP Newsgroup Setup Instructions for Outlook Express:
>> >> http://www.microsoft.com/windowsxp/expertzone/newsgroupsetup.mspx
>> >>
>> >>
>> >> "MartinaL" <MartinaL@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> >> news:53809C00-E262-43FA-86DB-38DED417D55A@xxxxxxxxxxxxxxxx
>> >> >I need to be able to Pin the Calculator to the start menu on
>> >> >around
>> >> >60
>> >> >remote
>> >> > computers, is there some way of doing this?
>> >> >
>> >> > Some script maybe?
>> >>
>> >>
>>
>>
.
- References:
- Pin Calc to Start Menu on Remote Computers
- From: MartinaL
- Re: Pin Calc to Start Menu on Remote Computers
- From: Ramesh, MS-MVP
- Re: Pin Calc to Start Menu on Remote Computers
- From: MartinaL
- Re: Pin Calc to Start Menu on Remote Computers
- From: Ramesh, MS-MVP
- Re: Pin Calc to Start Menu on Remote Computers
- From: MartinaL
- Re: Pin Calc to Start Menu on Remote Computers
- From: Ramesh, MS-MVP
- Re: Pin Calc to Start Menu on Remote Computers
- From: MartinaL
- Re: Pin Calc to Start Menu on Remote Computers
- From: Ramesh, MS-MVP
- Pin Calc to Start Menu on Remote Computers
- Prev by Date: Re: Add Start Menu Shortcut Manually
- Next by Date: RE: Add Start Menu Shortcut Manually
- Previous by thread: Re: Pin Calc to Start Menu on Remote Computers
- Next by thread: Re: Pin Calc to Start Menu on Remote Computers
- Index(es):
Relevant Pages
|
Loading