i trying copy configuration files active x controller user profiles on remote computers , running problems. have tried several variations of code no avail, recent, simplified code shown below generating path format not supported error:
$from = "c:\interactive" $to = "c:\users\$user\appdata\microsoft\internet explorer\downloaded program files" foreach ($user in (get-childitem c:\users -exclude public)){copy-item -path $from -destination $to}
i assume there argument missing or sort of syntax cannot find it. plan on deploying script using ps app deploy toolkit through sccm when working (group policy not viable solution me @ time)
i have spent day trying find working script , have come empty. used use set-activesetup stub exepath seems not working longer.
well found way works me. including how went it, ignore part dll registration-
$source = "c:\temp\downloaded program files" $destination = "c:\users\*" $items = get-childitem -path $destination foreach ($item in $items) { write-verbose "list of folders: $item" -verbose ##added visibility when testing copy-item $source -destination "$item\appdata\local\microsoft\internet explorer" -force -recurse $ckidll = "`"$item\appdata\local\microsoft\internet explorer\downloaded program files\ckinteractivedriver.dll`"" start-process -filepath 'regsvr32.exe' -args "/s $ckidll" }
Comments
Post a Comment