<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: vbs script to configure as a login script - plz help in Windows Server 2003</title>
    <link>https://community.hpe.com/t5/windows-server-2003/vbs-script-to-configure-as-a-login-script-plz-help/m-p/3875388#M3663</link>
    <description>Dear Mr Gene Laoyan Millions of Thanks for such a nice help.&lt;BR /&gt;Dear Mr Phil. Howell thanks for providing the superb resource(url).&lt;BR /&gt;&lt;BR /&gt;Thanks EveryOne.&lt;BR /&gt;Regards&lt;BR /&gt;Maaz</description>
    <pubDate>Fri, 13 Oct 2006 09:44:32 GMT</pubDate>
    <dc:creator>Maaz</dc:creator>
    <dc:date>2006-10-13T09:44:32Z</dc:date>
    <item>
      <title>vbs script to configure as a login script - plz help</title>
      <link>https://community.hpe.com/t5/windows-server-2003/vbs-script-to-configure-as-a-login-script-plz-help/m-p/3875381#M3656</link>
      <description>DC: win2k3 server&lt;BR /&gt;plz help me ... and provide me the code of a vbs script that can run the following command:&lt;BR /&gt;&lt;BR /&gt;netsh interface ip set address name="Local Area Connection" source=dhcp&lt;BR /&gt;&lt;BR /&gt;I have to configure the login script via group policy, in which the "netsh interface ip set ..." command runs, and set the machine, a dhcp client. I try by simply make "abc.vbs" file with the code "netsh interface ip set ...", but when I run/execute the file, it produce compilation error.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz</description>
      <pubDate>Thu, 05 Oct 2006 14:17:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/windows-server-2003/vbs-script-to-configure-as-a-login-script-plz-help/m-p/3875381#M3656</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2006-10-05T14:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: vbs script to configure as a login script - plz help</title>
      <link>https://community.hpe.com/t5/windows-server-2003/vbs-script-to-configure-as-a-login-script-plz-help/m-p/3875382#M3657</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You would probably be better off making a .cmd file and putting this in the logon script in group policy.&lt;BR /&gt;&lt;BR /&gt;Simply coy the line :&lt;BR /&gt;&lt;BR /&gt;netsh interface ip set address name="Local Area Connection" source=dhcp&lt;BR /&gt;&lt;BR /&gt;into notepad and save it as LAN.cmd endsuring that you Local Area Connection is actually called Local Area Connection and not something else!&lt;BR /&gt;&lt;BR /&gt;The set up the policy with this file and it should work ok....&lt;BR /&gt;&lt;BR /&gt;:-)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Oct 2006 03:01:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/windows-server-2003/vbs-script-to-configure-as-a-login-script-plz-help/m-p/3875382#M3657</guid>
      <dc:creator>Jonathan Axford</dc:creator>
      <dc:date>2006-10-06T03:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: vbs script to configure as a login script - plz help</title>
      <link>https://community.hpe.com/t5/windows-server-2003/vbs-script-to-configure-as-a-login-script-plz-help/m-p/3875383#M3658</link>
      <description>Thanks Dear Jonathan Axford for help. I have not yet check your suggestion, but will be able to check/work on tomorrow, then I'll let you(forum) know the result.&lt;BR /&gt;&lt;BR /&gt;May I ask one more thing...&lt;BR /&gt;abc.vbs is called a "vb script"&lt;BR /&gt;abc.bat is called a "batch file/scipt"&lt;BR /&gt;what will be abc.cmd called ?</description>
      <pubDate>Fri, 06 Oct 2006 13:44:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/windows-server-2003/vbs-script-to-configure-as-a-login-script-plz-help/m-p/3875383#M3658</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2006-10-06T13:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: vbs script to configure as a login script - plz help</title>
      <link>https://community.hpe.com/t5/windows-server-2003/vbs-script-to-configure-as-a-login-script-plz-help/m-p/3875384#M3659</link>
      <description>Maaz,&lt;BR /&gt;.bat  and .cmd are same - no difference in behavior for windows NT/2000/XP/2003&lt;BR /&gt;However, windows 95/98 can work only with .bat files and not with .cmd&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;.BAT = common to x-DOS operating systems (for windows 95/98 for example)&lt;BR /&gt;.CMD = used by OS/2 and introduced first in Windows NT4 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 07 Oct 2006 05:17:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/windows-server-2003/vbs-script-to-configure-as-a-login-script-plz-help/m-p/3875384#M3659</guid>
      <dc:creator>Igor Karasik</dc:creator>
      <dc:date>2006-10-07T05:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: vbs script to configure as a login script - plz help</title>
      <link>https://community.hpe.com/t5/windows-server-2003/vbs-script-to-configure-as-a-login-script-plz-help/m-p/3875385#M3660</link>
      <description>Thanks Igor for help ;)&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz</description>
      <pubDate>Sat, 07 Oct 2006 11:42:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/windows-server-2003/vbs-script-to-configure-as-a-login-script-plz-help/m-p/3875385#M3660</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2006-10-07T11:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: vbs script to configure as a login script - plz help</title>
      <link>https://community.hpe.com/t5/windows-server-2003/vbs-script-to-configure-as-a-login-script-plz-help/m-p/3875386#M3661</link>
      <description>Batch files and .cmd files are not eobust enough. Here a vbscript version....&lt;BR /&gt;&lt;BR /&gt;strCommandLine = Chr(34) &amp;amp; "netsh interface ip set address name=" &amp;amp; Chr(34) &amp;amp; "Local Area Connection" &amp;amp; Chr(34) &amp;amp; "source=dhcp" &amp;amp; Chr(34)&lt;BR /&gt;&lt;BR /&gt;Call ExecuteADOSCommand(strCommandLine)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sub ExecuteADOSCommand(varCommandLine)&lt;BR /&gt; MsgBox varCommandLine&lt;BR /&gt; Dim oWshShell&lt;BR /&gt; Set oWshShell = CreateObject("WScript.Shell")&lt;BR /&gt; oWshShell.Run "%COMSPEC% /c " &amp;amp; Chr(34) &amp;amp; varCommandLine &amp;amp; Chr(34), 1, False&lt;BR /&gt; 'True - Wait till commandline finishes before continuing through the script.&lt;BR /&gt; 'False - Do not wait for the commandline finishes before continuing through the script.&lt;BR /&gt; '0 Hides the window and activates another window.&lt;BR /&gt; '1 Activates and displays a window. If the window is minimized or maximized,&lt;BR /&gt; ' the system restores it to its original size and position. An application &lt;BR /&gt; ' should specify this flag when displaying the window for the first time.&lt;BR /&gt; '2 Activates the window and displays it as a minimized window.&lt;BR /&gt; '3 Activates the window and displays it as a maximized window.&lt;BR /&gt; '4 Displays a window in its most recent size and position. The active window remains active.&lt;BR /&gt; '5 Activates the window and displays it in its current size and position.&lt;BR /&gt; '6 Minimizes the specified window and activates the next top-level window in the Z order.&lt;BR /&gt; '7 Displays the window as a minimized window. The active window remains active.&lt;BR /&gt; '8 Displays the window in its current state. The active window remains active.&lt;BR /&gt; '9 Activates and displays the window. If the window is minimized or maximized, the system &lt;BR /&gt; ' restores it to its original size and position. An application should specify this flag &lt;BR /&gt; ' when restoring a minimized window.&lt;BR /&gt; Set oWshShell = Nothing&lt;BR /&gt;End Sub</description>
      <pubDate>Wed, 11 Oct 2006 12:29:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/windows-server-2003/vbs-script-to-configure-as-a-login-script-plz-help/m-p/3875386#M3661</guid>
      <dc:creator>Gene Laoyan</dc:creator>
      <dc:date>2006-10-11T12:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: vbs script to configure as a login script - plz help</title>
      <link>https://community.hpe.com/t5/windows-server-2003/vbs-script-to-configure-as-a-login-script-plz-help/m-p/3875387#M3662</link>
      <description>There are lots of script examples at &lt;BR /&gt;&lt;A href="http://www.microsoft.com/technet/scriptcenter/scripts/default.mspx?mfr=true" target="_blank"&gt;http://www.microsoft.com/technet/scriptcenter/scripts/default.mspx?mfr=true&lt;/A&gt;&lt;BR /&gt;Phil</description>
      <pubDate>Thu, 12 Oct 2006 03:04:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/windows-server-2003/vbs-script-to-configure-as-a-login-script-plz-help/m-p/3875387#M3662</guid>
      <dc:creator>Phil.Howell</dc:creator>
      <dc:date>2006-10-12T03:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: vbs script to configure as a login script - plz help</title>
      <link>https://community.hpe.com/t5/windows-server-2003/vbs-script-to-configure-as-a-login-script-plz-help/m-p/3875388#M3663</link>
      <description>Dear Mr Gene Laoyan Millions of Thanks for such a nice help.&lt;BR /&gt;Dear Mr Phil. Howell thanks for providing the superb resource(url).&lt;BR /&gt;&lt;BR /&gt;Thanks EveryOne.&lt;BR /&gt;Regards&lt;BR /&gt;Maaz</description>
      <pubDate>Fri, 13 Oct 2006 09:44:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/windows-server-2003/vbs-script-to-configure-as-a-login-script-plz-help/m-p/3875388#M3663</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2006-10-13T09:44:32Z</dc:date>
    </item>
  </channel>
</rss>

