Jump to content


tsfahmed2

Established Members
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About tsfahmed2

  • Rank
    Newbie
  1. I know this is really old but i thought i'd get this anyway. I like to split things up (makes things easier to write and troubleshoot) Also use arrays for arguments to msiexec.so, for your install line-- $RevitInstallDir = "$env:ProgramFiles\Autodesk\" $msifile = "$dirFiles\ABDS2017\Img\x64\RVT\RVT.msi" $installdirargs = "INSTALLDIR" + "$RevitInstallDir" $autodeskargs = @( "/i" "`"$msifile"`" "`"installdiragrs`"" "ADSK_SETP_EXE=1" "/qb!" ) $installcommand = start-process msiexec.exe -ArgumentList $autodeskargs -wait -PassThru #to get the exitcode do --- $installcommand.ExitCode
  2. You can do this through the TS (attached) and unload the registry .
  3. Use cck2 to create an addon and deploy via script. https://mike.kaply.com/cck2/
  4. Hi, Has anyone come across this issue in SCCM 2012 R2 (CU1), where the Object Content Information for the deleted packages are still present in 'Content Status' but shows blank for the 'Software' field ?
  5. Hi, I know this is pretty old, but just in case someone needs it: Dim env Dim strCPUName strNewName = "wrongname" Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & "." & "\root\cimv2") Set colSMBIOS = objWMIService.ExecQuery ("Select SerialNumber from Win32_SystemEnclosure") For Each objSMBIOS in colSMBIOS strNewName = objSMBIOS.SerialNumber Next Set colItems = objWMIService.ExecQuery("Select * from Win32_NetworkAdapterConfiguration WHERE IPENABLED = 'True'") For Each objItem in colItems strMAC = Replace(ObjItem.MACAddress, ":","") strCPUName = "V" & Right(strMAC,7) If Len(strCPUName) > 1 Then Exit For End If Next Set env = CreateObject("Microsoft.SMS.TSEnvironment") env("COMPUTERNAME") = strCPUName after this you'll need to set a Task Sequence variable OSDCOMPUTERNAME to %COMPUTERNAME% thats it.
×
×
  • Create New...