sealeopard,

I need to stop 4 services, this is the original batch file code:-

sc \\%1 stop "AlertManager"
sc \\%1 stop "McAfeeFramework"
sc \\%1 stop "McTaskManager"
sc \\%1 stop "MCSHIELD"

and then make some changes to reg keys and restart the services

I'm doing this at the moment:-

Run 'c:\software\kix\sc.exe \\'+$Computer +' stop "AlertManager"'
Run 'c:\software\kix\sc.exe \\'+$Computer +' stop "McAfeeFramework"'
Run 'c:\software\kix\sc.exe \\'+$Computer +' stop "McTaskManager"'
Run 'c:\software\kix\sc.exe \\'+$Computer +' stop "MCSHIELD"'

But it would be neater to do it without using sc.exe

thanks