OSD: end of TS: hta with message, ok then reboot
Hi,
We would like to have a hta at the end of the task sequence which shows a predefined text then an ok button which reboots the pc. Rest of desktop should not be usable.
Any examples on howto do that?
J.
Jan Hoedt
Try the script below, it should do the thing.
cscript.exe "%SCRIPTROOT%\MDTMessageBox.wsf" /text:"Applications Installed" /type:64 /title:"Close"
<job id="MDTMessageBox">
<script language="VBScript" src="ZTIUtility.vbs"/>
<script language="VBScript">
'# MICROSOFT LEGAL STATEMENT FOR SAMPLE SCRIPTS/CODE
'# This Sample Code is provided for the purpose of illustration only and is not
'# intended to be used in a production environment.
'# THIS SAMPLE CODE AND ANY RELATED INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY
'# OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
'# WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
'# We grant You a nonexclusive, royalty-free right to use and modify the Sample Code
'# and to reproduce and distribute the object code form of the Sample Code, provided
'# that You agree:
'# (i) to not use Our name, logo, or trademarks to market Your software product
'# in which the Sample Code is embedded;
'# (ii) to include a valid copyright notice on Your software product in which
'# the Sample Code is embedded; and
'# (iii) to indemnify, hold harmless, and defend Us and Our suppliers from and
'# against any claims or lawsuits, including attorneys’ fees, that arise
'# or result from the use or distribution of the Sample Code.
' // ***** Script Header *****
' // Solution: Solution Accelerator - Microsoft Deployment Toolkit
' // File: MDTMessageBox.wsf
' // Purpose: Custom script to display a MsgBox or Popup box during LTI.
' // Usage: cscript.exe MDTMessageBox.wsf /text:"<message text>"
' // [/type:<button/icon type>] (MsgBox buttons argument value: http://msdn.microsoft.com/en-us/library/sfw6660x(v=VS.85).aspx)
' // [/title:"<title of the pop-up message box>"]
' // [/seconds:<seconds the pop-up message box is displayed>]
' // [/returnexit] (If specified, the button click return value will be used as the script exit code.)
' // [/returnvar:<task sequence variable to set with the button click return value]
' // Version: 1.0.2
' // History:
' // 1.0.0 MDM 06/04/2010 Created initial script.
' // 1.0.1 MDM 06/23/2011 Added /returnexit switch.
' // 1.0.2 MDM 06/23/2011 Added /returnvar switch.
' // ***** End Header *****
'// Global constant and variable declarations
'Option Explicit
Dim iRetVal
'// End declarations
'// Main routine
On Error Resume Next
iRetVal = ZTIProcess
ProcessResults iRetVal
On Error Goto 0
'// Function: ZTIProcess()
'// Input: None
'// Return: Success - 0
'// Failure - non-zero
'// Purpose: Perform main ZTI processing
Function ZTIProcess()
oLogging.CreateEntry "------------ Initialization " & oUtility.ScriptName & " -------------", LogTypeInfo
ZTIProcess = Success
sText = ""
bUsePopup = False
bButtonReturnIsExitCode = False
nType=0
iScriptFailure = 8
If WScript.Arguments.Named.Exists("text") Then
sText = WScript.Arguments.Named.Item("text")
oLogging.CreateEntry "The /text switch specified with value: " & sText, LogTypeInfo
Else
oLogging.CreateEntry "The /text switch must be specified. Exiting script.", LogTypeError
ZTIProcess = iScriptFailure
Exit Function
End If
If WScript.Arguments.Named.Exists("title") Then
sTitle = WScript.Arguments.Named.Item("title")
oLogging.CreateEntry "The /title switch specified with value: " & sTitle, LogTypeInfo
End If
If WScript.Arguments.Named.Exists("type") Then
nType = WScript.Arguments.Named.Item("type")
If (IsNumeric(nType) = False) Then
oLogging.CreateEntry "The /type switch must a numeric value. Exiting script.", LogTypeError
ZTIProcess = iScriptFailure
Exit Function
Else
oLogging.CreateEntry "The /type switch specified with value: " & nType, LogTypeInfo
End If
End If
If WScript.Arguments.Named.Exists("seconds") Then
bUsePopup = True
nSecondsToWait = WScript.Arguments.Named.Item("seconds")
If (IsNumeric(nSecondsToWait) = False) Then
oLogging.CreateEntry "The /seconds switch must a numeric value. Exiting script.", LogTypeError
ZTIProcess = iScriptFailure
Exit Function
Else
oLogging.CreateEntry "The /seconds switch specified with value: " & nSecondsToWait, LogTypeInfo
End If
End If
If WScript.Arguments.Named.Exists("returnexit") Then
bButtonReturnIsExitCode = True
oLogging.CreateEntry "The /returnexit switch specified. The button click return value will be used as the script exit code.", LogTypeInfo
End If
If WScript.Arguments.Named.Exists("returnvar") Then
sTSVariable = WScript.Arguments.Named.Item("returnvar")
oLogging.CreateEntry "The /returnvar switch specified with value: " & sTSVariable, LogTypeInfo
Else
sTSVariable = "MessageBoxReturn"
oLogging.CreateEntry "The /returnvar was not specified. Default task sequence variable of MessageBoxReturn will be used.", LogTypeInfo
End If
If bUsePopup Then
intButton = oShell.Popup(sText, nSecondsToWait, sTitle, nType)
Else
intButton = MsgBox(sText, nType, sTitle)
End If
oEnvironment.Item(sTSVariable) = intButton
oLogging.CreateEntry "Button value returned: " & intButton, LogTypeInfo
If bButtonReturnIsExitCode Then ZTIProcess = intButton
oLogging.CreateEntry "------------ Departing " & oUtility.ScriptName & " -------------", LogTypeInfo
End Function
</script>
</job>
Juke Chou
TechNet Community Support
Similar Messages
-
Hi,
I am trying to update a number of items which the software check brings up:
It runs and says it is installing but at the end I get this error message:
BUT then I ge tthis:
Can anyone help me to enable the software to update?
ThanksThanks. Something isn't right as I just tried to download the iphoto update - it said it had competed the download but then when I clicked on the download item I get this:
Think will have to take it into the store.....
thanks for replying. -
When ever iTunes updates, it ends up coming up with error message, iTunes did not install properly, please re-install iTunes, this is about the fourth time this has happened, end up having to take it to computer tech at a cost of $180, please help
For general advice see Troubleshooting issues with iTunes for Windows updates.
The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
tt2 -
I want to forward a message with the default headers included, but can’t seem to set my mail preferences to include the headers when forwarding, just the original message ends up in the forwarded message and not the headers? What I'm trying to do is report SPAM and add headers to a spam message to forward to sites that go after the spammers.
Did you check the article and the add-on mentioned there?
-
Workflow Ends in Error " No auth to send IDocs with message type ORDRSP"
Hello All,
I have created an RFC user with limited Authoprizations including WE* tciodes and a few ME* transactons for an ALE Set up. I want to make sure i would not be giving more authorizations (extensive) to this RFC user and assign Just required authorizations. So i started testing testing and the inbound IDOC ended in error with a message " No auth to send IDocs with message type ORDRSP" Message no. SR053. Is there any way to find out what is the missing authorization object for the User. Any inputs would be really apprecaited.
Br,
SriHi !
Becaus alle this happens in beckgound, things are a bit difficult but solvable....
What you should do is a "Authority trace" ... as follows....:
- Go to the ST01
- Mark "Authorisation Check"
- Swich the trace on for your Workflow user
- Execute the Workflow until the error uccurs
- Go back to the ST01
- Press the "Analyze" button and see what error occurs
Dont forget to swicht the trace off... otherwise the tracefiles become realle BIG !
Regards
rainer
Some Reward poins would be nice if that helped.... -
at the end of sync itunes hangs with message waiting for files to be transferred....iphone 4s?-
and just sits there for an hour or more... sync is not finished, nothing happens... Any ideas?I called tech support and they had me schedule a time to walk through the problem with an apple engineer last night.
They acknowledged that they've been getting calls about this issue but that's all they said.
Make a long story short there was no solution. I ended up backing up all my info, contacts, notes ect. to the cloud and restoring the iPhone to the factory settings, then I synced back to the cloud but did not restore from a previous back-up just use as a new phone then manually check off the media pictures, music, movies ect.
It's not the ideal way but it worked for me because I don't have a ton of stuff on the phone and I can even sync wirelessly now where's before I couldn't check that feature on in iTunes because it wouldn't sync.
One thing since you can't restore from a previous back-up make sure to manually back up your camera roll or turn on photo stream to back up photos to the cloud.
Hope this helps. -
Getting dump with message CALL_FUNCTION_GET_NAME_FAILED
Hi,
My requirement is to write a report which will be run in background every Monday and the result will be sent to a user as email with excel as attachment.
I tried it by giving the email in 'Spool list recipient' in SM36. ut since the length of the output is more than 255 chars, so i thought of writing the email code as shown below.
DATA: l_message_content LIKE soli OCCURS 10 WITH HEADER LINE,
l_receiver_list LIKE soos1 OCCURS 5 WITH HEADER LINE,
l_packing_list LIKE soxpl OCCURS 2 WITH HEADER LINE,
l_listobject LIKE abaplist OCCURS 10,
l_compressed_attachment LIKE soli OCCURS 100 WITH HEADER LINE,
lw_object_hd_change LIKE sood1,
l_compressed_size LIKE sy-index.
l_receiver_list-recnam = sy-uname .
l_receiver_list-esc_des = 'B'.
APPEND l_receiver_list.
lw_object_hd_change-objla = sy-langu.
lw_object_hd_change-objnam = 'Selection'.
lw_object_hd_change-objsns = 'P'.
Mail subject
lw_object_hd_change-objdes = 'KRB SAP Inconsistency Report'.
Mail body
APPEND 'Consisteny report between KRB and SAP' TO l_message_content.
CALL FUNCTION 'TABLE_COMPRESS'
IMPORTING
compressed_size = l_compressed_size
TABLES
in = <fs_table>
out = l_compressed_attachment.
DESCRIBE TABLE l_compressed_attachment.
CLEAR l_packing_list.
l_packing_list-transf_bin = 'X'.
l_packing_list-head_start = 0.
l_packing_list-head_num = 0.
l_packing_list-body_start = 1.
l_packing_list-body_num = sy-tfill.
l_packing_list-objtp = 'ALI'.
l_packing_list-objnam = 'Selection'.
l_packing_list-objdes = 'SAP KRB Consistency Report'.
l_packing_list-objlen = l_compressed_size.
APPEND l_packing_list.
CALL FUNCTION 'SO_OBJECT_SEND'
EXPORTING
object_hd_change = lw_object_hd_change
object_type = 'RAW'
owner = sy-uname
TABLES
objcont = l_message_content
receivers = l_receiver_list
packing_list = l_packing_list
att_cont = l_compressed_attachment.
I am getting the mail which i checked in SBWP but when i clicked on the attachment i am getting dump with message CALL_FUNCTION_GET_NAME_FAILED.
Short text
Error when starting a Remote Function Call.
What happened?
"CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=223#CPIC program connection ended (read
error) "
An error occurred when executing a Remote Function Call.
Error analysis
An error occurred when executing a Remote Function Call.
"CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=223#CPIC program connection ended (read
error) "
Status of connection.... "RFC DRV=??? ???"
Internal error code.... "RFC_IO4"
Internal error: Invalid RFC handle.
Trigger Location of Runtime Error
Program SAPMSSY1
Include SAPMSSY1
Row 266
Module type (FORM)
Module Name XAB_RUN_DRIVER
Please help in this.
<removed by moderator>
Edited by: Thomas Zloch on Sep 14, 2011 11:57 AMHi,
Check your RFC Connection Configuration. Also, check the used username & password.
Reward points if the asnwer is helpful.
Regards, -
After download itunes installation began in windowx xp near the end of the installation the message says: it was not possible to write the value to the key Software / Classes / .mpg / OpenWithList / iTunes / .exe.
Already reinstalled 3 times and always says the same message.
thank youOnly two had virus on windows XP this week and wiped them with Avast. The itunes asked me to install the update, and so I did. but it always gives me that message.
-
My husband and I have been having problems with our iphone 5c since the ios7.1 update. We can't seem to send messages to each other now without incurring data charges, because our icloud messaging seems to have both phones synced to my itunes account. I have tried logging into itunes under each of our user id and syncing our respective phones to them, but it is not working. Any Ideas on what to do to fix this?
When we updated last week on Friday, we had other problems with loss of ringtones, no calls coming through do to the do not disturb feature being fully enabled and no alert to incoming calls while phone is locked. Spent a good hour on the phone with support and didn't resolve, tried resetting, rebooting etc. We ended up in an apple store on Saturday, where the guy got the ringtones, etc. working, but disabled our messaging and when tryng to sign back in, we found both phones linked to my itunes account. Since then, having problems with messaging... At a loss as to what to do now.Thanks. We did do all of that, and still kept having problems. I finally figured it out about 5 minutes after I posted. After signing each phone into respective itunes accounts and setting up all of the messaging features to sign into the same, I had to disable the "send as sms" feature inside messaging. Once I was able to force routing text messages addressed to his phone back through imessage from turning this off, my phone finally recognized his imessage seperate account and let the message go through properly. After a couple of tests, then I enabled the "send as sms" again, and it seems to be working fine.
This update has really been a pain, caused us several issues this go around. -
Can't seem to download any app despite entering the correct password and answering 3 security question but still in the end it comes up the message that my session has timed out no matter what! Please help, many thanks in adv!!
Try doing it on your computer with iTunes and then sync to your iPad to see if it clears the problem.
-
RFC logon failed with message: Failed: Connect to SAP gateway failed
I installed CI instance fine and i am stopped here with this error at the end of DB instance install. Could someone let me know what could be the reason for this. Is there any fix or workaround to continue the install.
INFO 2006-09-16 01:13:02 [iaxxrfcimp.cpp:398]
CAbRfcImpl::setRfcConnectParam
RFC parameter ASHOST set to value hostSAP.
INFO 2006-09-16 01:13:02 [iaxxrfcimp.cpp:398]
CAbRfcImpl::setRfcConnectParam
RFC parameter SYSNR set to value 09.
INFO 2006-09-16 01:13:02 [iaxxrfcimp.cpp:543]
CAbRfcImpl::checkConnectInfo
RFC connection information checked successfully.
ERROR 2006-09-16 01:13:02 [iaxxrfcimp.cpp:450]
CAbRfcImpl::openRfcConn
FRF-00007 Unable to open RFC connection.
ERROR 2006-09-16 01:13:02
CJSlibModule::writeError_impl()
FRF-00063 RFC logon failed with message: Failed: Connect to SAP gateway failed
Connect_PM GWHOST=hostSAP, GWSERV=sapgw09, ASHOST=hostSAP, SYSNR=09
LOCATION CPIC (TCP/IP) on local host
ERROR partner not reached (host hostSAP, service 3309)
TIME Sat Sep 16 01:13:02 2006
RELEASE 640
COMPONENT NI (network interface)
VERSION 37
RC -10
MODULE nixxi_r_mt.cpp
LINE 8528
DETAIL NiPConnect
SYSTEM CALL connect
ERRNO 146
ERRNO TEXT Connection refused
COUNTER 4
Thanks,
Ramat the end of the database instance installation SAPInst is doing some RFCs to the CI.
The logfile states that the gateway on host hostSAP with the systemnumber 09 is not reachable.
Please check if you have started the central instance on this machine.
peter -
How to use's mail's "perform mail action with message"
I can't for the life of me figure out how to use "perform mail action with message", I basically want to create a script that get's used on a rule from Mail, but nothing I try will work.
This is what I started with...
tell application "Mail"
perform mail action with message msgs for rule theRule
end
end
This doesn't compile i've seen an example of it being used like this...
using terms from application "Mail"
perform mail action with message msgs for rule theRule
end perform
end using
this also doesn't compile, so I'm not sure what it's wantingThis is one of those annoying things about programming - you have to arrange and spell things exactly right (this gets worse if you have fat fingers). You can look at the dictionary for Mail to see the specifics - in your example you are missing an "s" at the end of the word "message":
<pre title="this text can be pasted into the Script Editor" style="font-family: Monaco, 'Courier New', Courier, monospace; font-size: 10px; padding: 5px; width: 720px; color: #000000; background-color: #E0E0E0; overflow: auto">tell application "Mail"
perform mail action with messages msgs for rule theRule
end tell
</pre> -
Hello this week I'm unable to open any pdf's with preview, when I select to open a window opens up with message "file couldn't be opened because you don't have permission to view it" none of the pdf's have any security thanks if you can assist
Back up all data. Don't continue unless you're sure you can restore from a backup, even if you're unable to log in.
This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
Step 1
If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
Triple-click the following line to select it. Copy the selected text to the Clipboard (command-C):
{ sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
Launch the Terminal application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
Paste into the Terminal window (command-V). You'll be prompted for your login password. Nothing will be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
Step 2 (optional)
Take this step only if you have trouble with Step 1 or if it doesn't solve the problem.
Boot into Recovery. When the OS X Utilities screen appears, select
Utilities ▹ Terminal
from the menu bar. A Terminal window will open.
In the Terminal window, type this:
res
Press the tab key. The partial command you typed will automatically be completed to this:
resetpassword
Press return. A Reset Password window will open. You’re not going to reset a password.
Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
Select your username from the menu labeled Select the user account if not already selected.
Under Reset Home Directory Permissions and ACLs, click the Reset button.
Select
▹ Restart
from the menu bar. -
Problem with Messages Version 8.0
I am running Mavericks 10.9.3 and Messages doesn't allow me to video chat with someone on a Mac. Instead, it automatically defaults to their iPhone. The "invite to video chat" is grayed out and the start new chat is also grayed out. Has everything changed?
HI,
Yes, No, Maybe.
At Messages 7 in Mountain Lion the iMessages account was added as an Option in the accounts.
If you "register" for an iMessages account then when you use this to start a text conversation and then use the Video Icon it will invoke th FaceTime App and not Messages own Video abilities.
If you have an AIM valid account set up in Messages this will Video (And Audio Chat and Screen Share) to other AIM/Mac Buddies.
The same for Jabber accounts (Jabber to Jabber on a Mac with Messages or iChat).
Jabber IDs can include Google Mail IDs and Facebook Chat IDs
AIM valid IDs include emails issued by Apple (@Mac.com @me.com and @icloud.com)
These are about to change by the 30th June 2014 See http://support.apple.com/kb/TS5224
This opens up several possibilities.
1) your Apple ID is issued by Apple and can be used in iMessages and as a AIM Account.
2) Your Google ID maybe your Apple ID (as in an external email) but also work as A Google account in Messages iChat.
NOTE.
As Messages can also use the Yahooo service with a Yahoo ID then this may also be your Apple ID and be your iMessages account as well as your Yahoo account ID.
Variations as to why it might not reach a Mac.
Lets presume that using iMessages and chatting to an iMessage Contact is what you are doing and you wanted to Video chat using FaceTime but expected it to go their Mac.
It may be that their version on the Mac is Off (therefore it will not "trigger" FaceTime at their end).
Possibly they use a different Apple ID on their FaceTime app compared to their iMessages account.
There then follows an whole raft of variations that their iPhone Number is not listed on their FaceTime as an Alternative contact or any email that is actually an Alias for iMessages and not FaceTime.
8:35 pm Saturday; May 31, 2014
iMac 2.5Ghz i5 2011 (Mavericks 10.9)
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro 2Gb (Snow Leopard 10.6.8)
Mac OS X (10.6.8),
Couple of iPhones and an iPad -
hello ,
I have problem with message count, in my inbox there are more than 0 messages but i got result of
Folder inbox = store.getFolder("Inbox")
int c =inbox.getMessageCount()
of c is 0
i.e i got c as zero rather than 5.I am seeing the same thing and I agree with MathiasF's observation. My count seems to increase when I do a search for mail on the server. This has happened previously (iOS 5.x) but ending the Mail app always fixed it. The only way I can correct the count now is if I turn off sync for Mail on the Exchange account and re-enable. This clears my mail and causes my phone to go out and redownload. Rebooting and resetting the iPhone has not helped.
I'm on Sprint - 32GB White iPhone 4S running iOS 6.0 (10A403)
Maybe you are looking for
-
Hot deploy in weblogic 10.0 not working
Hi, I am trying to do hot deploy in an exploded war deployment. If I deploy the same exploded war in weblogic 9.2, I can update the class files without restarting the sever. However, in weblogic 10.0 system throws "java.lang.ClassCastException: com.x
-
http://http://www.uberorganizing.com/service/scrapbooking/scapbook-service.php Email: [email protected]
-
Workitem is not generating for an Inbound Idoc
Hi All, The problem I am facing, when inbound idoc is processing in SAP, if there are any errors occurred, it would generate a work item and that will be sent to user Inbox (SBWP) as per the workflow. Here it is not generating a work item for an inbo
-
Establishing Palm Desktop 4.1.4 connectivity on Windows 2003 Server - using m500
Admittedly, this is a legacy problem solution. I was told by tech support that Palm could not support the m500 on Windows 2003 Server. Via another connectivity solution, I learned that the pnp services needed to connect the palm m500 to my Windows
-
Sap treasury integration with Bank Customer Accounts
Hi, My client is implementing bank customer accounts. The client requirement is to integrate treasury with the Bank Customer Accounts What are the steps to be configured? Please advice with regards raju