{"id":406,"date":"2011-07-01T14:14:43","date_gmt":"2011-07-01T12:14:43","guid":{"rendered":"http:\/\/www.notsayfam.com\/?p=406"},"modified":"2011-08-17T08:15:20","modified_gmt":"2011-08-17T06:15:20","slug":"office-update-sonrasi-excel-yavasligi-vbscript-ile-uzaktan-patch-kaldirma","status":"publish","type":"post","link":"https:\/\/www.notsayfam.com\/?p=406","title":{"rendered":"Office Update sonras\u0131 Excel yava\u015fl\u0131\u011f\u0131 &#038; Vbscript ile uzaktan komut \u00e7al\u0131\u015ft\u0131rma\/patch kald\u0131rma"},"content":{"rendered":"<p>28.06.2011 tarihinde \u00e7\u0131kan Microsoft Office File Validation g\u00fcncellemesi y\u00fckledikten sonra a\u011f \u00fczerinden excel dosyalar\u0131n\u0131 a\u00e7arken a\u015f\u0131r\u0131 bir yava\u015flama ve 2-3Mb boyutundan y\u00fcksek olan excel dosyalar\u0131nda kilitlenme meydana gelmesine yol a\u00e7makta. Bilgisayar\u0131n lokal disklerinde bulunan dosyalar i\u00e7in bu sorun olmamakla birlikte yanl\u0131zca a\u011f \u00fczerinden \u00e7al\u0131\u015fan dosyalarda bu sorun ortaya \u00e7\u0131kmakta.<\/p>\n<p>Yap\u0131lan g\u00fcncelleme WSUS ortam\u0131ndan kald\u0131r\u0131lmay\u0131 desteklemedi\u011fi i\u00e7in elle kald\u0131rman\u0131z gerekmekte 5-10 bilgisayar yap\u0131labilir ancak \u015firket ortamlar\u0131 i\u00e7in pek m\u00fcmk\u00fcn de\u011fil.<\/p>\n<p>i\u015f yine script yazmaya kald\u0131.<br \/>\n\u00d6ncelikle nas\u0131l kald\u0131rabilece\u011fimizi registry \u00fczerinden arad\u0131\u011f\u0131m\u0131zda kald\u0131rma stringi olarak<br \/>\nMsiExec.exe \/I{90140000-2005-0000-0000-0000000FF1CE} yazmakta kendimize g\u00f6re d\u00fczenlersek MsiExec.exe \/quiet \/uninstall {90140000-2005-0000-0000-0000000FF1CE} \u015feklinde interaktif ekran g\u00f6r\u00fcnmeden otomatik olarak kald\u0131rmas\u0131 sa\u011flanmakta.<\/p>\n<p>G\u00fcncelleme: Microsoft taraf\u0131nda sorun \u00e7\u0131kt\u0131\u011f\u0131 teyit edilmi\u015f ilgili adreslere <a href=\"http:\/\/support.microsoft.com\/kb\/2570623\/tr\" target=\"_blank\">http:\/\/support.microsoft.com\/kb\/2570623\/tr<\/a> ve <a href=\"http:\/\/support.microsoft.com\/kb\/2501584\/tr\" target=\"_blank\">http:\/\/support.microsoft.com\/kb\/2501584\/tr<\/a> adreslerinden ula\u015f\u0131labilir. 3 \u00e7\u00f6z\u00fcm sunmu\u015flar \u015fu anl\u0131k 1.Kald\u0131rmak\u00a0 2. Devre d\u0131\u015f\u0131 b\u0131rakmay\u0131, Office 2007 veya 2010 y\u00fcklemeyi. \u0130lgili linklerden detaylara ula\u015fabilirsiniz.<\/p>\n<p>Gelelim Scripte.<!--more--><\/p>\n<p style=\"padding-left: 30px;\"><code><br \/>\nOn Error Resume Next<\/code><\/p>\n<p style=\"padding-left: 30px;\"><code>Set objConnection = CreateObject(\"ADODB.Connection\")<br \/>\nSet objCommand = CreateObject(\"ADODB.Command\")<br \/>\nobjConnection.Provider = \"ADsDSOObject\"<br \/>\nobjConnection.Open \"Active Directory Provider\"<br \/>\nSet objCommand.ActiveConnection = objConnection<br \/>\nobjCommand.Properties(\"Page Size\") = 1000<\/code><\/p>\n<p>&nbsp;<\/p>\n<p style=\"padding-left: 30px;\"><code>dim strCommand<br \/>\n' Microsoft Office File Validation Add-in kaldirma de\u011ferleri<br \/>\nstrCommand = \"MsiExec.exe \/quiet \/uninstall {90140000-2005-0000-0000-0000000FF1CE}\"<\/code><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p style=\"padding-left: 30px;\">&#8216; olu\u015fan loglar\u0131 kay\u0131t edelim.<br \/>\nSet oFSO = CreateObject(&#8220;Scripting.FileSystemObject&#8221;)<br \/>\nSet oLog = oFSO.CreateTextFile(&#8220;JobExport.Log&#8221;)<\/p>\n<p style=\"padding-left: 30px;\">&#8216; Hesab\u0131 kapal\u0131 olmayan bilgisayarlar\u0131 bulal\u0131m<br \/>\nobjCommand.CommandText = &#8220;&lt;LDAP:\/\/dc=fabrikam,dc=int&gt;;(&amp;(objectCategory=computer) (!(userAccountControl:1.2.840.113556.1.4.803:=2)));Name;subtree&#8221;<br \/>\nSet objRecordSet = objCommand.Execute<br \/>\ndim objComputer<br \/>\nobjRecordSet.MoveFirst<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p style=\"padding-left: 30px;\"><code>'Bilgisayar kay\u0131tlar\u0131 sona gelene kadar her bilgisayar i\u00e7in komutumuzu \u00e7al\u0131\u015ft\u0131ral\u0131m<br \/>\nDo Until objRecordSet.EOF<\/code><\/p>\n<p><code><br \/>\nobjComputer = \"\"<br \/>\nobjComputer = objRecordSet.Fields(\"Name\").Value<br \/>\n'Bilgisayarin kapal\u0131 m\u0131 a\u00e7\u0131k m\u0131 oldu\u011funu anlamak i\u00e7in ping atal\u0131m<br \/>\nSet objScriptExec = objShell.Exec(\"ping -n 2 -w 1000 \" &amp; objComputer)<br \/>\nstrPingResults = LCase(objScriptExec.StdOut.ReadAll)<br \/>\n'Gelen cevapta t\u00fcrk\u00e7e sistemler i\u00e7in cevab ingilizceler i\u00e7in Reply i\u00e7eriyorsa komut \u00e7al\u0131\u015ft\u0131ral\u0131m<br \/>\nIf InStr(strPingResults, \"cevab\") or InStr(strPingResults, \"Reply\") Then<br \/>\nSet objWMIService = GetObject(\"winmgmts:\" &amp; \"{impersonationLevel=impersonate}!\\\\\" &amp; objComputer &amp; \"\\root\\cimv2\")<br \/>\nSet objProcess = objWMIService.Get(\"Win32_Process\")<br \/>\nerrReturn = objProcess.Create(strCommand, null, null, intProcessID)<br \/>\nIf errReturn = 0 Then<br \/>\nolog.write objComputer &amp; \";Software Runned. ID=; \" &amp; intProcessID &amp; vbcrlf<br \/>\nElse<br \/>\nolog.write objComputer &amp; \";Error ID; \" &amp; errReturn &amp; vbcrlf<br \/>\nEnd If<br \/>\nElse<br \/>\nolog.write(\"Bilgisayar Kapal\u0131\" &amp; vbcrlf)<br \/>\nEnd If<br \/>\n'Next Computer<br \/>\nobjRecordSet.MoveNext<\/code><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><code>Loop<br \/>\nolog.Close<br \/>\nmsgbox \"END OF SCRIPT\"<\/code><\/p>\n<p style=\"padding-left: 30px;\">\n<p>\u0130yi \u00e7al\u0131\u015fmalar.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>vbscript ile uzaktan komut \u00e7al\u0131\u015ft\u0131rma, excel file open slowly on network, network \u00fczerinden excel dosyalar\u0131n\u0131 a\u00e7arken yava\u015fl\u0131k<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,11,87],"tags":[],"class_list":["post-406","post","type-post","status-publish","format-standard","hentry","category-ip-uclari","category-programlama","category-vbscript"],"_links":{"self":[{"href":"https:\/\/www.notsayfam.com\/index.php?rest_route=\/wp\/v2\/posts\/406","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.notsayfam.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.notsayfam.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.notsayfam.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.notsayfam.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=406"}],"version-history":[{"count":10,"href":"https:\/\/www.notsayfam.com\/index.php?rest_route=\/wp\/v2\/posts\/406\/revisions"}],"predecessor-version":[{"id":421,"href":"https:\/\/www.notsayfam.com\/index.php?rest_route=\/wp\/v2\/posts\/406\/revisions\/421"}],"wp:attachment":[{"href":"https:\/\/www.notsayfam.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.notsayfam.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=406"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.notsayfam.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}