Re: convert FAT32 to NTFS problem?




"roopeman" <roopeman@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8109585A-A94E-4A3F-B691-5DBBC6092944@xxxxxxxxxxxxxxxx
>> Hi, Dear all, i wrote below script, i want to convert remote host
>> Harddisk
>> format from FAT32 to NTFS, it 's failed in remote hosts, but succeed in
>> local host. would you please check it for me ? with many thanks !

Your script is always launching convert.exe on the local machine. The
script connects to the remote computer using WMI, and gets the drives of the
remote computer, but launches convert.exe onthe local system, with the
remote systems's drive letter.

Your script uses oShell.Run to launch convert.exe, but look at where oShell
comes from:
Set oShell = Wscript.CreateObject("WScript.Shell")
So when you call the .Run method, how is it suppose to know you want it
launched on the remote system?

Try WMI's Win32_Process.Create method, which can be used against a remote
system:
http://msdn.microsoft.com/library/en-us/wmisdk/wmi/win32_process.asp
http://msdn.microsoft.com/library/en-us/wmisdk/wmi/create_method_in_class_win32_process.asp



.



Relevant Pages

  • Re: Remote office logon script - Long Delay
    ... Windows IP Configuration ... If I point the User's profile to a script that doesn't contain the ... I do not have WINS configured for the remote site, ... This remote server was built using connect computer script, ...
    (microsoft.public.windows.server.sbs)
  • Re: Remote office logon script - Long Delay
    ... Windows IP Configuration ... If I point the User's profile to a script that doesn't contain the ... I do not have WINS configured for the remote site, ... This remote server was built using connect computer script, ...
    (microsoft.public.windows.server.sbs)
  • RE: WMI ExecQuery from Win32_NTEventLogFile in a Workgroup environ
    ... computer from which the script is being run? ... "urkec" wrote: ... as it correctly creates the .evt files for the local ... I have a script that runs on one node and copies files from all the remote ...
    (microsoft.public.scripting.vbscript)
  • Re: Remote office logon script - Long Delay
    ... Windows IP Configuration ... If I point the User's profile to a script that doesn't contain the ... I do not have WINS configured for the remote site, ... is a GC/AD server with DNS and DHCP for it's area. ...
    (microsoft.public.windows.server.sbs)
  • Re: wshremote not running script on remote computer
    ... "The script you deploy to the remote computer must not attempt to interact ... I do want to open a command window on a remote machine, ...
    (microsoft.public.scripting.vbscript)