![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| Newbie | How to get the Local Machine Name How to get the Local Machine Name of the Client. If it is the WMI script which can help, then i am not able to create an object for the WScript.Network Activex control. Is there any other way to get the client machine name using the vbcscript or the javascript. The wmi script can create object and get the machine name using the .vbs file. Can any one say me how to get the client machine name |
My System Specs![]() |
| | #2 (permalink) |
| Guest | Re: How to get the Local Machine Name adialji wrote: Quote: > How to get the Local Machine Name of the Client. > > If it is the WMI script which can help, then i am not able to create an > object for the WScript.Network Activex control. > > Is there any other way to get the client machine name using the > vbcscript or the javascript. The wmi script can create object and get > the machine name using the .vbs file. > > Can any one say me how to get the client machine name > VBScript would be to use the wshNetwork object. For example: ========= Set objNetwork = CreateObject("Wscript.Network") strComputer = objNetwork.ComputerName -- Richard Mueller MVP Directory Services Hilltop Lab - http://www.rlmueller.net -- |
My System Specs![]() |
| | #3 (permalink) |
| Newbie | Re: How to get the Local Machine Name But i am getting the error message ActiveX component can't create object: 'Wscript.Network' |
My System Specs![]() |
| | #4 (permalink) |
| Guest | Re: How to get the Local Machine Name "adialji" <guest@xxxxxx-email.com> wrote in message news:53a528110837b568106e892f79d4d814@xxxxxx-gateway.com... Quote: > > But i am getting the error message > ActiveX component can't create object: 'Wscript.Network' > > > -- > adialji set oWshShell = CreateObject("WScript.Shell") wscript.echo oWshShell.ExpandEnvironmentStrings("%ComputerName%") |
My System Specs![]() |
| | #5 (permalink) |
| Newbie | Re: How to get the Local Machine Name I am actually using this vb script as <script language = "vbscript"> set oWshShell = CreateObject("WScript.Shell") wscript.echo oWshShell.ExpandEnvironmentStrings("%ComputerName%") </script> The moment this script gets executed at the client browser, an object should be created to Wscript.Shell but i am getting the same error " ActiveX Component Cant create object: 'Wscript.Shell' " There Must be a way !! |
My System Specs![]() |
| | #6 (permalink) |
| Newbie | Re: How to get the Local Machine Name How can i get the computer machine name from system registry? |
My System Specs![]() |
| | #7 (permalink) |
| Guest | Re: How to get the Local Machine Name "adialji" <guest@xxxxxx-email.com> wrote in message news:2cdaeed89141aec0f18b490a4b06a639@xxxxxx-gateway.com... Quote: > > I am actually using this vb script as > > <script language = "vbscript"> > > set oWshShell = CreateObject("WScript.Shell") > wscript.echo oWshShell.ExpandEnvironmentStrings("%ComputerName%") > > </script> > > The moment this script gets executed at the client browser, an object > should be created to Wscript.Shell but i am getting the same error > > " ActiveX Component Cant create object: 'Wscript.Shell' " > > There Must be a way !! is not available, as that belongs to the WSH (cscript/wscript) scripting engines. /Al |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| create Ad user on local machine | PowerShell | |||
| login to local machine | Vista account administration | |||
| Add local machine users to local admin group via GPO | .NET General | |||
| cannot copy files onto local machine | Vista installation & setup | |||
| cannot copy files onto local machine | Vista installation & setup | |||