サーバー上に6台のネットワークプリンターがあり、それらを別のサーバーに移動する必要があります。私はそれらを使用する95のクライアントを持っていますが、いくつかは特定のプリンターしかインストールされていません。プリンターのバッチファイルクエリが必要です。存在する場合は、削除して新しいサーバーに再度追加します。これがこれまでのスクリプトです。クエリステートメントがわかりません。
@ Remove current printer from computer
Rundll32 PrintUI.DLL,PrintUIEntry /dn /q /n \\server6\Printer1
@ Add new Printer to computer
Rundll32 PrintUI.DLL,PrintUIEntry /in /q /n \\server11\Printer1
@ Remove current printer from computer
Rundll32 PrintUI.DLL,PrintUIEntry /dn /q /n \\server6\Printer2
@ Add new Printer to computer
Rundll32 PrintUI.DLL,PrintUIEntry /in /q /n \\server11\Printer2