{"id":784,"date":"2011-06-23T18:17:33","date_gmt":"2011-06-23T21:17:33","guid":{"rendered":"http:\/\/www.franklinjr.com\/blog\/?p=784"},"modified":"2011-06-23T18:18:59","modified_gmt":"2011-06-23T21:18:59","slug":"como-mudar-o-nome-do-computador-via-script","status":"publish","type":"post","link":"https:\/\/www.franklinjr.com\/blog\/index.php\/2011\/06\/23\/como-mudar-o-nome-do-computador-via-script\/","title":{"rendered":"Como mudar o nome do computador via script?"},"content":{"rendered":"<p>Ent\u00e3o, esse script funciona pra windows XP e windows 2003, crie um arquivo de texto com a extens\u00e3o .vbs que tenha o seguinte conte\u00fado<\/p>\n<p><span style=\"color: #008000;\">strNewName = &#8220;<strong>NOVO_NOME_AQUI<\/strong>&#8220;<\/span><\/p>\n<p><span style=\"color: #008000;\">strComputer = &#8220;.&#8221;<br \/>\nSet objWMIService = GetObject(&#8220;winmgmts:&#8221; &amp; &#8220;{impersonationLevel=impersonate}!\\\\&#8221; &amp; strComputer &amp; &#8220;\\root\\cimv2&#8221;)<br \/>\nSet colComputers = objWMIService.ExecQuery (&#8220;Select * from Win32_ComputerSystem&#8221;)<br \/>\nFor Each objComputer in colComputers<br \/>\nObjComputer.Rename(strNewName)<br \/>\nNext<\/span><\/p>\n<p><span style=\"color: #008000;\"><span style=\"color: #000000;\">Em <\/span><\/span>NOVO_NOME_AQUI, altere para o nome que voc\u00ea deseja que teu computador tenha, e \u00e9 isso<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ent\u00e3o, esse script funciona pra windows XP e windows 2003, crie um arquivo de texto com a extens\u00e3o .vbs que tenha o seguinte conte\u00fado strNewName = &#8220;NOVO_NOME_AQUI&#8220; strComputer = &#8220;.&#8221; Set objWMIService = GetObject(&#8220;winmgmts:&#8221; &amp; &#8220;{impersonationLevel=impersonate}!\\\\&#8221; &amp; strComputer &amp; &#8220;\\root\\cimv2&#8221;) Set colComputers = objWMIService.ExecQuery (&#8220;Select * from Win32_ComputerSystem&#8221;) For Each objComputer in colComputers ObjComputer.Rename(strNewName) Next [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51],"tags":[435,86,423],"class_list":["post-784","post","type-post","status-publish","format-standard","hentry","category-windows","tag-script","tag-servidor","tag-windows-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\r\n<title>Como mudar o nome do computador via script? - Franklin Jr.<\/title>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/www.franklinjr.com\/blog\/index.php\/2011\/06\/23\/como-mudar-o-nome-do-computador-via-script\/\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.franklinjr.com\\\/blog\\\/index.php\\\/2011\\\/06\\\/23\\\/como-mudar-o-nome-do-computador-via-script\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\\\/\\\/www.franklinjr.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Como mudar o nome do computador via script?\"}]}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Como mudar o nome do computador via script? - Franklin Jr.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.franklinjr.com\/blog\/index.php\/2011\/06\/23\/como-mudar-o-nome-do-computador-via-script\/","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/www.franklinjr.com\/blog\/index.php\/2011\/06\/23\/como-mudar-o-nome-do-computador-via-script\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/www.franklinjr.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Como mudar o nome do computador via script?"}]}]}},"_links":{"self":[{"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/784","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=784"}],"version-history":[{"count":3,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/784\/revisions"}],"predecessor-version":[{"id":787,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/784\/revisions\/787"}],"wp:attachment":[{"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=784"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=784"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}