Jump to content


tsfahmed2

Established Members
  • Posts

    5
  • Joined

  • Last visited

tsfahmed2's Achievements

Newbie

Newbie (1/14)

  • Week One Done Rare
  • One Month Later Rare
  • One Year In Rare

Recent Badges

0

Reputation

  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. Use cck2 to create an addon and deploy via script. https://mike.kaply.com/cck2/
  3. 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 ?
  4. 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...

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.