Skip to content

scripting

need to script something ? do it here

  1. 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.

  2. Hi, I already have a BAT script to find PST files and rename their extension to .pstx. (This is so that USMT doesn't pick them up in a migration) for /f "delims=" %%i in ('dir /s /b /a-d c:\*.pst') do (ren "%%i" *.pstx) That works great. But I need this script to ingore any PST files that already reside in the "Outlook Files" folder in Documents. (So that USMT does pick them up in a migration) What command can I incorporate in this script to exclude any PST files in "Outlook Files" ? Any help would be much appreciated. We are using this to migrate users to HVD and we are almost there! thanks Jan

  3. I am looking to automate a prcoess as follows.. Input AD username Retrieve network location of AD User Roaming Profile Retrieve network location of home directory Copy certain items from roaming profile to home directory Delete network roaming profile This is purely so helpdesk staff can delete a profile using a tool rather than having to browse to a server and delete manually... I am guessing I can perform this via VBS but am looking for some pointers, I don't have any vbs experience but a starting point would be nice..! Thanks

  4. Started by jamitupya,

    Just something i use to modify the default user hive for our windows 7 deployments.... @ECHO OFF REM ***************************************************** REM Script configures the Default User Profile REM ***************************************************** echo. echo. Load default profile HIVE and apply registry settings. echo. REM Load the default profile hive REG LOAD HKU\Default C:\Users\Default\NTUSER.DAT REM Configure the default user profile REM Customise Wallpaper Theme Screensaver etc. REG IMPORT HKDUser\HKU_ControlPanel_Desktop.reg REG IMPORT HKDUser\HKU_Themes.reg REG IMPORT HKDUser\HKU_Software_MSWin_DWM.reg REG IMPORT HKDUser\HKU_ControlPanel_Colo…

  5. I have a short script to modify some HKCU reg entries for the Default user. I want to apply this to the reference image so it gets applied to new users. I know this can be done with GPO. I am using MDT and have it pause after the script runs so I can test it. It is says completed successfully but it doesnt do anything. Even when I run it from a cmd prompt manually during the pause. This does not work when running it manually on a machine either. This is the script @ECHO OFF REM ***************************************************** REM Script configures the Default User Profile REM ***************************************************** echo. echo. Load …

  6. Hi, I need a script which will enable me to achieve the following goals if someone could assist. All workstations are either WIn7 or XP (just a tiny amount of XP) Printer installs on each device are currently of an unknown ilk (each one has been installed manually!) The script needs to:- Remove ALL local and network printers Add the following printers \\printserver\mono \\printserver\colour We are only currently moving to print servers (i know, i know.. !) and i would like to clear up each workstation from a printing perspective and start again. Also, would you deploy this via policy? Or would you use SCCM2007. We have both. Any help w…

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

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

  9. Started by njjudel2,

    Hi!!! I am new at SCCM and scripts. I hope someone out here can help!!! I would like to create a script or batch file to create shortcuts on my desktop .. I rolled out my os (windows 7) and applications using SCCM. In my rollout, the msi files don't create shortcuts of applications (word, excel, etc.). Anyone know how too....Thanks in advance!!!

  10. 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
  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.5k views
  12. 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

  13. Hi all, To do some reporting around app deployment for our classrooms, I'm WMI-querying class SMS_AppDeploymentAssetDetails. Unfortunately, it returns multiple records per device. Does anyone know how get back only the most recent record of a device? Thank you in advance! Regars, Sven

  14. Okay Scripting Masters, I'm not very good at doing scripts, but I know that a cscript or just a VBS script would work to "PIN" the "Software Center; C:\Windows\CCM\SCClient.exe" to the Start Menu. What would the code look like at getting that done? Thanks again

  15. Started by king13p,

    Hello, I'm working on a Powershell script to install Autodesk products. I'm having issues with a step and hopefully someone can help. I've tried this many different ways and keep running into errors. Using double quotes (Start-Process "msiexec.exe" -ArgumentList ""/i $dirFiles\ABDS2017\Img\x64\RVT\RVT.msi INSTALLDIR="C:\Program Files\Autodesk\" ADSK_SETUP_EXE=1 /qb!"" -NoNewWindow -Wait -PassThru).ExitCode Error Cannot validate argument on parameter 'ArgumentList' Argument is null or empty. Using a variable to define InstallDir $RevitInstallDir = "C:\Program Files\Autodesk\" (Start-Process "msiexec.exe" -ArgumentList "/i $d…

    • 1 reply
    • 16.9k 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.