Scriptomatic 2.0

Imagine, you are a scripting guru, well known on the “intertubes” and loads of Windows admins praise you every day for the amazing job you do … but there’s more, you are married, and your wife is a real live “Scripting Wife”! Meet The Scripting Guys. but … its not about them, its about one ...

Handy WMIC commands

Quick introduction. What is WMIC? WMI is a “Windows Management Instrumentation” and WMIC is its command-line version that allows command-line administration of local or remote computers. Pretty useful stuff! I don’t want to quote Wikipedia here, because there is no point to do so. If anyone would like to read more, here’s the article. Anyway, ...

How to create user profile using the command line?

Simple stuff, you’d think as well as why would I need to do so? I just had one of these situations few minutes ago, when this way of creating user profiles comes in hand. So … remote user that connects via VPN. His domain account user profile does not exists on the PC, but he ...

Deploying reg key via batch and PSTools

Task: deploy registry key to multiple desktops. Tools needed: PSTools 1. Download PSTools, unpack and run psexec.exe. 2. Create computers.txt file within PSTools folder. 3. Place your registry key into the shared folder. 4. Open notepad and create run.bat file that will look like this: run.bat @ECHO OFF regedit /s "\\yourserver\shareddrive\sharedfolder\yourregkey.reg" 123 @ECHO OFF regedit ...

Run an app with admin privileges.

I’m gonna keep it short this time :) Here’s the scenario. Standard user needs to be able to run software with admin privileges. Software is just simply badly designed and it won’t run under the user profile. Modifying folder, registry or services permissions are not solving the problem. Using right-click and “Run as administrator” requires ...

Windows 7 file copy problems

I have few Windows 7 users at work that started to report an issue (which I actually experienced myself too) with copying large files or large amount of files across the network. The problem was, whenever user started to copy something, progress bar stops and once clicking “Cancel” button, it just hangs saying “Cancelling…” and ...

Simple VBS for uninstaling software.

As per Wikipedia, VBScript (Visual Basic Scripting Edition) is an Active Scripting language developed by Microsoft that is modeled on Visual Basic. It is designed as a “lightweight” language with a fast interpreter for use in a wide variety of Microsoft environments. Well, some use it to create GUI to track the killers IP address … but I prefer to use it in more proper ...

Batch deploy of Microsoft Silverlight

There are few ways of deploying of Microsoft Silverlight, but for all of them you basically need an .msi installer, which Microsoft do not have.  Why do we need an .msi for ? The reason is simple – silent install, without user interaction. You can push the installer by creating new Software Group Policy and ...

Display Add/Remove Programs list from remote host.

Few years ago it took me a while to find the way of displaying “Add/Remove Programs” list remotely. Sometimes its good to be able to have a look on what’s installed on remote host, or to check the Add/Remove Programs actual software name. I stumble upon the HTML script written by Stuart Barrett, that allows ...

Cool VBS for Symantec SEP reporting

Anyone who ever had a chance to work with Symantec Endpoint Protection knows very well, that SEP reporting created in SEP Manager is not the most accurate way of getting information about your clients health. It is actually quite surprising, that such a big company like Symantec, with their main product for business customers, never ...