Thursday, July 7, 2011

Final Configuration Script

I have been trying to use Johan Arwidmark's Final Configuration Script under MDT 2010 p1 and it was consistently failing to achive one of its goals, deleting the MININT directory.  It seems the reason for this was that when it attempted to do so some of the files were still in memory and therefore had open file handles.  I made some changes to the script(s) to resolve this problem, by introducing a longer delay before attempting to do the cleanup.  This seems to make the success of the deletion much more likely.  This is probably not the ideal solution, but it works so I am going with it.
z-finalconfig.wsf
z-finalconfig.hta

Thursday, June 2, 2011

Suppress Printer POPUP Mesages in Windows 7

Suppress Printer POPUP Mesages in Windows 7:
I banged my head againt the wall for a half hour on this so I thought I'd post it in case anyone else needs it. I was looking for a modern advanced method of dealing with this turns out the solution is somewhat old school.  Same way I did it in my XP environment.
Set Registry Keys:
"HKEY_CURRENT_USER\Printers\Settings\EnableBalloonNotificationsLocal" = “0”
"HKEY_CURRENT_USER\Printers\Settings\EnableBalloonNotificationsRemote"=”0”

Every Google Search turned up, garbage on doing this even in most cases saying it couldn't be done from the client it had to be done on the server, per printer.  I know I'll never get all of my server people to go change all the queues on all servers world wide.

Wednesday, May 25, 2011

Setting Computer Description using the field in MDT Wizard

The MDT Wizard .hta has a hidden field for setting the ComputerDescription.  Using the WizardEditor this field can be made visable in the Wizard and then you can add code to your deployment to consume the data entered in the field.

Here is a simple script based on ZTITemplate.wsf for consuming the ComputerDescription task Sequence variable. Save the script in your %SCRIPTROOT% folder along with the other ZTI Scripts as ZTIDESCRIPTION.wsf.  Add a Task Sequence Step to call the script somewhere in your Task Sequence.

<job id="ZTIDescription">
<script language="VBScript" src="ZTIUtility.vbs"/>
<script language="VBScript">

' //***************************************************************************
' // ***** Script Header *****
' //
' // Solution: Solution Accelerator for Microsoft Deployment
' // File: ZTIDescription.wsf
' //
' // Purpose: Set Computer Description in AD based on the MDT Wizard Computer Description Field
' //
' // Usage: cscript ZTIDescription.wsf [/debug:true]
' //
' // Customer Build Version: 1.0.0
' // Customer Script Version: 1.0.0
' // Customer History:
' //
' // ***** End Header *****
' //***************************************************************************

'//----------------------------------------------------------------------------
'//
'// Global constant and variable declarations
'//
'//----------------------------------------------------------------------------

Option Explicit

Dim iRetVal

'//----------------------------------------------------------------------------
'// End declarations
'//----------------------------------------------------------------------------

'//----------------------------------------------------------------------------
'// Main routine
'//----------------------------------------------------------------------------

On Error Resume Next
iRetVal = ZTIProcess
ProcessResults iRetVal
On Error Goto 0

'//---------------------------------------------------------------------------
'//
'// Function: ZTIProcess()
'//
'// Input: None
'//
'// Return: Success - 0
'// Failure - non-zero
'//
'// Purpose: Perform main ZTI processing
'//
'//---------------------------------------------------------------------------
Function ZTIProcess()

     iRetVal = Success

     ZTIProcess = iRetval

     Dim objSysInfo, objComputer, strMessage, strDescription, g_strUserName
     g_strUserName = oEnvironment.Item("COMPUTERDESCRIPTION")
     Set objSysInfo = CreateObject("ADSystemInfo")
     Set objComputer = GetObject("LDAP://" & objSysInfo.ComputerName)

     strDescription = g_strUserName

     objComputer.Description = strDescription
     objComputer.SetInfo

End Function

</script>
</job>

Tuesday, May 24, 2011

Its what all the Cool Kids are doing

Yes I realize that the title of the first post isn't exactly original.  Anyway it does seem to be the thing to do if you have knowledge in my field of Windows OS deployment and some tips, tricks and cool "hey look what I can do" to share to have a Blog to post those things to, so here I am.

I haven't much to say at the moment but I promise I'll post something cool that I have already shared with some fellow deployment guys in Facebook tomorrow.  My train is about to hit the station.