Error when a TS step has a condition to check for custom variable. Variable is set on the collection.
SCCM Version = SCCM 2012 R2 CU3
Background
I would like to setup some sort of safety check to help prevent accidentally sending and OSD out to all the servers managed by SCCM. The solution I am trying to use is making the TS do a check for a custom variable. If the variable is NOT set to TRUE
then it should reboot the machine back to the currently installed OS.
The variable is called "AllowOSD"
AllowOSD is set correctly on my "Test Servers" collection
I'm using the built in "Reboot Computer" step in the TS
The condition on the Reboot Computer step is very basic - "Task Sequence Variable AllowOSD is not equal TRUE".
I am testing the TS on a VM guest (Hyper-V)
I'm deploying via PXE for these tests...
The Issue
As soon as the TS starts I get the annoyingly generic 0x80004005 error - smsts.log posted on github -
smsts.log-A
Possibly related issue:
I have a vbscript that prompts for, and sets, the computer name. This works fine if placed after the format disk step, but if I place it before the format disk step then I get error 0x800700A1. If I format the internal HD first then I don't get an error
and it all works fine.
smsts.log posted on github - smsts.log-B
Be aware VM_1 and VM_2 have unformatted disks (vhdx). I don't want them to be formatted before checking that the task sequence should really be running in the first place. As already mentioned, I am trying to prevent someone wiping out a bunch of servers
by accident.
My Task Sequences are based on the defaults created by the wizard. Here are the step I'm using...
* Reboot if AllowOSD is not TRUE
Restart in Windows PE
* set Computer Name
Partition DIsk 0 - DIOS
Partition Disk 0 - UEFI
Install Operating System
Apply Windows Settings
Apply Network Settings
Setup Windows and Config Manager
* = steps I have created.
All other steps are defaults as created by wizard.
Please note the "Restart in Windows PE" step does a conditional check on "_SMSTSInWinPE" without any errors. it is looking like the use of custom variables is not supported until the local HD is formatted and mounted. Can
anyone confirm this behaviour, or what I can do to get around this problem.
I have tried using a vbscript but triggering a reboot from VB does nothing, hence using the Reboot Computer step in the TS.
Thanks
"Well I'm all out of ideas." - 85
As others have stated, your options are limited the moment you rely on PXE and WinPE but I think all you need to do is refine your collection target a bit.
Why not instead of deploying your TS to All Systems (which is what I'm guess you're doing) and trying to put a condition in, deploy to a collection that is based on a workstation collection then include unknown computers? Then any "known workstation"
will have a MAC stored and thus be permitted to use the TS, unknown machines will be as well ... but "known servers" will be blocked?
COnsidering the PXE looks for permitted MAC addresses this should work (Ill try it in my own lab).
Tested and verified:
Simply create a collection with a parent collection of all systems.
Add a workstation query:
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.OperatingSystemNameandVersion LIKE "%Workstation%"
Then "include" unknown computers.
End result is any machine that has "server" in it's version that has already been deployed will not be able to use the deployment. If you'd rather base existing computer on an OU or group membership just modify the first query how you see fit.
This will let known workstations (or whatever) and unknown machines get deployed to ... but known machines NOT in that collection will be skipped.
Similar Messages
-
Error when opening iTunes : iTunes has stopped working '' A problem caused the program to stop working correctly''.
When I repaired damaged files the problem still exists and also after uninstalling, redownloading and reinstalling iTunes.
My pc is working with windos 8.
Is there a solution?Hey there Rodney274,
It sounds like you are getting an error from iTunes when you launch it. I would try the troubleshooting in this article named:
iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
http://support.apple.com/kb/ts1717
Start with troubleshooting for 3rd party plug ins section, then the rest of the article if needed:
Start iTunes in Safe Mode
Open iTunes in Safe Mode to isolate any interference from plug-ins or scripts not manufactured by Apple.
Hold down Shift–Control while opening iTunes. You should see a dialog that says "iTunes is running in safe mode" before iTunes finishes starting up.
Click Continue.
See if the issue you're experiencing persists in Safe Mode.
If you have the same issue while iTunes is in Safe Mode, proceed to the "Create a new user account" section. If you don't experience the same issue, follow these steps to remove third-party plug-ins.
Thank you for using Apple Support Communities.
Take care,
Sterling -
When trying to log into iCloud, I get error message that this iPhone has exceeded it's limits for free apple I'd accounts
Indeed you do, limit of three accounts exists for every device. You can use old icloud accounts or create account on new device and then sign in on that phone. That limit is only for creating and not for use.
-
was downloading the new software update on my iPhone when it froze and has been in that state for more then 15 hours.
tried turning it off didn't work. tried pressing buttons didn't work.
tried unplugging it and waiting for the power to die hasn't worked
tried the steps on the webiste but they didn't work
tried working it from the laptop doesn't connect because i can't put in the passcode.
also tried calling iTunes support but due to the holiday no one is answering
what can i do i need my phone!!!
thanksi was able to access the phone by pressing down on the off button and home at the same time
-
Upgraded to 5.4 when opening lightroom get a message "encountered an error when reading from its preview cache and need to quite" tried this several time but get the same error message. Says Lightroom will attempt to fix the problem the next time it launches but that is not happening. How do it fix this?
Delete the preview cache using your operating system. It is a folder whose name ends with Previews.LRDATA. Do not delete the Lightroom catalog, which ends with .LRCAT
-
?I am getting an error when installing on my dell inspiron with latest updates for drivers. Error 1406. I have the problem with Scan Snap software and a full version of reader.
Error 1402 | Error 1406 | Acrobat, Reader
-
I have Lightroom 3 and have installed it on my Retina iMac running Yosemite. It will not show me any of the modules..error when attempting to change modules.. and keeps asking for my serial number every time. Is it compatible?
DavidThis is a duplicate thread - see here
-
Action with a condition that checks for a survey filled in a transaction
Hi!
I need to create an action with a condition that checks if there is a survey filled in the complaint document.
Is there any way to do it?
Thanks a lot!
Susana MessiasHi Siva,
Thanks for the document.
My scenario its the following:
I have a complaint with a survey assigned to it. I need to create an action that creates a follow-up task to the person responsible when the status is equal to Completed and the survey it's not filled.
I customized the action profile as you said, but the problem is to create a condition with the information about the survey. The field status it's ok to insert in a condition, but how about the survey?
Any ideas?!
Susana Messias -
Why yahoo/gmail retrieval and facebook app so so slow when in WIFI. But using the internet to check for emails and facebook is fast using the same WIFI connection??
Hi SandyS_VZW,
Yes tried resetting the wifi connection and problem still persist.
Here it is...to make it clear. Connected thru the same wifi at home...
-> emails (yahoo/gmail) and facebook WEBSITES are working fine and fast when using/accessing thru a browser (chrome/samsung browser) - no problem with this.
-> emails (yahoo/gmail) and facebook APP is soooooo sloooww (thru the App). Slow I mean comparing it to using their browser/websites... news feeds/emails refreshing so quickly but not when using the APP installed in Samsung Galaxy Note 4. Slow like - It will take around 5-10minutes just to get your emails and news feed refreshed.
THIS HAPPENS ONLY WHEN CONNECTED THRU A WIFI which has a speed of 10-20mb. It is not happening when connected to the network data/plan.
My wife has the same Samsung Galaxy Note 4 (coming from different provider at&t) - same setup (emails, fb app), same wifi connection, but she's not experiencing anything like it.
Not sure why, I dont want to believe that while connected to a WIFI, Verizon is restricting anything and ******* me off to make me switch to my data plan connection everytime - which is Unfair!
Was there a known issue similar about this case?
thanks, -
iPhoto is appearing as free on MAC store and it is also featured as one of the top 10 free apps, when i downloaded it, my credit card got charged for 790 rupees. I am using the latest OSX Maverick.
And yet to download the app you clicked on a button that told you that the app would be 790 rupees for you.
The iLife apps and the iWork apps are only free when you qualify to get them free. And when you get them free the buy button to download them says free. When the buy button has a price on it, that is how much you will pay for the app. -
Error in the ABAP Code for Customer Exit Variable
Could you please update me what is the wrong with the below ABAP Code developed for Customer Exit Variable in BW
i created a Variable (ZVWKNO) of Customer Exit,Single Value ,Mandatory and Variable is ready for input
In CMOD i had written the below Code:
When 'ZVWKNO'.
DATA: WEEK(2) TYPE N,
WEEKNO(2) TYPE N.
IF i_step = 1.
l_st_date = SY-DATUM.
CALL FUNCTION 'DATE_GET_WEEK'
EXPORTING
DATE = l_st_date
IMPORTING
WEEK = l_fn_week.
CHECK sy-subrc = 0.
WEEK = l_fn_week+4(2).
If WEEK 0.
WEEKNO = WEEK - 1.
l_s_range-low = WEEKNO.
l_s_range-sign = k_sign_inclusive.
l_s_range-opt = k_option_equals.
APPEND l_s_range to e_t_range.
ENDIF.
ENDIF.
But when i execute the query the default value is not populated with Week-1 No in the variable screen
Please update me what went wrong
ThanksCase ZVWKNO. "write this with out comments
When '1'. "write the value that needs to equal with value in varaible ZVWKNO after when in sungle quotes
DATA: WEEK(2) TYPE N,
WEEKNO(2) TYPE N.
IF i_step = 1.
l_st_date = SY-DATUM.
CALL FUNCTION 'DATE_GET_WEEK'
EXPORTING
DATE = l_st_date
IMPORTING
WEEK = l_fn_week.
CHECK sy-subrc = 0.
WEEK = l_fn_week+4(2).
If WEEK 0. "check this Week Minimum is '01' and Maximum '52'
WEEKNO = WEEK - 1.
l_s_range-low = WEEKNO.
l_s_range-sign = k_sign_inclusive.
l_s_range-opt = k_option_equals.
APPEND l_s_range to e_t_range.
ENDIF.
ENDIF.
Prabhudas -
I cannot do a software update, I get as far as System Updates then when I choose it a message appears say "Check for update is not available at this time" but I have not had a system update for a good while now. I am on System version 6.16.211.XT912.Verizon,en,US
Which phone model?
-
my Itunes account tells me i need to update it to version 10.6.1, but when I click download and the computer (mac 2007) goes to the "checking for softwares" page it doesn't find the update? Help me please, what do I do?
Try updating to 10.6.3.25.
A .dmg installer for iTunes version 10.6.3.25 for Mac OS can be found at the following download page on the Apple website:
iTunes 10.6.3 -
I heard that there was a problem with Apple being vulnerable to Hackers. Has anyone seen an update for this issue? My IPad received the update last night but I have not seen anything for Safari.
Mac OS X 10.9.2 was released today for this issue and others. Earlier versions are not affected.
See this Apple article - http://support.apple.com/kb/HT6114
You can use the Mac app store to do the update or download it directly from here - http://support.apple.com/kb/DL1725
Best of luck. -
Keep trying to down load a Magazine I just purchased an I keep getting an error message that "unable to download folio". Have check for enough space and have deleated app. And reloaded. Also rebooted iPad nothing fixes problem.
Does the iTunes Store need to reset my subscription or is this a fix I can do on my iPadTry This...
Close All Open Apps... Sign Out of yopur Account... Perform a Reset... Try again...
Reset ( No Data will be Lost )
Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
Maybe you are looking for
-
How do I import an unpublished site from one computer to another?
Hello all, I prepared my website on my computer at home, which is not configured to publish the site into my university's public folder. So I copied the website onto a memory card and now I would like to open the site on my work computer's iweb to ad
-
DVD's to IPAD2 via MAC 10.4.11?
I am wanting to rip and copy DVD's to my new IPAD2 from my MAC PC software version 10.4.11. Can anyone recommend easy to use software to achieve this?
-
OUI-10055:Error in accessing the registry - webcenter content installation
Hi All, I get this OUI error while installing Webcenter Content 11g. I checked the registry permission on HKEY_LOCAL_MACHINE -> Software -> Oracle and it has necessary permission for the user. Can someone help me identify what other registry location
-
Hi, I am getting the 4 fields of data in single field from souce system, i need to send to target side with 4 Diffrent Fields. I want to separate the data based on (/). I think for this I need 4 UDF's, Pls let me know the UDF's for this requirement.
-
Hi - I am not sure if this functionality is possible in SAP XI 2.0. If someone can help me with this quickly it would be of great help. I wanted to know if it is possible to transfer a message from one Interface to Another. The scenario is something