Skip to content

scripting

need to script something ? do it here

  1. Started by Damien,

    Hi, Can some one please tell me an application to create VB script easily? Thanks

  2. Started by Kingskawn,

    I need a vbs script to check which language my OS is and install the adequate application. I had for example the update of RDP 6.1 for SP2 that I needed to deploy but I had some 1603 errors and I couldn't figure out what was causing this. Seems that it was just the language of the OS that was not matching. So I have a WindowsXP-KB952155-x86-ENU and WindowsXP-KB952155-x86-NLD

  3. Started by Moggis,

    Hi is there any easy way to change the server for "Imap"Incoming mail server and Outgoing mail server, with a Script? i have to change it on around 200 clients... tryied to find resulotion but not... (the company is using LDAP, IMAP) //Morgan

    • 2 replies
    • 5.2k views
  4. Started by Kingskawn,

    In a command-prompt windows just type: "WMIC ComputerSystem GET Model" I had to use this several times to know exactly which computer model I had

    • 0 replies
    • 3.6k views
  5. Started by salle,

    First, sorry if this is in incorrect forums. I'm trying to get HP EliteBook Product Number from WMI with VbScript, but I can't find it anywhere! It used to be (in older models) like this: HP Compaq nw8440 (ES592EA#AK8), but newer models only give this: HP EliteBook 8530p. The info was taken from Win32_ComputerSystem / Model. Where could this model number info be now?

    • 2 replies
    • 11.5k views
  6. Started by jamitupya,

    Hey guys, trying to dynamically create a shortcut in the start menu but failing misserably... point is to start this link during our OSD for Windows 7....for all intensive purposes, it should work, but wont display the link in the all users.... ideas? ' Initialization Program = "SetStart.vbs" Set shell = CreateObject("Wscript.Shell") ' Create the shortcut and point it to the specified script (assume C:\Build) ' path = shell.SpecialFolders("ProgramData") & "C:\Profiles\Profiles\Administrator\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup" & "\Startup.lnk" path = "C:\Users\All Users\Microsoft\Windows\Start Menu\Programs\Startup" & "\…

    • 3 replies
    • 7.7k views
  7. Started by jamitupya,

    Im trying to output the content from from a tracert command to excel however i am unsure how i can output this in an excel cell.... any ideas? Set WshShell = WScript.CreateObject("WScript.Shell") Ping = WshShell.Run("ping -n 2 -a " & HostName, 0, True) tracert = WshShell.Run("tracert -4 " & HostName, 0, True) objExcel.Cells(intRow, 1).Value = UCase(HostName) Select Case Ping Case 0 objExcel.Cells(intRow, 2).Value = "OK" Case 1 objExcel.Cells(intRow, 2).Value = "NG" End Select Select Case tracert Case 0 objExcel.Cells(intRow, 3).Value = "OK" Case 1 objExcel.Cells(intRow, 3).Value = "NG" End Select Basically PING is OK and NG and works per…

    • 0 replies
    • 5.1k views
  8. Can someone show me a sample of script that has an "if exist" statement that checks if the network printer is connected to the current PC. I have this on part of my script that removes a network printer. But, I would like to add an "if exist" statement that checks and then removes if it does exist. ******* Dim DelPrint, UNCpath UNCpath = "\\server\network_printer1" Set DelPrint = WScript.CreateObject("WScript.Network") DelPrint.RemovePrinterConnection UNCpath, true, true ******* Many thanks,

    • 0 replies
    • 4.1k views
  9. Started by jamitupya,

    This script will load a command line variable for the username or can auto to administrator and password from an ini file. ' Initialization Set wshNetwork = CreateObject("WScript.Network") Set shell = CreateObject("WScript.Shell") Set fs = CreateObject("Scripting.FileSystemObject") ' Get parameters Program = "AutoLog.vbs" If WScript.Arguments.Count > 0 then username = WScript.Arguments.Item(0) Else username = TranslateLocalUser("Administrator") End if If WScript.Arguments.Count > 1 then password = WScript.Arguments.Item(1) Else password = ReadIni("C:\Build\Settings.ini", "LocalAdmin", "localAdminPassword") End if computerName = wshNetwork.Com…

    • 0 replies
    • 10.4k views
  10. Started by ctelfer,

    Hello. I am looking for a way in my OSD deployments to prompt for partition sizes of disks other than the system drive, and to use the input to create and format those drives. Any one done this already? Thanks!

    • 0 replies
    • 3.8k views
  11. Started by jamitupya,

    Hi Guys, I got some code that i need to extend to include detection of vista windows 7 2008 etc and was wondering if anyone could give me some assistance. basically i need to add detection of windows vista and 7 and possibly w2k8+ ....any ideas...have nfi btw... looking at snippets atm trying to solve.... '========================================================================== 'Determine OS using WMI '========================================================================== Dim sWXPP, sW2KP, sW2KS, sW2KAS, sW2KDS, sW2K3S, sW2K3W, sW2K3E, sUnkOS, sWbemOpSys Dim oWbemServices Dim cOperatingSystems Dim oInstance sWXPP = "Microsoft Windows XP Professional" sW…

    • 2 replies
    • 14.7k views
  12. Started by anyweb,

    let's say you need to pull values from the operating system WMI class, in XP you can do as follows:- open a command prompt and try this wmic.exe path win32_BaseBoard get /format:htable > win32_BaseBoard_test.html the above will pull all values for win32_BaseBoard and place the output in a html formatted table which you can view in Internet Explorer (will not display correctly in Firefox). attached is an example output of the above code. cheers anyweb win32_BaseBoard_test.html

  13. Guest badribabu
    Started by Guest badribabu,

    Hi, In my company, due to security reasons then not installed Microsoft Office application. I want a script for bulk id creation with out excel sheet. if you have any idea on this ,please help me. Thanks in advance. Badri.

  14. Started by jamitupya,

    We have a system in place that displays a Blank Screen and logo in place whilst loading your network drives and profile. The reason for this is that we simply want to ensure the PC has had enough time to load all the services and applications on your computer prior to giving you your desktop. This system provides that we can have a single logon script set through GPO at the root level of our domain and then INDIVIDUAL mappings per site and country. This guide assumes that you have first setup Windows Server 2008 and configured it for Active Directory. In a production environment please consult Technet for best practise, see below links: Design Active …

    • 2 replies
    • 8.8k views
  15. Started by Leo,

    Hi all, I am trying to figure out how can i add homepage setting for IE in System Restore process in ZTI. I have done couple of scripts but it added to the Local Machine but not to the current user. However, i also thought that packaging a vbs script (which sets the homepage) and a bat file(which calls the homepage.vbs) in a winrar sfx would help. What i did here is, i made it as an application and call it during the System Restore in ZTI in SMS. Winrar extracts those 2 files in a temp folder in C: Root. But does not change the Homepage. I read it somewhere that using reg.exe can be done. But i didn't find any resource how to do it. Can anyone point me to…

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.