Tag Archives: All Users

Copy a predefined file to all local user profiles (VBS)

Purpose: You want to copy a predefined file to all local workstation user profiles with SCCM

You might find yourself in a situation where some of the applications have been installed in one way and the others in another way. Depending on the problem, you might just want to clean the table and reinstall the the applications with your definitions. If this is not possible or would not be cost efficient, you could use SCCM to check if “something” exists and alter the workstations where this something is missing. In this example this “something” is a missing configuration file needed in EVERY USER PROFILE of the workstation.

Usage: cscript.exe IT_APP_VBS_CopyFileToEveryUserProfile.vbs
Configuration: You need to insert your own PREDEFINED FILE and LOCATION.

Continue Reading

Show Workstation Name in Computer Icon and Start Menu (BAT)

Purpose: Show the Workstation name on Desktop and Start Menu (natively)

The case everyone is familiar with (more or less) is the case of getting a customer to tell the support personnel their computer name. This can be done with multiple different ways (tag the computer with stickers, link username and computer name in your management tool, or create something that helps the user to tell it). The way I’m going to demonstrate is suited for some cases: create something that helps the user to tell it. In this case it is going to be by renaming the “Computer” icon on the public desktop and forcing it to be shown there. This will also then rename the Start Menu “Computer”.

Requirements: SetACL.exe (http://helgeklein.com/setacl/) / included in the download
Usage: start “Configure” /wait IT_OSD_BAT_ShowWorkstationNameInMyComputer.bat
Debugging: The script must be ran as NT AUTHORITY/SYSTEM (ie. the installing force of SCCM).
Configuration: No need.
Continue Reading

Enable Remote Desktop from Command-line (BAT)

Purpose: Enable Remote Desktop on Workstations from Command-line

To gain access to the unsuspecting victims.. er.. customers, you can use the magnificent built-in tool of RDP! This even allows you to do your work hidden so the customer will not actually see what you are doing, how neat is that? (Well of course this is not neat in a situation where the customer wants to show you something but lets not go into that.) To enable RDP on a remote workstation, you can use the following registry change. Like many configuration options, this can be implemented through various ways. This script can be added to SCCM as an application and use the registry change as Detection Method. This way – if the setting is already as we want – SCCM will not do anything on the workstation.

Usage: start “Configure” /wait IT_OSD_BAT_EnableRemoteDesktop.bat

Continue Reading

Enable Remote Registry Service (BAT)

Purpose: Start the Remote Registry service during system startup

In corporate environments, administrative users and support personnel might need to be able to access the remote workstation registry. In these scenarios, the work can be done without disturbing the customer and then just informing the customer that the fix has been made. Unless this is set in the workstation image, you need to enable this afterwards. Luckily it can be done easily through SCCM application deployment. There are plenty alternative ways to do this (GPO, Login script, OS image, Packages, etc.). This method is just as straightforward as any of them and allows you to track its progress through the environment using the built-in tools of SCCM.

Usage: start “Configure” /wait IT_OSD_BAT_EnableRemoteDesktop.bat
Debugging: Occurs during next login. Should you need faster, start it instantly as well.
This can be done by running the following command: sc.exe start RemoteRegistry. The extra registry key is just for SCCM to be used as an application anchor (detection method).

Continue Reading

Create a Shortcut for All Users of a workstation (VBS)

Purpose: Create a Windows Shortcut in the Public Desktop and Public Start Menu.

Are you in need to create shortcuts for all the users of a workstation? Do you have some silly vendor provided application that just needs to have its shortcuts fixed? And most importantly – you need to do this OFTEN? Then scripting a shortcut template is the answer for you. With this code example, you can create your own shortcuts. You might not have the time to do it yourself, so you can use one I have created. Important fact is that by using this method the actual target does not need to exist by the time of the creation – the shortcuts are created anyway!

Usage: cscript.exe CreateShortcuts.vbs (no parameters exist)

Configuration: You need to change the configuration in “Configure the script” -part of the code.

Continue Reading