Jump to content


Search the Community

Showing results for tags 'Script'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Cloud
    • Azure
    • Microsoft Intune
    • Office 365
    • Windows 365
  • General Stuff
    • General Chat
    • Events
    • Site News
    • Official Forum Supporters
    • Windows News
    • Suggestion box
    • Jobs
  • MDT, SMS, SCCM, Current Branch &Technical Preview
    • How do I ?
    • Microsoft Deployment Toolkit (MDT)
    • SMS 2003
    • Configuration Manager 2007
    • Configuration Manager 2012
    • System Center Configuration Manager (Current Branch)
    • Packaging
    • scripting
    • Endpoint Protection
  • Windows Client
    • how do I ?
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows Vista
    • Windows XP
    • windows screenshots
  • Windows Server
    • Windows Server General
    • Active Directory
    • Microsoft SQL Server
    • System Center Operations Manager
    • KMS
    • Windows Deployment Services
    • NAP
    • Failover Clustering
    • PKI
    • Hyper V
    • Exchange
    • IIS/apache/web server
    • System Center Data Protection Manager
    • System Center Service Manager
    • System Center App Controller
    • System Center Virtual Machine Manager
    • System Center Orchestrator
    • Lync
    • Application Virtualization
    • Sharepoint
    • WSUS

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests

Found 23 results

  1. Hello. There is the following command @echo off setLocal Enabledelayedexpansion for %%d in (c d e f g h i j k l m n o p q r s t u v w x y z) do ( if exist %%d:\"STORE USER ARM"\ ( xcopy %%d:"\User State Migration Tool\*.*" /e /v /y C:\Windows\USMT\ If not exist %%d:\Store Mkdir %%d:\Store c: cd C:\Windows\USMT\Amd64 scanstate.exe %%d:\Store\%ComputerName% /c /o /ue:%OSDCOMPUTERNAME%\* /hardlink /nocompress /i:MigApp.xml /i:MigCustom.xml /i:MigUser.xml /i:MigProgFiles.xml /v:5 /l:%%d:\Store\%ComputerName%\logs\scanstate.log /progress:%%d:\Store\%ComputerName%\logs\scanstate_progress.log )) The idea is to run the task sequence from a flash drive and save user data on the same flash drive. The script works, but does not work through the sequence. How does one make this option or maybe there is an alternative?
  2. Hi, I thought I would advertise my book here as I need all the shout-outs I can get! The book is entitled: ConfigMgr - An Administrator's Guide to Deploying Applications using PowerShell I think it's pretty good, but then again, I'm probably biased. You can get it here: https://leanpub.com/configmgr-DeployUsingPS Sorry about this advert - I hate adverts too. Sometimes, you just...gotta.
  3. Here is script...... Copy-Item "\\fileserver\SCCM\Resources\Laserfiche\Laserfiche.url" -Destination "C:\Users\Public\Desktop" Shortcut never appears.
  4. Hi all, Having an issue re creating our build process in the new SCCM environment i've been building lately. During the deployment of an OS we have two visual basic scripts that run after the OS has been booted into for the first time that add the PC to the correct AD groups and starts the 802.1x service (i know there is probably other ways of doing this but i'd rather replicate than redesign). This works flawlwessly on our current live SCCM but in the new one, which is working with Windows 10 rather than 7, i cannot get it to run during the TS, i just receieve an incorrect function error, whereas if i run the script manually on the Windows 10 machine it works as expected. I've attached some screenshots that show the position in the task sequence of the script step, and the command line im using to call it (also copied from our current live environment) The content is on the DPs correctly as the unattend file that runs during the initial OS setup is also called from that same package. Thanks Phil
  5. Hello to everyone, I'm beginner. The printer server has changed recently. We are using a new printer server. How can I remove the old printer on all clients from SCCM?
  6. I created an application in SCCM, which is initiated by a batch script - it launches MRT security scan - The computer on which I run the application is scanned successfully, the MRT also creates a success log but in the end in Software Center the application is visible as failed. The application is in "installing" state untill the scan is finished, when the actions are finished it fails - it does not time out as the timeout is set to arround 500 minutes. What I thought of is adding "exit /b 0" to give SCCM the "error 0" exit code - unfortunately no success. The batch file has in it: %SYSTEMROOT%\System32\mrt.exe /F:Y /Q for /f "tokens=2 delims==" %%I in ('wmic os get localdatetime /format:list') do set datetime=%%I set datetime=%datetime:~0,4%-%datetime:~4,2%-%datetime:~6,2%_%datetime:~8,2%-%datetime:~10,2%-%datetime:~12,2% echo f | xcopy /f /y "%SYSTEMROOT%\Debug\"mrt.log "\\servername\log_folder\"%datetime%-%computername%scan.log exit /b 0 Now when I look at the script - maybe I should put the MRT script in one batch and create a 2nd batch which would call the MRT scan script and on the end of this batch I should have the exit /b 0 ? What do you think?
  7. m trying to write a powershell script that will remove the computer running it from sccm during a task sequence. I have the proper server and site name in but it always returns a null resID during the task sequence but when i change it to be used in a normal powershell script in the ise it works just fine. I have the computer name saved as a task sequence variable OSDComputerName earlier in the task sequence. Can anyone help me out? $SCCMServer = 'SERVER' $sitename = 'SITE' $tsenv = New-Object -COMObject Microsoft.SMS.TSEnvironment $computername=$Tsenv.value("OSDComputerName") $resID = Get-WmiObject -computername $SCCMServer -credential $credential -query "select resourceID from sms_r_system where Name like `'$computername`'" -Namespace "root\sms\site_$sitename" if ($resID.ResourceId -eq $null) {$msgboxValue = "The PC does not exist in SCCM"} else { $comp = [wmi]"\\$SCCMServer\root\sms\site_$($sitename):sms_r_system.resourceID=$($resID.ResourceId)" $comp.psbase.delete() #// deletion successfull? if($?) {$msgboxValue = "Successfully deleted $computername"} else {$msgboxValue = "Could not delete $computername, error: $($error[0])"} } [void][system.Reflection.Assembly]::LoadWithPartialName('Microsoft.VisualBasic') [Microsoft.VisualBasic.Interaction]::msgbox($msgboxValue, 0, "Delete from SCCM Status")
  8. Hello, Would anybody be able to assist me with instructions on how I can distribute a folder to "Users, Public, Public Desktop" I would like to add this to a functional existing task sequence, but I'm lacking the knowledge to do so. Any assistance from the users of this awesome forum would be GREATLY appreciated.
  9. We are a full windows shop with Dell computers. We use GPO and a login script to map printers for specific pc's. Recently we have had more and more domain pc's installing printers that are not even in the area of this pc. The pc or user are not members of the group that should get these printers. We have checked all the GPO's we can think of, but it seems like everyday there is another pc getting these printers installed. Does anyone have an idea of what is happening here? Here is an example of the script that we are running. Option Explicit dim WshNetwork Sub printers Set WshNetwork = CreateObject("WScript.Network") WshNetwork.AddWindowsPrinterConnection \\SERVER\PR03 WshNetwork.SetDefaultPrinter \\SERVER\PR03 WshNetwork.AddWindowsPrinterConnection \\SERVER\PR02 End Sub Call printers
  10. The script below will tell me the uptime on PC's. I want to add the language that says if Uptime is greater than X amount of days then it will send a reboot in 15 Mins. Any help would be appreciated. # This PS script provides Uptime and Pingstatus for list of computers. ####################################################################### $names = Get-Content "C:\Test\computers.txt" @( foreach ($name in $names) { if ( Test-Connection -ComputerName $name -Count 1 -ErrorAction SilentlyContinue ) { $wmi = gwmi Win32_OperatingSystem -computer $name $LBTime = $wmi.ConvertToDateTime($wmi.Lastbootuptime) [TimeSpan]$uptime = New-TimeSpan $LBTime $(get-date) Write-output "$name Uptime is $($uptime.days) Days" Write-Host "$name Uptime is $($uptime.days) Days" -ForegroundColor Green } else { Write-output "$name is not pinging" Write-Host "$name is not pinging" -ForegroundColor Red } } ) | Out-file -FilePath "C:\Test\results1.csv"
  11. Just wrote a basic script for importing PST files into mailboxes, that I want to share with the community. It is designed to check for PST files in the specified folder. Based on the filenames (of the PST files) it then verifies that a mailbox can be found. This is done by using the filename and adding the @ character and the domain value into a string value. If there is a match, it returns a value of $True and the script continues with running the New-MailboxImportRequest cmdlet. The script is written just as basic as it can, it provides much information about values and what’s going on. The most recent updated script can be downloaded here I hope this will help you to import the PST files into the mailboxes Ps. Sorry for the word-wrap, see the script file instead of copy the script code below Changelog v1.1 – Updated the $name variable due to issues with filenames got trimmed away. Also added so that if errors exists, they will be sent to a errorlog. Thanks to Chris Steding! # +======================================================================= # | Blog: http://www.testlabs.se/blog # | Twitter: @jonand82 # | ============================================= # | Filename: Import-PST v1.1.ps1 # | # | CREATED BY: Jonas Andersson # | FUNCTION: Imports PST files into mailboxes, matching on emailaddresses # | # | CHANGE LOG: # | v1.0 - 2013-09-18, *Created* # | v1.1 - 2013-09-22, *Update of $name variable* # | # | Required permissions (RBAC) Role: “Mailbox Import Export”, example: New-Managementroleassignment –Role “Mailbox Import Export” –User “Administrator” # +======================================================================= # Load snapin Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010 -ErrorAction 'SilentlyContinue' # Variables $error.clear() $errorlog = "C:\temp\errorlog.txt" $pstpath = "C:\temp" $domain = "testlabs.se" $servername = "tlex01" $files = Get-ChildItem -Path $pstpath -Filter *.pst Write-Host $files if (($files -ne $null) -or ($files -eq "")) { foreach ($i in $files) { $name = $i.BaseName $id = $name + "@" + $domain $filename = $i.FullName $filename = $filename.Replace(":","$") $uncfilepath = "\\" + $servername + "\" + $filename Write-Host "#################################################################" Write-Host "Filename:" $i -ForegroundColor 'Cyan' Write-Host "UNC path:" $uncfilepath -ForegroundColor 'DarkCyan' Write-Host "Emailaddress:" $id -ForegroundColor 'DarkGreen' $MailboxExists = [bool](Get-Mailbox -Identity $id -ErrorAction SilentlyContinue) if ($MailboxExists -eq $false) { Write-Host "Found mailbox:" $MailboxExists -ForegroundColor 'Red' Write-Host "Make sure to match filename to mailaddress, without @domain" -ForegroundColor 'Red' } if ($MailboxExists -eq $true) { Write-Host "Found mailbox:" $MailboxExists -ForegroundColor 'Green' Write-Host "Importing $uncfilepath into mailbox: $id" -ForegroundColor 'White' New-MailboxImportRequest -Mailbox $id -FilePath $uncfilepath } Write-Host "" } } else { Write-Host "No PST files found" } if ($error -ne $null) { $error | Out-File -FilePath $errorlog -Append Write-Host "See $errorlog for errors" -ForegroundColor 'Red' }
  12. Hey Guys!!! I apologise in advance if this is a stupid question, I'm quite new to this stuff so please go easy on me I have been given the task of rolling out a software upgrade for a piece of company software. Basically what needs to happen is (in this order): 1. Install a file from an MSI ( I have been given the MSI file which is in the SMS server package store ) 2. Run this script "C:\Windows\System32>MsiExec.exe /x {205CFDD2-34CF-4141-93AA-55FCDB7BB012} /q" (uninstalls the old one) 3. Run this RegKey file "regedit.exe /s \\aumxxxxxxxxx\smspkgg$\xxxxxxxx\settings.reg" (Adds the server settings to the new one - ATTACHED) Is there anyway to compile all these steps into one package where it can follow these steps? There are also 2 .mst files in the folder which im unsure of how to open to see what they are. Let me know if you need any further information. Settings - ANG.txt
  13. I am working on a task within an OS build process to disable the previous computer object in AD. Within my OSD task I have the option to change the system name. When the name is changed I set a variable to trigger a script to disable the object within the full OS portion of the task sequence. (The task is setup after the ConfigMgr agent is installed.) Because, the local system does not have access to AD I need to use a service account to disable the object. No matter how I run the script I get an error code 1 from the return of the script. I have triple checked the password and the accounts access. The script runs fine from the command line once the OS starts. I just can not seem to get it to work during the task. Section of the SMSTS.LOG <![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="09:21:03.636+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="instruction.cxx:2957"> <![LOG[Expand a string: WinPEandFullOS]LOG]!><time="09:21:03.636+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:782"> <![LOG[Executing command line: smsswd.exe /run: REG ADD HKLM\Software\Microsoft\COM3 /v REGDBVersion /t REG_BINARY /d 010000 /f]LOG]!><time="09:21:03.636+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="commandline.cpp:805"> <![LOG[=======================[ smsswd.exe ] =======================]LOG]!><time="09:21:03.667+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1268" file="main.cpp:303"> <![LOG[PackageID = '']LOG]!><time="09:21:03.667+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1268" file="main.cpp:332"> <![LOG[BaseVar = '', ContinueOnError='']LOG]!><time="09:21:03.667+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1268" file="main.cpp:333"> <![LOG[SwdAction = '0001']LOG]!><time="09:21:03.667+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1268" file="main.cpp:334"> <![LOG[Working dir 'not set']LOG]!><time="09:21:03.667+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1268" file="runcommandline.cpp:542"> <![LOG[Executing command line: Run command line]LOG]!><time="09:21:03.667+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1268" file="commandline.cpp:805"> <![LOG[Process completed with exit code 0]LOG]!><time="09:21:03.714+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1268" file="commandline.cpp:1102"> <![LOG[The operation completed successfully.]LOG]!><time="09:21:03.714+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1268" file="runcommandline.cpp:34"> <![LOG[]LOG]!><time="09:21:03.714+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1268" file="runcommandline.cpp:34"> <![LOG[Command line returned 0]LOG]!><time="09:21:03.714+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1268" file="runcommandline.cpp:565"> <![LOG[Process completed with exit code 0]LOG]!><time="09:21:03.729+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="commandline.cpp:1102"> <![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="09:21:03.729+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="instruction.cxx:3010"> <![LOG[Successfully complete the action (Temp Set RegDBVersion to 1) with the exit win32 code 0]LOG]!><time="09:21:03.729+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="instruction.cxx:3036"> <![LOG[Sending status message . . .]LOG]!><time="09:21:03.729+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="utility.cxx:292"> <![LOG[Send a task execution status message SMS_TSExecution_ActionCompleteInfo]LOG]!><time="09:21:03.729+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="utility.cxx:314"> <![LOG[Formatted header:]LOG]!><time="09:21:03.745+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="libsmsmessaging.cpp:1500"> <![LOG[<Msg SchemaVersion="1.1" ReplyCompression="zlib"><ID/><SourceID>GUID:4CCE6282-97EB-4447-BACF-E71E611551F3</SourceID><SourceHost/><TargetAddress>mp:[http]MP_StatusManager</TargetAddress><ReplyTo>direct:OSD</ReplyTo><Priority>3</Priority><Timeout>3600</Timeout><SentTime>2013-09-20T13:21:03Z</SentTime><Protocol>http</Protocol><Body Type="ByteRange" Offset="0" Length="2202"/><Hooks/><Payload Type="inline"/><TargetHost/><TargetEndpoint>StatusReceiver</TargetEndpoint><ReplyMode>Sync</ReplyMode><CorrelationID/></Msg> ]LOG]!><time="09:21:03.745+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="libsmsmessaging.cpp:1501"> <![LOG[Set a global environment variable _SMSTSLastActionRetCode=0]LOG]!><time="09:21:03.760+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:668"> <![LOG[Set a global environment variable _SMSTSLastActionSucceeded=true]LOG]!><time="09:21:03.760+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:668"> <![LOG[Clear local default environment]LOG]!><time="09:21:03.760+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:807"> <![LOG[Updated security on object C:\_SMSTaskSequence.]LOG]!><time="09:21:03.885+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:829"> <![LOG[Set a global environment variable _SMSTSNextInstructionPointer=67]LOG]!><time="09:21:03.885+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:668"> <![LOG[Set a TS execution environment variable _SMSTSNextInstructionPointer=67]LOG]!><time="09:21:03.885+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:386"> <![LOG[Set a global environment variable _SMSTSInstructionStackString=0 57 64]LOG]!><time="09:21:03.885+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:668"> <![LOG[Set a TS execution environment variable _SMSTSInstructionStackString=0 57 64]LOG]!><time="09:21:03.885+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:414"> <![LOG[Save the current environment block]LOG]!><time="09:21:03.885+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:833"> <![LOG[Start executing an instruciton. Instruction name: Disable old Computer Name in AD. Instruction pointer: 67]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="engine.cxx:117"> <![LOG[Set a global environment variable _SMSTSCurrentActionName=Disable old Computer Name in AD]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:668"> <![LOG[Set a global environment variable _SMSTSNextInstructionPointer=67]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:668"> <![LOG[Set a local default variable SMSTSDisableWow64Redirection]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:700"> <![LOG[Set a local default variable _SMSTSRunCommandLineAsUser]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:700"> <![LOG[Set a local default variable SMSTSRunCommandLineUserName]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:700"> <![LOG[Set a local default variable SMSTSRunCommandLineUserPassword]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:700"> <![LOG[Set a global environment variable _SMSTSLogPath=C:\Windows\SysWOW64\CCM\Logs\SMSTSLog]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:668"> <![LOG[Evaluating an AND expression]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="instruction.cxx:592"> <![LOG[Evaluating a variable condition expression]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="instruction.cxx:775"> <![LOG[Expand a string: notEquals]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:782"> <![LOG[Expand a string: OldComputerName]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:782"> <![LOG[Expand a string: !SameName!]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:782"> <![LOG[The condition for the action (Disable old Computer Name in AD) is evaluated to be true]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="instruction.cxx:2912"> <![LOG[Expand a string: smsswd.exe /run: %SYSTEMROOT%\SysWOW64\wscript.exe "%ScriptRoot%\DisableComputer.vbs"]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:782"> <![LOG[Expand a string: ]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:782"> <![LOG[Start executing the command line: smsswd.exe /run: %SYSTEMROOT%\SysWOW64\wscript.exe "%ScriptRoot%\DisableComputer.vbs"]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="instruction.cxx:2928"> <![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="instruction.cxx:2957"> <![LOG[Expand a string: WinPEandFullOS]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:782"> <![LOG[Executing command line: smsswd.exe /run: %SYSTEMROOT%\SysWOW64\wscript.exe "%ScriptRoot%\DisableComputer.vbs"]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="commandline.cpp:805"> <![LOG[=======================[ smsswd.exe ] =======================]LOG]!><time="09:21:03.979+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1776" file="main.cpp:303"> <![LOG[PackageID = '']LOG]!><time="09:21:03.979+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1776" file="main.cpp:332"> <![LOG[BaseVar = '', ContinueOnError='']LOG]!><time="09:21:03.979+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1776" file="main.cpp:333"> <![LOG[SwdAction = '0001']LOG]!><time="09:21:03.979+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1776" file="main.cpp:334"> <![LOG[Getting linked token]LOG]!><time="09:21:04.135+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1776" file="runcommandline.cpp:334"> <![LOG[failed to get the token information]LOG]!><time="09:21:04.135+240" date="09-20-2013" component="InstallSoftware" context="" type="3" thread="1776" file="runcommandline.cpp:341"> <![LOG[Working dir 'not set']LOG]!><time="09:21:04.930+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1776" file="runcommandline.cpp:542"> <![LOG[Executing command line: Run command line]LOG]!><time="09:21:04.930+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1776" file="commandline.cpp:805"> <![LOG[Process completed with exit code 1]LOG]!><time="09:21:05.149+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1776" file="commandline.cpp:1102"> <![LOG[Microsoft (R) Windows Script Host Version 5.8]LOG]!><time="09:21:05.149+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1776" file="runcommandline.cpp:34"> <![LOG[Copyright (C) Microsoft Corporation. All rights reserved.]LOG]!><time="09:21:05.149+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1776" file="runcommandline.cpp:34"> <![LOG[]LOG]!><time="09:21:05.149+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1776" file="runcommandline.cpp:34"> <![LOG[CScript Error: Loading script "C:\_SMSTaskSequence\WDPackage\Scripts\DisableComputer.vbs" failed (Access is denied. ).]LOG]!><time="09:21:05.149+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1776" file="runcommandline.cpp:34"> <![LOG[Command line returned 1]LOG]!><time="09:21:05.149+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1776" file="runcommandline.cpp:565"> <![LOG[Process completed with exit code 1]LOG]!><time="09:21:05.258+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="commandline.cpp:1102"> <![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="09:21:05.258+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="instruction.cxx:3010"> <![LOG[Failed to run the action: Disable old Computer Name in AD. Incorrect function. (Error: 00000001; Source: Windows)]LOG]!><time="09:21:05.258+240" date="09-20-2013" component="TSManager" context="" type="3" thread="1540" file="instruction.cxx:3101"> <![LOG[Sending status message . . .]LOG]!><time="09:21:05.258+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="utility.cxx:292"> <![LOG[Send a task execution status message SMS_TSExecution_ActionFailError]LOG]!><time="09:21:05.258+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="utility.cxx:314"> <![LOG[Formatted header:]LOG]!><time="09:21:05.289+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="libsmsmessaging.cpp:1500"> <![LOG[<Msg SchemaVersion="1.1" ReplyCompression="zlib"><ID/><SourceID>GUID:4CCE6282-97EB-4447-BACF-E71E611551F3</SourceID><SourceHost/><TargetAddress>mp:[http]MP_StatusManager</TargetAddress><ReplyTo>direct:OSD</ReplyTo><Priority>3</Priority><Timeout>3600</Timeout><SentTime>2013-09-20T13:21:05Z</SentTime><Protocol>http</Protocol><Body Type="ByteRange" Offset="0" Length="3302"/><Hooks/><Payload Type="inline"/><TargetHost/><TargetEndpoint>StatusReceiver</TargetEndpoint><ReplyMode>Sync</ReplyMode><CorrelationID/></Msg> ]LOG]!><time="09:21:05.289+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="libsmsmessaging.cpp:1501"> <![LOG[Set a global environment variable _SMSTSLastActionRetCode=1]LOG]!><time="09:21:05.305+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:668"> <![LOG[Set a global environment variable _SMSTSLastActionSucceeded=false]LOG]!><time="09:21:05.305+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:668"> <![LOG[Clear local default environment]LOG]!><time="09:21:05.320+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:807"> <![LOG[Let the parent group (Disable Old Computer Name) decides whether to continue execution]LOG]!><time="09:21:05.367+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="instruction.cxx:3210"> <![LOG[Let the parent group (Setup Operating System) decide whether to continue execution]LOG]!><time="09:21:05.367+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="instruction.cxx:2461"> <![LOG[Let the parent group (Image Install) decide whether to continue execution]LOG]!><time="09:21:05.367+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="instruction.cxx:2461"> <![LOG[The execution of the group (Image Install) has failed and the execution has been aborted. An action failed. Operation aborted (Error: 80004004; Source: Windows)]LOG]!><time="09:21:05.367+240" date="09-20-2013" component="TSManager" context="" type="3" thread="1540" file="instruction.cxx:2424"> <![LOG[Failed to run the last action: Disable old Computer Name in AD. Execution of task sequence failed. Incorrect function. (Error: 00000001; Source: Windows)]LOG]!><time="09:21:05.367+240" date="09-20-2013" component="TSManager" context="" type="3" thread="1540" file="engine.cxx:214"> <![LOG[Sending status message . . .]LOG]!><time="09:21:05.367+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="utility.cxx:292"> <![LOG[Send a task execution status message SMS_TSExecution_TaskSequenceFailError]LOG]!><time="09:21:05.367+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="utility.cxx:314"> <![LOG[Formatted header:]LOG]!><time="09:21:05.414+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="libsmsmessaging.cpp:1500"> <![LOG[<Msg SchemaVersion="1.1" ReplyCompression="zlib"><ID/><SourceID>GUID:4CCE6282-97EB-4447-BACF-E71E611551F3</SourceID><SourceHost/><TargetAddress>mp:[http]MP_StatusManager</TargetAddress><ReplyTo>direct:OSD</ReplyTo><Priority>3</Priority><Timeout>3600</Timeout><SentTime>2013-09-20T13:21:05Z</SentTime><Protocol>http</Protocol><Body Type="ByteRange" Offset="0" Length="2106"/><Hooks/><Payload Type="inline"/><TargetHost/><TargetEndpoint>StatusReceiver</TargetEndpoint><ReplyMode>Sync</ReplyMode><CorrelationID/></Msg> ]LOG]!><time="09:21:05.414+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="libsmsmessaging.cpp:1501"> <![LOG[Launching command shell.]LOG]!><time="09:32:51.151+240" date="09-20-2013" component="OSDSetupHook" context="" type="1" thread="2020" file="debugwindow.cpp:202"> <![LOG[executing command: C:\Windows\system32\cmd.exe /k]LOG]!><time="09:32:51.182+240" date="09-20-2013" component="OSDSetupHook" context="" type="1" thread="2020" file="debugwindow.cpp:63"> <![LOG[executed command: C:\Windows\system32\cmd.exe /k]LOG]!><time="09:32:51.229+240" date="09-20-2013" component="OSDSetupHook" context="" type="1" thread="2020" file="debugwindow.cpp:80"> <![LOG[Task Sequence Engine failed! Code: enExecutionFail]LOG]!><time="09:33:02.664+240" date="09-20-2013" component="TSManager" context="" type="3" thread="1540" file="tsmanager.cpp:767"> <![LOG[****************************************************************************]LOG]!><time="09:33:02.664+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="tsmanager.cpp:789"> <![LOG[Task sequence execution failed with error code 80004005]LOG]!><time="09:33:02.664+240" date="09-20-2013" component="TSManager" context="" type="3" thread="1540" file="tsmanager.cpp:790"> <![LOG[Cleaning Up. Removing Authenticator]LOG]!><time="09:33:02.664+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="tsmanager.cpp:578"> <![LOG[Cleaning up task sequence folder]LOG]!><time="09:33:02.695+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:1404"> <![LOG[Successfully unregistered Task Sequencing Environment COM Interface.]LOG]!><time="09:33:03.225+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="environmentlib.cpp:869"> <![LOG[Executing command line: "C:\Windows\SysWOW64\CCM\TsProgressUI.exe" /Unregister]LOG]!><time="09:33:03.225+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="commandline.cpp:805"> <![LOG[==========[ TsProgressUI started in process 2236 ]==========]LOG]!><time="09:33:03.631+240" date="09-20-2013" component="TsProgressUI" context="" type="1" thread="744" file="winmain.cpp:327"> <![LOG[Unregistering COM classes]LOG]!><time="09:33:03.631+240" date="09-20-2013" component="TsProgressUI" context="" type="1" thread="744" file="winmain.cpp:202"> <![LOG[Shutdown complete.]LOG]!><time="09:33:03.693+240" date="09-20-2013" component="TsProgressUI" context="" type="1" thread="744" file="winmain.cpp:520"> <![LOG[Process completed with exit code 0]LOG]!><time="09:33:03.709+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="commandline.cpp:1102"> <![LOG[Successfully unregistered TS Progress UI.]LOG]!><time="09:33:03.709+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:1963"> <![LOG[Failed to delete registry value HKLM\Software\Microsoft\SMS\Task Sequence\Package. Error code 0x80070002]LOG]!><time="09:33:03.912+240" date="09-20-2013" component="TSManager" context="" type="2" thread="1540" file="utils.cpp:3099"> <![LOG[Start to cleanup TS policy]LOG]!><time="09:33:03.927+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="utils.cpp:2481"> <![LOG[End TS policy cleanup]LOG]!><time="09:33:04.489+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="utils.cpp:2530"> <![LOG[Start to evaluate TS policy with lock]LOG]!><time="09:33:04.738+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="policyutil.cpp:8015"> <![LOG[Updating settings in \\alftestdeploy09\root\ccm\policy\machine\actualconfig]LOG]!><time="09:33:04.754+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="policyutil.cpp:6237"> <![LOG[Machine RequestedConfig policy instance(s) : 327]LOG]!><time="09:33:04.988+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="policyutil.cpp:6382"> <![LOG[Deleted setting 'CCM_ClientActions.ActionID="{00000000-0000-0000-0000-000000000113}"'.]LOG]!><time="09:33:05.160+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="policyutil.cpp:6437"> <![LOG[Deleted setting 'CCM_ClientActions.ActionID="{00000000-0000-0000-0000-000000000108}"'.]LOG]!><time="09:33:05.175+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="policyutil.cpp:6437"> <![LOG[Deleted setting 'CCM_Scheduler_ScheduledMessage.ScheduledMessageID="{00000000-0000-0000-0000-000000000113}"'.]LOG]!><time="09:33:05.191+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="policyutil.cpp:6437"> <![LOG[Deleted setting 'CCM_Scheduler_ScheduledMessage.ScheduledMessageID="{00000000-0000-0000-0000-000000000114}"'.]LOG]!><time="09:33:05.191+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="policyutil.cpp:6437"> <![LOG[Deleted setting 'CCM_Scheduler_ScheduledMessage.ScheduledMessageID="{00000000-0000-0000-0000-000000000108}"'.]LOG]!><time="09:33:05.191+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="policyutil.cpp:6437"> <![LOG[Deleted setting 'CCM_NetworkAccessAccount.SiteSettingsKey=1'.]LOG]!><time="09:33:05.206+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="policyutil.cpp:6437"> <![LOG[Deleted setting 'CCM_SoftwareDistributionClientConfig.SiteSettingsKey=1'.]LOG]!><time="09:33:05.238+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="policyutil.cpp:6437"> <![LOG[Deleted setting 'CCM_SoftwareUpdatesClientConfig.SiteSettingsKey=1'.]LOG]!><time="09:33:05.238+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="policyutil.cpp:6437"> <![LOG[Deleted setting 'CCM_SystemHealthClientConfig.SiteSettingsKey=1'.]LOG]!><time="09:33:05.238+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="policyutil.cpp:6437"> <![LOG[Raising event: instance of CCM_PolicyAgent_SettingsEvaluationComplete { ClientID = "GUID:4CCE6282-97EB-4447-BACF-E71E611551F3"; DateTime = "20130920133305.456000+000"; PolicyNamespace = "\\\\alftestdeploy09\\root\\ccm\\policy\\machine\\actualconfig"; ProcessID = 1480; ThreadID = 1540; }; ]LOG]!><time="09:33:05.456+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="event.cpp:525"> <![LOG[Successfully submitted event to the Status Agent.]LOG]!><time="09:33:05.550+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="event.cpp:543"> <![LOG[End TS policy evaluation]LOG]!><time="09:33:05.550+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="policyutil.cpp:8018"> <![LOG[Policy evaluation initiated]LOG]!><time="09:33:05.550+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:3261"> <![LOG[Error Task Sequence Manager failed to execute task sequence. Code 0x80004005]LOG]!><time="09:33:05.612+240" date="09-20-2013" component="TSManager" context="" type="3" thread="1540" file="tsmanager.cpp:689"> <![LOG[Sending error status message]LOG]!><time="09:33:05.612+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="tsmanager.cpp:690"> <![LOG[Formatted header:]LOG]!><time="09:33:05.612+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="libsmsmessaging.cpp:1500"> <![LOG[<Msg SchemaVersion="1.1" ReplyCompression="zlib"><ID/><SourceID>GUID:4CCE6282-97EB-4447-BACF-E71E611551F3</SourceID><SourceHost/><TargetAddress>mp:[http]MP_StatusManager</TargetAddress><ReplyTo>direct:OSD</ReplyTo><Priority>3</Priority><Timeout>3600</Timeout><SentTime>2013-09-20T13:33:05Z</SentTime><Protocol>http</Protocol><Body Type="ByteRange" Offset="0" Length="1178"/><Hooks/><Payload Type="inline"/><TargetHost/><TargetEndpoint>StatusReceiver</TargetEndpoint><ReplyMode>Sync</ReplyMode><CorrelationID/></Msg> ]LOG]!><time="09:33:05.612+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="libsmsmessaging.cpp:1501"> <![LOG[Resuming SMS Components]LOG]!><time="09:33:05.706+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="tsmanager.cpp:1026"> <![LOG[Waiting for CcmExec service to be fully operational]LOG]!><time="09:33:05.706+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:4129"> <![LOG[CcmExec service is up and fully operational]LOG]!><time="09:33:05.706+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:4134"> <![LOG[Resume for CCM component SoftwareDistribution requested]LOG]!><time="09:33:05.706+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:4029"> <![LOG[Resume for CCM component SoftwareUpdates requested]LOG]!><time="09:33:05.737+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:4029"> <![LOG[Attempting to release request using {408498A6-2783-496F-9165-096B88286C25}]LOG]!><time="09:33:05.768+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="swdupdatescontroller.cpp:300"> <![LOG[ReleaseRequest failed with error code 0x80004005]LOG]!><time="09:33:05.768+240" date="09-20-2013" component="TSManager" context="" type="3" thread="1540" file="swdupdatescontroller.cpp:318"> <![LOG[Task Sequence Manager could not release active TS request. code 80004005]LOG]!><time="09:33:05.768+240" date="09-20-2013" component="TSManager" context="" type="2" thread="1540" file="swdupdatescontroller.cpp:326"> <![LOG[Failed to delete registry value HKLM\Software\Microsoft\SMS\Task Sequence\System Health Agent. Error code 0x80070002]LOG]!><time="09:33:05.784+240" date="09-20-2013" component="TSManager" context="" type="2" thread="1540" file="utils.cpp:2782"> <![LOG[Failed to delete registry value HKLM\Software\Microsoft\SMS\Task Sequence\Active Request Handle. Error code 0x80070002]LOG]!><time="09:33:05.784+240" date="09-20-2013" component="TSManager" context="" type="2" thread="1540" file="utils.cpp:2930"> <![LOG[Finalize logging request ignored from process 1480]LOG]!><time="09:33:05.815+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="tslogging.cpp:1732"> <![LOG[Process completed with exit code 2147500037]LOG]!><time="09:33:05.908+240" date="09-20-2013" component="TSMBootstrap" context="" type="1" thread="1576" file="commandline.cpp:1102"> <![LOG[Exiting with return code 0x80004005]LOG]!><time="09:33:05.908+240" date="09-20-2013" component="TSMBootstrap" context="" type="1" thread="1576" file="tsmbootstrap.cpp:1118"> <![LOG[Process completed with exit code 2147500037]LOG]!><time="09:33:05.940+240" date="09-20-2013" component="OSDSetupHook" context="" type="1" thread="1996" file="commandline.cpp:1102"> <![LOG[Task sequence completed 0x80004005]LOG]!><time="09:33:05.940+240" date="09-20-2013" component="OSDSetupHook" context="" type="1" thread="1996" file="basesetuphook.cpp:1381"> <![LOG[Waiting for command shell to complete.]LOG]!><time="09:33:05.940+240" date="09-20-2013" component="OSDSetupHook" context="" type="1" thread="2020" file="debugwindow.cpp:218"> <![LOG[Uninstalling Setup Hook]LOG]!><time="09:33:38.466+240" date="09-20-2013" component="OSDSetupHook" context="" type="1" thread="1996" file="basesetuphook.cpp:1424"> <![LOG[Removing setup hook from registry.]LOG]!><time="09:33:38.481+240" date="09-20-2013" component="OSDSetupHook" context="" type="0" thread="1996" file="vistasetuphook.cpp:143"> <![LOG[Successfully removed C:\Windows\system32\OSDGINA.DLL]LOG]!><time="09:33:38.497+240" date="09-20-2013" component="OSDSetupHook" context="" type="1" thread="1996" file="basesetuphook.cpp:1179"> <![LOG[Successfully removed C:\Windows\system32\OSDSETUPHOOK.EXE]LOG]!><time="09:33:38.497+240" date="09-20-2013" component="OSDSetupHook" context="" type="1" thread="1996" file="basesetuphook.cpp:1179"> <![LOG[Successfully removed C:\Windows\system32\_SMSOSDSetup]LOG]!><time="09:33:38.513+240" date="09-20-2013" component="OSDSetupHook" context="" type="1" thread="1996" file="basesetuphook.cpp:1216"> <![LOG[Successfully finalized logs to SMS client log directory from C:\Windows\SysWOW64\CCM\Logs]LOG]!><time="09:33:38.762+240" date="09-20-2013" component="OSDSetupHook" context="" type="1" thread="1996" file="tslogging.cpp:1536">
  14. Hi! I'm having some issues with a .vbscript made for renaming computer during a task sequence. The issue is that it works for renaming virtual machines, but also a physical HP, the way it's supposed to (name of choosing + last 6 digits of serialnumber). However it fails on a customers physical Lenovo machine. The Lenovo machine sets the first part of name correctly, but completely ignores the fact that it's supposed to cut the serialnumber to the last 6 digits, meaning sometimes the machinename goes above 15 characters. The vbscript is run right after formating the disk, as seen on this pic: The script is: ----------------------------------------------------------- Set env = CreateObject("Microsoft.SMS.TSEnvironment") Name = inputbox("Description here", "Title here",env("_SMSTSMachineName"),400,0) Set objWMIService = GetObject("winmgmts:\\.\root\CIMV2") Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_Bios") strComputer = "." Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colBIOS = objWMIService.ExecQuery("Select * from Win32_BIOS") For each objBIOS in colBIOS serial = objBIOS.SerialNumber Next serial = Replace(serial," ","",1,-1) strNewName = Left(Name,9) & Right(serial,6) env("OSDComputerName") = strNewName -------------------------------------------------------------- Picture from successfull rename (log) virtual machine: Text from logs: From the logs you can see the virtual machine successfully set the machinename during the MDT Gather-process. The task sequence execution engine successfully completed the action (Gather) in the group (Initialization) with exit code 0 Action output: Finished remapping variables. ZTIGather processing completed successfully. Property UserDomain is now = ADMIN Property UserID is now = ConfigMgr-NeXXXX <Message containing password has been suppressed> Process completed with exit code 0 Error executing web service http:/ /OPPXXXXXXXXXXXX/MDTMonitorEvent/PostEvent?uniqueID=&computerName=TEST-d7ea46&messageID=41001&severity=1&stepName=Gather&currentStep=16&totalSteps=156&id=C6FB2A42-B79B-E2AC-BB0C-1A2F2ED7EA46,00:50:56:AA:69:1E&messageZTIGather processing completed successfully.&dartIP=&dartPort=&dartTicket=&vmHost=&vmName=: The operation timed out (-2147012894) Event 41001 sent: ZTIGather processing completed successfully. Command line returned 0 Entering ReleaseSource() for D:\_SMSTaskSequence\Packages\OPS0001A reference count 1 for the source D:\_SMSTaskSequence\Packages\OPS0001A before releasing Delete source directory D:\_SMSTaskSequence\Packages\OPS0001A Released the resolved source D:\_SMSTaskSequence\Packages\OPS0001A. Picture from "failed" (log) rename Lenovo: as you can see, there are 11 characters in the serial number The task sequence execution engine successfully completed the action (Gather) in the group (Initialization) with exit code 0 Action output: shed remapping variables. ZTIGather processing completed successfully. Property UserDomain is now = ADMIN Property UserID is now = ConfigMgr-NeXXXXX <Message containing password has been suppressed> Process completed with exit code 0 Error executing web service http:/ /OPPXXXXXXXXXXXXXX/MDTMonitorEvent/PostEvent?uniqueID=&computerName=USK-COAIN013GYT&messageID=41001&severity=1&stepName=Gather&currentStep=16&totalSteps=156&id=F449XXXXX-XXXX-11E0-9DC4-0XX07F19C838,E4:XX:XX:33:XX:80&messageZTIGather processing completed successfully.&dartIP=&dartPort=&dartTicket=&vmHost=&vmName=: The operation timed out (-2147012894) Event 41001 sent: ZTIGather processing completed successfully. Command line returned 0 Entering ReleaseSource() for D:\_SMSTaskSequence\Packages\OPS0001A reference count 1 for the source D:\_SMSTaskSequence\Packages\OPS0001A before releasing Delete source directory D:\_SMSTaskSequence\Packages\OPS0001A Released the resolved source D:\_SMSTaskSequence\Packages\OPS0001A. Anyone got any idea what might be wrong? Thanks in advance!
  15. Need help building one PowerShell script to run on Windows XP and Windows 7 If possible. I need the script to perform the following functions. Remove all temp files for all users Empty Recycle Bin for all users Empty Temp Direrctory Empty Temp Internet Files for all users Delete User Profile's 90+ days inactive Run Check Disk Clean up tool at the end. I have attached a script that was given to me but needs to modified for XP I think and add other items listed above. Disk_Cleaup_Tool.txt
  16. Hi all, Im using SCCM 2012 to do OSD for Windows XP SP3. Everthing is working fine but I want one more thing to go smooth. We are going to migrate a big school to Windows+RES. No problem with the OSD Image. The only problem is that some workstation got a bad computer name in the past. So some computer have the name of another classroom. We dont want to use the usual script for name changing. See: http://blogs.catapultsystems.com/javery/archive/2009/01/23/have-os-deployment-ask-for-a-computer-name.aspx?id=4&list=0e95ea6f-f4f7-41dd-8344-6968d75ff93a&itemid=4 When we use this one we need to rename all devices. What we want is the following: WinPE starts Choose TS Let a script show the Computer Name. We can check if it is right - Yes, Continue without changing the current name - No, get an option to change the current name to a new one As you can see this is not the usual change name script. Is there anyone who can help me? Thanks in advance! Anne
  17. Hello, I know the commands to set paging file (wmic pagefileset) but what I need is a script that will query the amount of physically installed memory first and then multiply it by 1.5x. Does anyone have a script that I can use please? Or know of an easy way to do this? We like to create partitions and move the page file to the D drive and leave the C drive a just 800MB. I am deploying to W2k8 R2 servers. Many Thanks Craig
  18. Hey guys, Lately I've been setting up a back-end script for one of our customers. Part of this script was designed to send an email to the manager with the user and password for their newly created users. I posted the Email function on the tech-blog if anyone needs it. http://heineborn.com/tech/sending-email-via-powershell/ Take care.
  19. Howdy, I am wondering if anybody has ever come across a script that I can use to import new machine information (Computer Name and Mac) listed in a CSV file into SCCM 2007. I know that you can quite easily perform this via the console, however I would like to script this action so that that the csv file supplied to us by our hardware reseller can be dumped into a share by our Procurement team and automatically imported as a scheduled task. I have been seatching high and low and have found a few tools that can achive this (Anyweb's front end HTA included) but am really just after a script. Thanks for your help, - Scott.
  20. Here is my issue. Our image was built with a MAK key for Office 2010. Since I didn't build the images, I payed no attention to this. Well after imaging over 1000 machines, we've figured out that we need to use a KMS host for Office activation as our MAK keys are running over. I've already installed the Office KMS host on a machine that currently activates our Server 2008 R2 boxes, the problem is how to change all the machines that have been imaged that won't activate over to the KMS host so they will activate. I know we will need to redo the image to input the KMS key but how can I change what's already out there? Thanks!
  21. Anyone know of an easy way to name a computer to its serial number during OSD? I have a vbs script that I used under Altiris but how/where would I inject this script during OSD?
  22. Hi We're currently using SCCM 2007, and for the most part I'm administering it. However, I have very little no knowledge in regards of scripting, and I see it would be a huge advantage when deploying all kinds of software. I get by, by finding scripts online and testing and trying to manipulate as best as I can. Now I'm planing to learn some scripting language, but not sure what language would be most suitable. Most people seem to use javascripts, but powershell seems to be far more powerful. Is there any reason to learn Javascript now instead of powershell ? We are only using windows 7 in the organization, so that's shouldn't be a problem What way should I go? JS or powershell ? ... or something else ?
  23. Hi everyone, We currently have over 1000 objects in AD which should all have a healthy SCCM client, but due to the PC's not being turned on all the time the client becomes corrupt for some reason. I beleive the most efficient way to fix those PC's on the network that have SCCM issues is to have a script read from a computers.txt list, which contains all the corrupted computers, and have the script grab that name from the computers.txt list and let the script run a ccmsetup.exe on that remote PC using PSEXEC. We currently use site code AP0 and have the ccmsetup.exe file. ANY SUGGESTIONS WOULD BE GREATLY APPRECIATED.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.