TechNet
Products
IT Resources
Downloads
Training
Support
Products
Windows
Windows Server
System Center
Internet Explorer
Office
Office 365
Exchange Server
SQL Server
SharePoint Products
Lync
See all products »
Resources
Curah! curation service
Evaluation Center
Learning Resources
Microsoft Tech Companion App
Microsoft Technical Communities
Microsoft Virtual Academy
Script Center
Server and Tools Blogs
TechNet Blogs
TechNet Flash Newsletter
TechNet Gallery
TechNet Library
TechNet Magazine
TechNet Subscriptions
TechNet Video
TechNet Wiki
Windows Sysinternals
Virtual Labs
Solutions
Networking
Cloud and Datacenter
Security
Virtualization
Updates
Service Packs
Security Bulletins
Microsoft Update
Trials
Windows Server 2012 R2
System Center 2012 R2
Microsoft SQL Server 2012 SP1
Windows 8.1 Enterprise
See all trials »
Related Sites
Microsoft Download Center
TechNet Evaluation Center
Drivers
Windows Sysinternals
TechNet Gallery
Training
Training Catalog
Class Locator
Microsoft Virtual Academy
Free Windows Server 2012 courses
Free Windows 8 courses
SQL Server training
e-Learning overview
Certifications
Certification overview
MCSA: Windows 8
Windows Server Certification (MCSE)
Private Cloud Certification (MCSE)
SQL Server Certification (MCSE)
Other resources
TechNet Events
Second shot for certification
Born To Learn blog
Find technical communities in your area
Support options
For small and midsize businesses
For enterprises
For developers
For IT professionals
From partners
For technical support
Support offerings
For home users
More support
Microsoft Premier Online
Microsoft Fix It Center
TechNet Forums
MSDN Forums
Security Bulletins & Advisories
International support solutions
Log a support ticket
Not an IT pro?
Microsoft Customer Support
Microsoft Community Forums
Sign in
PFE Ireland
Welcome to the Irish Premier Field Engineering blog
Tags
*
Active Directory
Announcements
App-V
Assessment
Cluster
Commentary
Events
Hyper-V
NAP
Pages
Printing
Scripting
SCVMM
SVCMM
Terminal Server
UAC
virtualisation
Vista
VMware
Windows Server 2000
Windows Server 2003
Windows Server 2008
Windows XP
Browse by Tags
TechNet Blogs
»
PFE Ireland
»
All Tags
»
scripting
Related Posts
Blog Post:
Batch Files : Date Stamp in a filename
Gavin McShera
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 people 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 ("%date%") do set datestring...
on
8 May 2008
Blog Post:
Scripting: How to edit an INI file from a script
Gavin McShera
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...
on
8 May 2008
Blog Post:
Scripting: Hyper-V - Mount VHDs by right clicking
Gavin McShera
There are plenty of posts on the interweb that show you how to mount and unmount vhds via powershell. I downloaded the Hyper-V PowerShell management library from CodePlex.com here as created by James O'Neil . In it he kindly provides two scripts (mount-VHD.ps1 and Unmount-VHD.ps1) along with a REG file...
on
25 Jul 2008
Blog Post:
Scripting: Check if a W2K3 box is running Terminal Server in Application Mode
Gavin McShera
I was recently asked (two hours ago) how to tell if a server was running Terminal Services in Application Mode. The customer wanted to run a different script if users were logged into a Terminal Server. They had looked through the registry and came across the TSEnabled value in : HKLM\Software...
on
6 Jun 2008
Blog Post:
Windows 2000 Terminal Server : Modify RDP-tcp permissions via script
Gavin McShera
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...
on
8 May 2008