Archive for the ‘Script’ Category

Scripting: How to edit an INI file from a script

Wednesday, April 30th, 2008

I was asked how to modify an INI from a script.  Its quite straight forward.  Firstly have a read of the Scripting Guy article here.  It explains the process quite well actually.  However, I wanted to go a step further and setup arguments to make the script re-useable.  So here ...

Batch Files : Date Stamp in a filename

Friday, April 18th, 2008

Ive been asked this a number of times this past month.  How do I get the date into a filename in a batch file? Most peope try using the %date% variable.  Which will not work as you cannot have /'s in the filename. So, try this: for /f "tokens=1-4 delims=/ " %%i in ...

Windows 2000 Terminal Server : Modify RDP-tcp permissions via script

Wednesday, March 19th, 2008

I was recently asked how to modify the rdp permissions on a large number of Windows 2000 SP4 servers running in Remote Admin mode.  Well, normally Id make use of WMI and make the changes using Win32_TSPermissionsSetting class.  Unfortunatly this class is not available in Windows 2000.  To get around this issue in ...