Powershell Transcription during an SCCM Task Sequence
greetings community,
this question has windows powershall , system center configuration manager task sequences - if it's in wrong forum, please move appropriate :)
i've got powershell scripts executing task sequence step (command: powershell.exe -file <path>) , use transcription logging. outside of task sequence, transcription works great. however, none of script output being transcribed when scripts execute task sequence. it is, however, being logged smsts.log. blog linked below seem indicate there's nothing special transcription in task sequence, nevertheless, without transcription log. quite use file-cmdlets force logging seperately or other methods - that's not intent. pasted below short test script calling one-step task sequence should write ttwo lines transcript, can see in pasted transcript, no lines written.
help? :) thanks!
::script content::
#transcription testing #create ts env com object $ts = new-object -comobject "microsoft.sms.tsenvironment" #define log path $logpath = $ts.value('_smstslogpath') $logfile = "$($myinvocation.mycommand).log" $log = "$logpath\$logfile" #start logging start-transcript $log -force "this line should transcribed" write-host "this line should transcribed" write-output "not sure one" stop-transcript exit 0
::transcript content::
********************** windows powershell transcript start start time: 20100806133804 username : d3test\system machine : d3test-win7 (microsoft windows nt 6.1.7600.0) ********************** ********************** windows powershell transcript end end time: 20100806133804 **********************
::smstslog content::
start executing instruciton. instruction name: transcription testing. instruction pointer: 1 tsmanager 8/6/2010 2:16:41 pm 2260 (0x08d4) set global environment variable _smstscurrentactionname=transcription testing tsmanager 8/6/2010 2:16:41 pm 2260 (0x08d4) set global environment variable _smstsnextinstructionpointer=1 tsmanager 8/6/2010 2:16:41 pm 2260 (0x08d4) set local default variable smstsdisablewow64redirection tsmanager 8/6/2010 2:16:41 pm 2260 (0x08d4) set local default variable _smstsruncommandlineasuser tsmanager 8/6/2010 2:16:41 pm 2260 (0x08d4) set local default variable smstsruncommandlineuserpassword tsmanager 8/6/2010 2:16:41 pm 2260 (0x08d4) set global environment variable _smstslogpath=c:\windows\system32\ccm\logs\smstslog tsmanager 8/6/2010 2:16:41 pm 2260 (0x08d4) expand string: smsswd.exe /run: powershell.exe -file "c:\temp\sal\transcription.ps1" tsmanager 8/6/2010 2:16:41 pm 2260 (0x08d4) expand string: tsmanager 8/6/2010 2:16:41 pm 2260 (0x08d4) start executing command line: smsswd.exe /run: powershell.exe -file "c:\temp\sal\transcription.ps1" tsmanager 8/6/2010 2:16:41 pm 2260 (0x08d4) !--------------------------------------------------------------------------------------------! tsmanager 8/6/2010 2:16:41 pm 2260 (0x08d4) expand string: winpeandfullos tsmanager 8/6/2010 2:16:41 pm 2260 (0x08d4) executing command line: smsswd.exe /run: powershell.exe -file "c:\temp\sal\transcription.ps1" tsmanager 8/6/2010 2:16:41 pm 2260 (0x08d4) =======================[ smsswd.exe ] ======================= installsoftware 8/6/2010 2:16:41 pm 1732 (0x06c4) packageid = '' installsoftware 8/6/2010 2:16:41 pm 1732 (0x06c4) basevar = '', continueonerror='' installsoftware 8/6/2010 2:16:41 pm 1732 (0x06c4) swdaction = '0001' installsoftware 8/6/2010 2:16:41 pm 1732 (0x06c4) working dir 'not set' installsoftware 8/6/2010 2:16:41 pm 1732 (0x06c4) executing command line: run command line installsoftware 8/6/2010 2:16:41 pm 1732 (0x06c4) process completed exit code 0 installsoftware 8/6/2010 2:16:42 pm 1732 (0x06c4) transcript started, output file c:\windows\system32\ccm\logs\smstslog\transc installsoftware 8/6/2010 2:16:42 pm 1732 (0x06c4) ription.ps1.log installsoftware 8/6/2010 2:16:42 pm 1732 (0x06c4) line should transcribed installsoftware 8/6/2010 2:16:42 pm 1732 (0x06c4) line should transcribed installsoftware 8/6/2010 2:16:42 pm 1732 (0x06c4) not sure one installsoftware 8/6/2010 2:16:42 pm 1732 (0x06c4) transcript stopped, output file c:\windows\system32\ccm\logs\smstslog\transc installsoftware 8/6/2010 2:16:42 pm 1732 (0x06c4) ription.ps1.log installsoftware 8/6/2010 2:16:42 pm 1732 (0x06c4) command line returned 0 installsoftware 8/6/2010 2:16:42 pm 1732 (0x06c4) process completed exit code 0 tsmanager 8/6/2010 2:16:42 pm 2260 (0x08d4) !--------------------------------------------------------------------------------------------! tsmanager 8/6/2010 2:16:42 pm 2260 (0x08d4) complete action (transcription testing) exit win32 code 0 tsmanager 8/6/2010 2:16:42 pm 2260 (0x08d4)
there configmgr forums can you, have looks good, when compared link provided.
i'm not sure what's missing. may want post comment on blog and/or general/scripting configmgr forum also.
Windows Server > Windows PowerShell
Comments
Post a Comment