Using Sent Unix Command in ARD 3 with proxy authentication
I'd like to use Unix commands to update Apple software through ARD thus allowing me to lock the computer screen before the process using the ARD command to do so, thus keeping the users from interfering with the process .
Our network utilizes password protected firewall proxy that hangs ARD when using the softwareupdate command through ARD's "Send Unix Command..." at the point in which it would ask for authentication if using the same command in the terminal.
Is there a Unix/terminal script or a series of script commands that could be modified to wait and enter the appropriate authentication at the previous mentioned prompt?
I've researched this topic on this forum and discover a few post that states it is not possible but they are fairly old posts so I am hoping ARD 3 has some scripts or commands that can pass thru a username and password
Welcome,
I use the "System Events" handler, e.g.:
tell application "System Events" to delay 5.5
tell application "System Events" to keystroke "K"
tell application "System Events" to delay 0.5
tell application "System Events" to keystroke return
Regards,
Shawn
Similar Messages
-
Send a Unix command through ARD that will change a OS X admin user to a standard user.
I would love to send a Unix command through ARD that will change a OS X admin user to a standard user. The only thing I found close is
sudo dscl . -delete /Groups/admin GroupMembership USERNAME
which does remove the user from the list of admins, but they are still listed as an admin in the user preference panel, and can still use their account to authenticate for admin privileges.I'm not having any problems adding or removing users from the 'admin' group by using the syntax's
dscl . -delete /Groups/admin GroupMembership ARDusername
or
dscl . -append /Groups/admin GroupMembership ARDusername
What I'm saying is if a user is ticked as an Adminstrator in System Preferences and I run the
dscl . -delete /Groups/admin GroupMembership ARDusername syntax and remove them from the 'admin' GroupMembership they still have the Administrator box ticked in System Prefs and can administer the machine.
By the way the '/' doesn't work in the syntax in ARD.
Thanks -
Strange behaviour when using connection pooling with proxy authentication
All
I have developed an ASP.NET 1.1 Web application that uses ODP.NET 9.2.0.4 accessing Oracle Database 8i (which is to be upgraded to 10g in the coming months). I have enabled connection pooling and implemented proxy authentication.
I am observing a strange behaviour in the live environment. If two users (User 1 and User 2) are executing SQL statements at the same time (concurrent threads in IIS), the following is occurring:
* User 1 opens a new connection, executes a SELECT statement, and closes this connection. The audit log, which uses the USER function, shows User 1 executed this statement.
* User 2 opens the same connection (before it is released to the connection pool?), excutes an INSERT statement, and closes this connection. The audit log shows User 1, not User 2, executed this statement.
Is this a known issue when using connection pooling with proxy authentication? I appreciate your help.
Regards,
ChrisHi Chris,
I tried to reproduce your complaint, but was unable to. I didnt use auditting however, just a series of "select user from dual" with proxy authentication. You might want to see if you can put together a small complete testcase for this and open a sr with support.
Cheers
Greg -
Administration of APEX in SQL Developer with Proxy Authentication impossibl
Hello!
We are using latest version of SQL Developer to administer APEX. We are connecting to the database with proxy authentication. The syntax is:
personal_user[apex_ws_owner]
e.g.: mdecker[apex_demo]
When trying to deploy APEX application I go to "Database Object" -> Application Express -> Application1 [100] -> right mouse click: "Deploy Application". Then I select the appropriate database identifier and next, I am presented with a screen showing import options. In second line, it says: "Parsing Schema: MDECKER".
This is wrong: it has to be Parsing Schema: APEX_DEMO. It seems that managing APEX with SQL Developer does not support Proxy Authentication.
Could you please confirm?
Is there a way to formally ask for this enhancement?
Best regards,
Martin
Update:
I found out that if I check the flag "Proxy Authentication" in the connect details and provide both passwords, the deploy application parsing schema is set to the correct APEX_DEMO account. However, we are using Proxy Authentication in order to avoid having to know the application password.
Edited by: mdecker on Jan 28, 2013 4:48 PMThere is a write-up about connecting to APEX here: <a href ="http://www.oracle.com/technology/products/database/application_express/html/sql_dev_integration.html" >SQL Dev Oracle APEX Integration</a>
<p>You do need to have updated to Oracle APEX 3.0.1.
<p>Regards <br>
Sue -
Unix command in ARD to remove DNS Servers from Network prefs?
I need to know how to send a unix command to remove DNS Servers in Network preferences. I need the DNS Servers field to be blank. Can this be done?
Our network administrator is getting ready to change the IP address of our DNS server. This means I have over 30 Macs that will be needing changes to their DNS settings. Since each machine is setup with limited access to the system prefs, that means I have to go to each machine and log in as the admin user to make this change. In the interest of saving time, is this something I can do with Remote Desktop and how? Would I use the same commands in this post and replace dns1 with our DNS' new IP address? Will this distrupt the users access to the network when I do so?
Thanks for any help.
Beth -
Can this script be converted to a UNIX command for ARD?
First I'd like to thank "Neil" again for providing the script below:
set the_versions to (do shell script "mdls -name kMDItemVersion /Applications/Microsoft\\ Office\\ 2011/Microsoft\\ Excel.app")
set the_versions to the_versions & return & (do shell script "mdls -name kMDItemVersion /Applications/Adobe\\ Reader.app")
set the_versions to the_versions & return & (do shell script "mdls -name kMDItemVersion /Applications/Safari.app")
set the_versions to the_versions & return & (do shell script "mdls -name kMDItemVersion /Applications/Google\\ Chrome.app")
set the_versions to the_versions & return & (do shell script "mdls -name kMDItemVersion /Applications/Adobe\\ Acrobat\\ X\\ Pro/Adobe\\ Acrobat\\ Pro.app")
set the_versions to the_versions & return & (do shell script "SW_vers")
Output for this script yields exactly what I requested in the thread. Ex:
"kMDItemVersion = \"14.4.1\"
kMDItemVersion = \"11.0.07\"
kMDItemVersion = \"7.0.4\"
kMDItemVersion = \"35.0.1916.114\"
kMDItemVersion = \"10.1.10\"
ProductName: Mac OS X
ProductVersion: 10.9.3
BuildVersion: 13D65"
I'd like to be able to run this command (or a variation) in Apple Remote Desktop (ARD) remotely, and as a UNIX command in order to generate a similar ARD report if possible. Even better, I'd like the report to include the Application name and I'd like it to not to halt if an Application isn't present. My guess is that functionality like this for ARD would help a LOT of ARD Administrators because it would seem that the only way to do anything similar is to derive the metadata piecemeal (machine by machine) or end up having to wade through a ton of unwanted content using a full System Report... Thanks.Forum software NOW prevents posting complete shell scripts. You'll have to piece together the code.
First build an array of the applications that you are looking for in this form. Note; I truncated the applications.
apps=( "/Applications/Microsoft Office 2011/Microsoft Excel.app" "/Applications/Adobe Reader.app" "/Applications/Safari.app" )
Next loop thru the array
for i in "${apps[@]}"; do
printf "%s: %s\n" "$i" "$(mdls -name kMDItemVersion "$i")"
done
If you want to create a report then change the above loop to the following
for i in "${apps[@]}"; do
printf "%s: %s\n" "$i" "$(mdls -name kMDItemVersion "$i")"
done > app_report.txt
sw_vers >> app_report.txt
Message was edited by: Mark Jalbert -
Cant send UNIX commands via ARD
I have ARD, and the option to send UNIX commands is greyed out. Help?
On the client, apple menu, system preferences, sharing, Remote Management.
If allow access is set to all users, then click the options button.
else, select the user your using to connect to the client, and then click the option button.
Make sure every thing is checked.
click ok
try again on ARD.
Other things to try:
quit and re-open ARD.
delete, then and re-add the client computer from ARD.
unchecking, and then re- checking remote management on the client. (to force the service to restart) -
Running a Unix command as "root" with NSTask
Hi,
I'm new to objective-C and Cocoa programming. I already know C and C++ (from classes I had in Uni.) but this one goes farther than what I've seen. Stricltly for learning purposes, I'd like to make a three button window where you click on a button and it launches /etc/daily and the two other cron tasks. But, in order to launch those commands, you need to use sudo. I guess wrapping a Unix command in a Cocoa application uses NSTask, but how do you get the app to run with root access?
Any help will be appreciated
iBook G4 (12) Mac OS X (10.4.8)How about launching Terminal with a script that calls
sudo? sudo will query the controllying TTY
(Terminal) for the user's (which had better be an
admin user) password.
There should be no way to do this without requiring
admin authentication, preferably interactive. If
there were, it would be a privilege escalation
vulnerability in OS X...
That is exactly what I am looking for: I'd like my application the ask for administrator privileges before running the Unix scripts.
iBook G4 (12") Mac OS X (10.4.8)
iBook G4 (12") Mac OS X (10.4.8) -
Problems using "open items" command in ARD
Hi,
Having problems while using the "open items" command from ARD. The "Copy" function works well but when trying to open the file I get the message "Failed".
I suppose I am doing something wrong, any help is appreciated!... having problems ...
We don't know what problems you are having -
Using BO PC 7.5 NW with Proxy
Hello everybody!
Deos somebody know how to use BO PC 7.5 NW with a proxy server? When I try to connect the admin console with the bpc server i can trace a connection request directly to the bpc server and not to the proxy server. I know, in the install guide sap tells us that it's not possible but perhaps somebody knows an workaround.
THXIt seems that bpc doesn't work with proxy
-
To find whether a form using HOST (Unix) command to exit/execute a process.
Hi all,
I have some(Little bit) knowledge on forms.But here I got one requirement which was confusing me .The requirement is ,we have nearly 70 custom forms developed
using TEMPLATE.fmb.Now I have to open each and every form and have to check whether that form is using any HOST (unix) command to exit to the shell and
execute a process .I never got this type of requirement previously .Can any one help in how to search for those commands ,I.e is there any standard to use Unix call in
particular trigger or etc..
Thanks in advance .
Regards,
Gopi.CHYour question is a little unclear. The "HOST" command is an Oracle Forms built-in command which allows you to execute OS commands. So the only part of it that belongs to forms is the part that looks like HOST(). The contents within the parentheses would be the command you wanted to execute. For example:
HOST('/path/to/your/script.sh');Refer to the Forms Builder online help for more information about how to use the HOST command. -
Using icat + unix command/applescript to initiate audio/video chat
hi
has anyone written a unix command (i.e. perl script) or applescript to automate initiating a video chat or audio chat upon receiving a message (i.e. via icar)?
there are a few scripts on the web, but none that i could get working.
thanksHi
For auto accept see http://www.macosxhints.com/article.php?story=20050512152831112
Tony -
SCCM 2012 R2 ADR issue with proxy authentication
Hi,
We're migrating SCCM 2007 to SCCM 2012 R2.
In SCCM 2007, the proxy server is configured with user authentication, and this works.
In SCCM 2012 R2, the Software Update Point is installed locally and connected with a local WSUS 4.0 (Server 2012)
We use a proxy with user authentication for Update Deployment. (This user is the same as configured in SCCM 2007.)
The Proxy Server is Blue Coat SG.
The proxy account is used for:
The Synchronization works, but Automatic Deployment Rule (ADR) doesn't work.
When an Automatic Deployment Rule is started, it tries to authenticate 3 times.
The Patchdownloader.log shows:
Trying to connect to the root\SMS namespace on the <servername> machine. Software Updates Patch Downloader 11/8/2013
12:19:06 3608 (0x0E18)
Connected to
\\<servername>\root\SMS Software Updates Patch Downloader 11/8/2013 12:19:06 3608
(0x0E18)
Trying to connect to the
\\<servername.domain>\root\sms\site_ECM namespace on the <servername.domain> machine. Software Updates Patch Downloader 11/8/2013
12:19:06 3608 (0x0E18)
Connected to
\\<servername.domain>\root\sms\site_ECM Software Updates Patch Downloader 11/8/2013 12:19:06 3608
(0x0E18)
Download destination =
\\<servername.domain>\dp_wks_ms_updates$\3208bb5e-bcd9-4389-a0c9-02ef33ccb998.1\XPSEPSC-x86-en-US.exe . Software Updates Patch Downloader 11/8/2013 12:19:07 3608
(0x0E18)
Contentsource =
http://wsus.ds.www.download.windowsupdate.com/msdownload/update/v3-19990518/cabpool/xpsepsc-x86-en-us_7ae70ca1330a099080c6c41c4d5b7f19b30dc0cd.exe . Software Updates Patch Downloader 11/8/2013
12:19:07 3608 (0x0E18)
Downloading content for ContentID = 16819067,
FileName = XPSEPSC-x86-en-US.exe. Software Updates Patch Downloader 11/8/2013 12:19:07 3608 (0x0E18)
Try username <domain\ProxyAccount> Software Updates Patch Downloader 11/8/2013 12:19:07 8364
(0x20AC)
Proxy enabled proxy server <proxyserver>:8080 Software Updates Patch Downloader 11/8/2013
12:19:07 8364 (0x20AC)
HttpSendRequest failed HTTP_STATUS_PROXY_AUTH_REQ Software Updates Patch Downloader 11/8/2013
12:19:07 8364 (0x20AC)
Download
http://wsus.ds.www.download.windowsupdate.com/msdownload/update/v3-19990518/cabpool/xpsepsc-x86-en-us_7ae70ca1330a099080c6c41c4d5b7f19b30dc0cd.exe to C:\Windows\TEMP\CAB6FD2.tmp returns 407 Software Updates
Patch Downloader 11/8/2013 12:19:07 8364 (0x20AC)
ERROR: DownloadContentFiles() failed with hr=0x80070197 Software Updates Patch Downloader 11/8/2013
12:19:07 3608 (0x0E18)
Then the proxy user account is locked:
Trying to connect to the root\SMS namespace on the <servername> machine. Software Updates Patch Downloader 11/8/2013
12:20:11 3608 (0x0E18)
Connected to \\ <servername>\root\SMS Software Updates Patch Downloader 11/8/2013
12:20:11 3608 (0x0E18)
Trying to connect to the
\\<servername.domain>\root\sms\site_ECM namespace on the <servername.domain> machine. Software Updates Patch Downloader 11/8/2013
12:20:11 3608 (0x0E18)
Connected to
\\<servername.domain>\root\sms\site_ECM Software Updates Patch Downloader 11/8/2013 12:20:11 3608
(0x0E18)
Download destination =
\\<servername.domain>\dp_wks_ms_updates$\e0a54221-3ff2-4129-b7cf-89bf5cd1f726.1\Windows-KB943729-x86-ENU.exe . Software Updates Patch Downloader 11/8/2013
12:20:12 3608 (0x0E18)
Contentsource =
http://wsus.ds.download.windowsupdate.com/msdownload/update/software/updt/2009/10/windows-kb943729-x86-enu_e174c41ce3dcbd5c8922d6d1c39df1be425a70e0.exe . Software Updates Patch Downloader 11/8/2013
12:20:12 3608 (0x0E18)
Downloading content for ContentID = 16824262,
FileName = Windows-KB943729-x86-ENU.exe. Software Updates Patch Downloader 11/8/2013 12:20:12 3608 (0x0E18)
Try username <domain\ProxyAccount> Software Updates Patch Downloader 11/8/2013 12:20:12 12480
(0x30C0)
Proxy enabled proxy server <proxyserver>:8080 Software Updates Patch Downloader 11/8/2013
12:20:12 12480 (0x30C0)
HttpSendRequest failed HTTP_STATUS_FORBIDDEN or HTTP_STATUS_DENIED Software Updates Patch Downloader 11/8/2013
12:20:12 12480 (0x30C0)
Download
http://wsus.ds.download.windowsupdate.com/msdownload/update/software/updt/2009/10/windows-kb943729-x86-enu_e174c41ce3dcbd5c8922d6d1c39df1be425a70e0.exe to C:\Windows\TEMP\CAB6E4B.tmp returns 403 Software Updates
Patch Downloader 11/8/2013 12:20:12 12480 (0x30C0)
ERROR: DownloadContentFiles() failed with hr=0x80070193 Software Updates Patch Downloader 11/8/2013
12:20:12 3608 (0x0E18)
The RuleEngine.log shows:
Failed to download the update from internet. Error = 403 SMS_RULE_ENGINE 11/8/2013 16:18:25 3608 (0x0E18)
Failed to download ContentID 16824467 for UpdateID 16819978. Error code = 403 SMS_RULE_ENGINE 11/8/2013 16:18:25 3608 (0x0E18)
It seems that the ADR uses a wrong password when authenticating with the proxy, but this same user works when synchronizing with WSUS.
We performed the following actions with no result:
run the ADR manually and automatic,
reinstalled WSUS and SUP,
changed proxy user account.
Regards,
MatthiasCurrently, the command shows:
Current WinHTTP proxy settings:
Direct access (no proxy server).
We've been testing with:
upddwnldcfg.exe /s:<proxyserver>:<port> /u:<user> /allusers
psexec -i -s iexplore.exe, set Internet Explorer proxy manually
All with same result, proxy user getting locked when ADR runs.
(These settings have been removed after the test.)
I think dekac99 would suggest netsh winhttp set proxy or import proxy.
then turn off proxy use on the role SUP (this way not SCCM will send auth but all winhttp will use proxy)
the problems with that for me are:
- if MS implemented role-based proxy usage, why set at http layer - of course this might work as a workaround for the time being so it might be a good idea but I'm just not sure what unwanted issues it may cause
- the other thing is where I'm not sure, with set proxy you cannot define authentication account. if you use import from IE and the IE prompted for proxy auth, the stored credential will be used on winhttp layer (though I'm not 100% sure of that) - so this
is just too uncontrolled for me
- upddwnldcfg.exe will need to run in the name of system account (it stores credentials under HKCU so far I know it will be a per user based setting)
--> what confuses me, the catalog synch works which should use the same configured proxy and account(?), only ADR does not work. shouldn't they both use the same process for sending account auth info? -
Help with Proxy Authentication
Hi,
Can proxy authentication be used in Oracle Standard Edition? I am connecting as a client to the database through the middle tier java application. I have a line of code that tries to get a proxy connection on behalf of the user. I get the following error:
java.sql.SQLException: ORA-00439: feature not enabled: Enterprise User Security
Any idea why this occurs?
thanksHi,
Can proxy authentication be used in Oracle Standard Edition? I am connecting as a client to the database through the middle tier java application. I have a line of code that tries to get a proxy connection on behalf of the user. I get the following error:
java.sql.SQLException: ORA-00439: feature not enabled: Enterprise User Security
Any idea why this occurs?
thanks -
I am trying to cue computers through keystroke commands using ARD
I want to know a unix shell or script command to hit keystrokes on my ARD machines.
EXAMPLE... I want machine X to press the letter K.
I am also wondering if you can send multiple commands doing this , multiple keystrokes with built in delays
Thank youWelcome,
I use the "System Events" handler, e.g.:
tell application "System Events" to delay 5.5
tell application "System Events" to keystroke "K"
tell application "System Events" to delay 0.5
tell application "System Events" to keystroke return
Regards,
Shawn
Maybe you are looking for
-
I can't install, repair, or remove BootCamp drivers from my Windows installation
I have Windows XP SP3 installed on my Macbook Pro. When I installed Windows originally it failed to completely install BootCamp drivers, so I don't have advanced trackpad and keyboard features. I've downloaded the latest BootCamp drivers v3.2 that st
-
Hi, I want to display an ALV grid/ list report with a check box at the begining of each row. I want to select some or all check boxes. Based on the selection, i need to perform some action (like z table update). Can u plz send the sample code to meet
-
Hi, new to the boards, if anyone can help me with this question id really appreciate it. So....I just recently got a Macbook Pro, and I wanted to delete my music because i have all my misic via CD, so I wanted to start from scratch. I deleted everyth
-
Safari won't open some pages after changing internet provider
Since I changed my internet provider Safari decided not to work. Not sure if it is just a coincidence or not. I have been looking for solutions on the forum and test some suggestions but I getting nowhere. I have reset Safari several times, empty cac
-
I've always used predictive txt on my phones. I'm finding on this phone the words that are appearing are so far off the track it's not funny. .....I...always shows as G......i loaded yas once now all the time it comes up instead of was....Not....now