scripting
need to script something ? do it here
124 topics in this forum
-
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…
-
- 2 replies
- 6.3k views
- 1 follower
-
-
Hi, I'm searching for a script to delete all files and folders from drive D: but at the same time I'd like to to exclude a few folders and files! A was looking at Robocopy. Here is my testscript: *************** mkdir C:\DELETE robocopy "D:\" "D:\DELETE" /E /MOV /NP /XD "Dir 1" "Dir 20 00" "Dir3" /XF "File 1.dll" "File 2 0 .txt" /R:10 /W:30 rmdir "c:\DELETE" /s /Q ************* It creates a directory > copies everything (except the excluded folders and files) to that directory and than it deletes the directory....but It gives back this message: ERROR: Invalid Parameter #4 : "00 Dir3 /XF File" What is the right command line string? …
-
- 2 replies
- 7.5k views
-
-
Hi All, I've notice my SCCM clients not responing to my main server. So I started looking and notice the following in our login script. I'm not a expert in scripting but please explain to me what will the following do to my SCCM clients ================== Sub SMSSite() Dim smsClient, inParam, result If Site <> "DurbanPlessey" OR Site <> "Killarney" Then "This will only exclude these sites" Set smsClient = GetObject("winmgmts://127.0.0.1/root/ccm:SMS_Client") Set inParam = smsClient.Methods_.Item("SetAssignedSite").inParameters.SpawnInstance_() inParam.sSiteCode = "C00" Set result = smsClient.ExecMethod_("SetAssignedSite", inParam) End If E…
-
- 2 replies
- 9.2k views
-
-
Hi WN im working on a script where i want to pass a param to the script. When I run it without any param it install the regedit changes. I want to use the same script for the clean up. like this: newdev.ps1 -uninstall then do this and this how do i get this to work?
-
- 0 replies
- 4k views
-
-
I've just spent ages working through various methods for deploying Open Office 3.3 silently using SCCM 2007. I finally have a working solution so I thought I should share it. You need the Open Office 3.3 installer from OO's website and the DisableFirstStartWizard.oxt file, also available on their site. This particular install routine disables the first run wizard (leaves the user name fields blank), disables any on-line checking for updates and leaves the default file save as type as open document format. Extract the set-up file into an install folder and copy the oxt file into the same place. The batch file is; start /wait msiexec /qb /norestart /i openofficeo…
-
- 0 replies
- 5.1k views
-
-
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
-
-
I found this script for naming wimfiles during ztibackup but I cant get it to run. Get lots of errors, even after removing all the "'s. Can someone help me? —script begin— set env = CreateObject(“Microsoft.SMS.TSEnvironment”) Set ProgressUI = CreateObject(“Microsoft.SMS.TsProgressUI”) ProgressUI.CloseProgressDialog BackupFile = InputBox(“Name of wim file”) env(“BackupFile”) = BackupFile —script end—
-
- 0 replies
- 3.2k views
-
-
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
-
-
Hi All, I am trying to build an enviornemnt an dusing Hyrdation scripts from deploymentresearch.com ( thanks to Johan Arwidmark and team). The below mentioned script works fine with local SQL server deployment but i want it to work with my remote SQL server instance. Can any please advice as to what all changes I have to do to make this script work. Appreciate your help in advance.
-
- 1 reply
- 4.3k views
- 1 follower
-
-
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
-
-
I have the package created with the folder and files I need copied but I cant get a VB script to work that will do it. any ideas on how I could do that? Any help is appreciated, Thanks
-
- 3 replies
- 4.1k views
-
-
Hi..Need Help... got a requirement where a HTA Wizard needs to be prompted while OSD via SCCM. Selection 1 : Select Dept ( ex : HR/Accounts/Marketing) Selection 2: IF HR selected, an another dropdown to be displayed with Agency names assosiated ( ex : AM/PM/TA/AM) *In the same way every Dept has multiple Agencies. Depending on the above selection, the computer name needs to be set for ex : <HR><AM><SerialNumber> Let me know if there are any such sample scripts as such or any pointers or someone would have already worked on such scripts before
-
- 2 replies
- 3.2k views
- 1 follower
-
-
I am very limited in my scripting abilities. I need a script that will change proxy settings per location. Example: Setting at this location the IP of the machine is 172.xx.xxx.xx (DHCP) and the proxy setting is 192.xxx.xxx.xxx port xxxx. I travel to another location the IP of the machine is 164.xx.xxx.xx (DHCP) and the proxy setting is 192.xxx.xxx.xxx port xxx. The proxy servers and the ports are different. Right now when someone travels to the offsite location we have to move them from one OU to another in order for the proxy to be set correctly. Could anyone be of help or point in the right direction. Thanks in advance. Kathy
-
- 4 replies
- 7.2k views
- 2 followers
-
-
I'm trying to do a very basic operation - that is - delete a shortcut that we do not want on the desktop. The file is located at C:\Users\Desktop\Username\File.lnk. When I try to do this scriptomatically, I get access denied. What do I need to do to accomplish this by script? Thanks, Tobias.
-
-
- 4 replies
- 4.7k views
-
-
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 :…
-
- 1 reply
- 5.8k views
- 1 follower
-
