My goal is to update files in the %windir%\system32 folder on client machines if the fileversion is lower than what's listed below

this is what I have....Will it work (effeciently?)


$wuclientver =GetFileVersion("%windir%\system32\wuaueng.dll")
If $wuclientver < "5.8.0.2469"
Shell "net stop wuauserv"
Copy "\\troy\c$\%sindir%\system32\wu*.*" "c:\winnt\system32"
Shell "net start wuauserv"
EndIf

Thanks for your help