Skip to content

scripting

need to script something ? do it here

  1. Hello Not sure where to post this so sorry if in worng place Thank you for reading my post. I am brand new to scripting so my apologies if this is rather basic – But everyone starts somewhere. We are running Windows 7 desktop on a 2003 Enterprise domain. I need to copy some short cuts files (eod8 extension) to the start menu under “All Programs” in a folder called “EOD”. The users must be able to save and open the shortcuts (so using the All Users folder did not work since a standard user can’t save to that location) So I am copying the files to the local user profile. My Script setlocal set Installpath=%~dp0 mkdir "C:\Users\%username%\AppData\Roaming\Mi…

  2. Started by GolfKingUK,

    I have a script that I pieced together which accomplishes the following: Creates Local Admin, Sets a Password, encodes the password, then writes the encoded value to the registry. This script works perfectly in Windows XP. For Windows 7, it creates the Admin User, but does not write the password to the registry, nor does it check the never expire and user can't change password boxes. (These are less important but it must write the encoded password value to the registry). Once that value is in the registry, then SCCM inventories the value and the helpdesk can un-encode the password and give the login information to a user, who needs emergency admin rights. M…

  3. Hey guys, Lately I've been setting up a back-end script for one of our customers. Part of this script was designed to send an email to the manager with the user and password for their newly created users. I posted the Email function on the tech-blog if anyone needs it. http://heineborn.com/tech/sending-email-via-powershell/ Take care.

    • 0 replies
    • 6.1k views
  4. Hi! I'm having some issues with a .vbscript made for renaming computer during a task sequence. The issue is that it works for renaming virtual machines, but also a physical HP, the way it's supposed to (name of choosing + last 6 digits of serialnumber). However it fails on a customers physical Lenovo machine. The Lenovo machine sets the first part of name correctly, but completely ignores the fact that it's supposed to cut the serialnumber to the last 6 digits, meaning sometimes the machinename goes above 15 characters. The vbscript is run right after formating the disk, as seen on this pic: The script is: -------------------------------------------------------…

    • 1 reply
    • 5.9k views
  5. Started by Donte,

    Hi Guys, Am not too good with batch script and PowerShell and am trying to amend an existing batch script to do a certain install but I keep getting "system error 55 has occurred" on the network drive path of the line, and also " error code 1605" for the install command part of the script I am trying to find a way to re write the scrip using PowerShell. the main action is to perform an install of an application which upgrades or updates the current application to new version on the local server. I want to re use the same script for other devices too. I hope the above makes some sense.

    • 5 replies
    • 5.8k views
  6. Hi, I have to modify a distribution point value with powershell script. The value is PrestageAllowed who locate in wmi class SMS_SCI_SYSRESUSE like screenshot http://imageshack.us/photo/my-images/27/sanstitrewi.png/ Thanks fz

    • 1 reply
    • 5.8k views
  7. I run a large SMS 2003 environment we currently in the process of moving to SCCM 2007. We have a tool that allows help desk personnel to push SMS packages to individual computers via a small .Hta script that has just a two line interface COMPUTER NAME and PACKAGE. We would like to continue using this tool in SCCM but I would like to know if there is a better tool out there that would give Help desk personnel better functionality. Below is the .hta Script we currently use. </head> <script language="VBScript.Encode"> '**Start Encode** Option Explicit 'Initialize: Dim strCollectionList : strCollectionList = "" Dim strVerifiedColl :…

  8. Hello everbody, Does someone knows how to disable 802.1x on Windows 7? I found a VBScript in the link below but it doesn't work on Windows 7, because the EAPOL registry was discontinued on Windows vista http://www.tech-archive.net/Archive/Scripting/microsoft.public.scripting.vbscript/2005-04/msg00232.html Does anyone knows how to do it, using WMI, registry or batch? Any help would be really appreciated! Thanks in advance!

  9. following the instructions here: http://blogs.technet.com/b/deploymentguys/archive/2012/02/15/expiring-outdated-stand-alone-media.aspx my tsconfig is as follows: [CustomHook] CommandLine="cscript.exe X:\ExpiredUFDCheck.vbs" CommandLine="wscript.exe X:\Deploy\Scripts\ZTIMediaHook.wsf" The ORIGINAL vbs file is as follows, which will not function for me and just throw errors and the logic seems wrong so I corrected it, ( changes annotated). On Error Resume Next ' // --------------------------------------------------------------------- ' // Find the environment variable %configpath% for location of UFD ' // --------------------------------------------------------…

    • 1 reply
    • 5.6k views
  10. Started by Joe13,

    Hi all, I need some help and it might be something easy. I have no scripting skills and tried various methods on the internet but it's not working. All I want is for the TS to ask me what computer name I want for the deployment, some sort of popup.

    • 3 replies
    • 5.6k views
  11. I'm trying to run the Microsoft Fit it Program that resets IE8 settings on a multitude of computers. I have tried -- msiexec /i "Microsoftfitit50195.msi" /qn but I get 2 prompts at the end of the process. I cant seem to find any other parameters to answer those prompts. Am I missing a parameter or is there any other way via GPO to force the IE settings reset? Thank for your help.

    • 1 reply
    • 5.6k views
  12. Hi WN I created a function to connect to the CMSite and load the cmdlet for ConfigurationManager. Could the function be improved in any way or is it as good it can be? is the logic best practice or? You can download it at : https://gallery.technet.microsoft.com/Connect-ConfigMgr64-db5e9d0a function Connect-ConfigMgr64 { $initParams = @{ } if ((Get-Module ConfigurationManager) -eq $null) { try { Import-Module "$($ENV:SMS_ADMIN_UI_PATH)\..\ConfigurationManager.psd1" @initParams -Scope Global } catch { $ModulePath = (Get-ItemProperty HKLM:\SOFTWARE\Wow6432Node\Microsoft\ConfigMgr10\Setup -Name "UI Installation Directory").'UI Installatio…

  13. Hello all Running SCCM 1606 Hoping I can get a push in the right direction. I'm looking to uninstall a program on a few hundred PC's. The package was deployed via SCCM , but the uninstall does not work so I dug up an PS script from online. The following PS Script works just fine if it's ran locally on the clients. $appVer = Get-ChildItem -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall, HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall | Get-ItemProperty | Where-Object {$_.DisplayName -match "Some Application" } | Select-Object -Property DisplayName, UninstallStrin…

  14. 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…

  15. Started by petebuk,

    Hello there: I have the below scritpt to add a local admin account to a list of computers in a txt file however it will only add thr account to the first computer name in the text file. I have one computer name per line in the text file itself. Any Ideas? ' -------------------------------------------------------- ' VARIABLE DECLARATIONS ' -------------------------------------------------------- Option Explicit Dim strFile Dim objFSO, objTS, strComputer, objNetwork, objComputer, colAccounts, objUser, objGroup ' -------------------------------------------------------- ' STATIC VARIABLE ASSIGNMENTS ' -----------------------------------------------------…

    • 0 replies
    • 5.3k views

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.