Launch remote control via a command line?
Is is possible to launch a remote control session via a command line as well
as the other "remote actions"?
Thanks,
Bryan
On Wed, 29 Sep 2004 22:25:17 GMT, Bryan Miller wrote:
> Is is possible to launch a remote control session via a command line as well
> as the other "remote actions"?
take a look at the online documentation which describes this..
Marcus Breiden
Please change -- to - to mail me.
The content of this mail is my private and personal opinion.
http://www.edu-magic.net
Similar Messages
-
Invoking Powershell modules on remote clients via package/command line
Hello Everyone -
I have two modules(functions) that i've written and tested successfully locally in my environment that give me Uninstall and Repair functionality on whatever the string contains. Both .psm1's are delivered via a SCCM pkg that lands both into folders
in the Modules directory. My issue is I can't seem to invoke this in a deployment scenario...as i'd like to deliver the "Invoke-command" using SCCM's command line to simply say...
Invoke-Command -scriptblock { Do-This "<string>" }
The above command works fine locally when...(exePol is set to Bypass).
1.)Modules have respective folders living in WindowsPowershell\Modules directory named xxxx.psm1
2.)Import-Module -name <path\name of module>
3.)Verify Modules are loaded(moduleType is script)
But when fabricating the folders\files above with SCCM, and running the Invoke-Command(in many different ways remotely), i recieve the cmdlet, program doesn't exist and has no idea what i'm talking about. Folders\Files for .psm1's are present and do
show when running Get-Module -Listavailable locally on targeted clients.
Maybe this is related to the Import-Module command and the context i'm trying to delivery it in?
I've tried multiple scenario's of...
A.) Psexec that launches powershell, followed by the Import-Module -name <path\name of module>
B.) .Bat file that launches powershell with the same Import-Module syntax
C.) PS1 that includes the same Import-Module line.
D.) Just straight from the command line of the Pkg/Program.
Has anyone tried this? Is there a better method when trying to deliver invoke-command on a module/function to a client via SCCM?
TIA[I see that the you are running the powershell.exe and then importing the module in the command line for the Program you created in SCCM, so just importing the module will do the repair action for you ??]
Not sure how else i would run a Import-Module without calling upon powershell.exe. The reason for using Import-Module first is it only creates the abilty of whatever the module(function in this case) on the client. So if i can get the remote
Import-Module to work, which would then allow me in the future to use an Invoke-Command -scriptblock { Do-This "string" } on the clients. In this case its both an Uninstall and Repair function with an assortment of switches and arguements that will aide me
in the future in managing our apps. For me to use the Modules, i would need to Invoke-Command as that is how the functions are built.
Okey so the module does get dumped to the end machine.
Suppose you have a test machine TEST01 where the Test.psm1 file (having Test-Function)is delivered through SCCM.
Then try this and tell if it works:
PS C:\> $session = New-PSSession -ComputerName TEST01
PS C:\> Invoke-Command -Session $session -ScriptBlock {Import-Module Test.psm1 }
PS C:\> Invoke-Command -Session $session -ScriptBlock {Test-Function #inside your Module}#Or Simply try below:
PS C:\> Invoke-Command -ComputerName TEST01 -ScriptBlock {Import-Modules Test.psm1;Test-Function #inside your Module}
I think what you are doing is below.....for the example am taking "webadministration" module:
PS C:\> Invoke-Command -ComputerName Server01 -ScriptBlock {Import-Module web*}
PS C:\> Invoke-Command -ComputerName Server01 -ScriptBlock {get-website}
The term 'get-website' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
+ CategoryInfo : ObjectNotFound: (get-website:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
+ PSComputerName : sdwuweb017
Point here is you need to import the module and work with it in an already opened session....If you specify a computername every time then PowerShell opens the Session does what you want it to do and tears down the session. To persist the importing of the
module it must be done in a session which we make using New-PSSession and then run the commands against that session.
I might have misunderstood the problem but this is what I have got so far.
Hope this helps
Knowledge is Power{Shell}. -
How to change a setting in the Java Control Panel with command line
Hi,
I am trying to figure out how to change a setting in the Java Control Panel with command line or with a script. I want to enable "Use SSL 2.0 compatible ClientHello format"
I can't seem to find any documentation on how to change settings in the Java Control Panel via the command line
Edited by: 897133 on Nov 14, 2011 7:15 AMOK figured it out. This is for the next person seeking the same solution.
When you click on the Java Control Panel (found in the Control panel) in any version of Windows, it first looks for a System Wide Java Configuration (found here: C:\Windows\Sun\Java\Deployment). At this point you must be wondering why you don't have this folder (C:\Windows\Sun\Java\Deployment) or why its empty. Well, for an enterprise environment, you have to create it and place something in it - it doesn't exist by default. So you'll need a script (I used Autoit) to create the directory structure and place the the two files into it. The two files are "deployment.properties" and "deployment.config".
Example: When you click on the Java Control Panel it first checks to see if this directory exists (C:\Windows\Sun\Java\Deployment) and then checks if there is a "deployment.config". If there is one it opens it and reads it. If it doesn't exist, Java creates user settings found here C:\Users\USERNAME\AppData\LocalLow\Sun\Java\Deployment on Windows 7.
__deployment.config__
It should look like this inside:
*#deployment.config*
*#Mon Nov 14 13:06:38 AST 2011*
*# The First line below specifies if this config is mandatory which is simple enough*
*# The second line just tells Java where to the properties of your Java Configuration*
*# NOTE: These java settings will be applied to each user file and will overwrite existing ones*
deployment.system.config.mandatory=True
deployment.system.config=file\:C\:/WINDOWS/Sun/Java/Deployment/deployment.properties
If you look in C:\Users\USERNAME\AppData\LocalLow\Sun\Java\Deployment on Windows 7 for example you will find "deployment.properties". You can use this as your default example and add your settings to it.
How?
Easy. If you want to add *"Use SSL 2.0 compatible ClientHello format"*
Add this line:
deployment.security.SSLv2Hello=true
Maybe you want to disable Java update (which is a big problem for enterprises)
Add these lines:
deployment.javaws.autodownload=NEVER
deployment.javaws.autodownload.locked=
Below is a basic AutoIt script you could use (It compiles the files into the executable. When you compile the script the two Java files must be in the directory you specify in the FileInstall line, which can be anything you choose. It will also create your directory structure):
#NoTrayIcon
#RequireAdmin
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_UseX64=n
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
Func _JavaConfig()
$ConfigFile_1 = @TempDir & "\deployment.properties"
$ConfigFile_2 = @TempDir & "\deployment.config"
FileInstall ("D:\My Documents\Autoit\Java config\deployment.properties", $ConfigFile_1)
FileInstall ("D:\My Documents\Autoit\Java config\deployment.config", $ConfigFile_2)
FileCopy($ConfigFile_1, @WindowsDir & "\Sun\Java\Deployment\", 9)
FileCopy($ConfigFile_2, @WindowsDir & "\Sun\Java\Deployment\", 9)
Sleep(10000)
FileDelete(@TempDir & "\deployment.properties")
FileDelete(@TempDir & "\deployment.config")
EndFunc
_JavaConfig()
Now if you have SCUP and have setup Self Cert for your organization, you just need to create a SCUP update for JRE.
Edited by: 897133 on Nov 16, 2011 4:53 AM -
Launching Rescue & Recovery from a Command Line
Question - I would like to know how I can launch Rescue & Recovery from a command line.
Issue that is prompting the question - My laptop was sitting in my computer bag overnight. The battery was fully charged. I BELIEVE that it was in suspend mode at the time. When I opened it in the morning, there was a message on the screen saying that a backup had not completed successfully. I then noticed that the battery had run down completely.
My Plan - I would like to launch Rescue & Recovery (as well as the Defrag utility) from Windows Task Scheduler. If I do, then all schedule tasks will be launched and controlled using the same process. Windows Task Scheduler also provides two key scheduling criteria that the IBM Rescue & Recoverry or the IBM Maintenance Manager utilities do not provide -
#1 - Run this task only when the PC is on AC power.
#2 - Run this task ony when the computer is idle (so that it doesn't slow down the PC if I happen to be working on it)
Background Concerns -
- Having a backup job automatically start when the computer is in my computer bag will run down my battery when I least expect it.
- The PC may could also be damaged due to overheating, since the sides of the computer bag block the ventilation holes.
Additional Info
- If I go to the ThinkVantage Productivity Center and select the Quick Link for "Backup Now" this will indeed launch a backup on demand. I assume that selecting this option is calling a specific executable file.
- However, the only two applicable executable files that I see in the C:\Program Files\Lenovo\Rescue and Recovery directory are "mr_gui.exe" and "wizrr.exe". Both of these files launch an interface that requires the user to make a selection. As a result, it doesn't look as if either of these files would work for unattended operation, unless there is some sort of switch that I can put in that will automatically start the backup process.
- I called the support line (only once so far), but that particular rep did not know of any way to launch Rescue & Recovery other than from the standard R&R user interfaces.
Any help is greatly appreciated,
MathewThe correct way to invoke a JSP is to make a request to the Server.
Normally you would use your browser to do this.
On a unix system, you can use the wget command to invoke a url without using a browser. -
How to change the account name in Mac OS X via a command line. When I created the account I mistyped the name. I have a management suite where I can execute remote scripts. I would like to run a script that changes the name from oldname to newname.
None of these Macs have been used currently.
Thank you,
BrianIf user account shortname, see Changing user account shortname
-
Hello,
I installed recently released SSDT BI tools for VS2012 and I can work on my existing SSIS/SSAS projects all well in VS2012. But when I try to build my SSIS/SSAS projects via the command line of VS2012, such as
devenv.exe mySolution.sln /rebuild Release /out "C:\temp\buildLog.txt"
I will get the error like below in the log file.
Error: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
Is this a known issue? If yes, any fix has been planned?
Thanks
JimmyHi Jimmy Jin,
This sounds like .NET framework problem, please refer to:
http://bchavez.bitarmory.com/archive/2007/08/23/catastrophic-failure-exception-from-hresult-0x8000ffff-e_unexpected.aspx
http://bchavez.bitarmory.com/archive/2007/08/23/catastrophic-failure-exception-from-hresult-0x8000ffff-e_unexpected.aspx
Thanks,
Eileen
If you have any feedback on our support, please click
here
Eileen Zhao
TechNet Community Support -
Setting proxy servers via the command line
I am looking to find out how to set up the system to use http and https proxies via the command line instead of through system preferences. How do I do this. I have basic command line knowledge.
This information is stored in a plist file and is easiest to manipulate with PlistBuddy. For example, to set the HTTP proxy name, use:
/usr/libexec/PlistBuddy -c "Set NetworkServices:6CFBA910-E4A0-4418-82E5-66A6480EBC71:Proxies:HTTPProxy http://my.proxy.com" /Library/Preferences/SystemConfiguration/preferences.plist
Note: 6CFBA910-E4A0-4418-82E5-66A6480EBC71 is a UUID and likely to be unique on each machine. I don't have another Mac handy to check this. If so, you'll need to do some heavy to find out which one is the interface you need to address.
Try man PlistBuddy and/or a web search for more information on how this tool can be used.
Try man PlistBuddy or a web searc for more info on using it. -
Can I manage resource designates via the command line?
I would like to manage resource designates via the command line and
the <i>"unires"</i> command does not seem to have this function. Could I use
<i>"uniadmrights"</i>?
# uniadmrights -e -add -resrc -n 10000
<br>
-e modify user rights, search filter
<br>
-add set user right on (-e only, default)
<br>
-resrc resource administration
<p>
The <I>uniadmrights</I> command is not able to assign designate rights. You can assign
rights such as the ability to create and manage public and administration
groups. The "Resource administration" flag exists so far only on the
server side, and it is currently not used by the client. This is for future use.
<p>
There are two ways to assign a designate to a resource:
<ol>
<LI>Log on as the resource via the client. There are only a few commands
available, one of them being the "Access Rights".
<P>
<LI>On the server side:
<P>
Edit the /users/unison/misc/resource.ini
file and create a new section to specify the resource designate.
<P>
[DES]
Designate0 = S=Lastname/G=Firstname
<P>
Run the unires command as follows:
<P>
% unires -mod "R=resourcename" -s DES 10000
[sysOpPsw]
</OL>
<P>
<B>Note:</B> The full resource name should be used eg. "R=Resource/N=1/CA=2/ID=2
57"This sounds like a job for wget . You'll have to build and run it on Unix or Cygwin.
You could also build a test suite to do this in various testing tools. You could even write a short Perl or Groovy script to do this, or a slightly longer Java class. -
How do I open a PDF to a specific page via the command line?
Several questions about opening PDFs from the Mac OS X command line:
1) How do I use the "open" command to open a PDF to a specific page? (I know I can open a document via: open doc_name.pdf)
2) How do I use the "open" command to pass multiple arguments (page no, zoom scale, view mode, etc...) to open a PDF file in a specific manner?
3) Does Preview handle the same parameters as Acrobat Reader? If not, what are the differences in options?
I've spent hours searching for this answer and have come up dry. I've downloaded Adobe's "PDF Open Parameters" document -- it lists all of the parameters I need, however I can't get any of them to work from the command line.
My goal: Open a PDF from the command line to a specific page. At first glance, I thought this would be simple to do and find -- however, after a lot of searching I haven't found an example on how to do it.
Anyone have any experience doing this, and care to share?
Much appreciated! ---> KelseyI don't know of any way to do what you want using the 'open' command. It can probably be done with Applescript, which you could call from a shell script. The Preview application doesn't seem to be scriptable. I don't use Acrobat, so I can't tell you anything about that. Looking through the dictionaries of the apps I do have, it seems that Skim (another PDF viewer) has an AS 'page' class. Below are a couple of links that may get you started. Look for more specific guidance in Applescript forums.
http://sourceforge.net/apps/mediawiki/skim-app/index.php?title=AppleScript
http://links.tedpavlic.com/shell_scripts/skim -
Sending Reporting Services report via the command line
I would like to either execute a subscription that sends a report via email on demand. That or just email the report without having to edit the subscription date. Can this be done from the command line? I see there is the rs.exe utility
that allows you to deploy reports and run configuration commands, but I would like to execute and email the report. Is this possible?The easiest way to run a subscription manually is to run the agent job in SQL server that is associated to the subscription. You'll need to know the subscription ID to do that. So, you could either run it through SSMS, or if it needs to be in
command line, interact with SQL Server via command line and do so.
You can use the ReportService2010 API methods and and powershell script to identify the subscription ID
https://msdn.microsoft.com/en-us/library/reportservice2010.reportingservice2010.aspx?f=255&MSPPError=-2147217396 -
Method to restart Oracle Apps 11i OPP via Unix command line
Hi All,
Does any one knows if there any way to restart Oracle Apps 11i Output Post Processor (OPP) via the UNIX command line?
ThanksOracle-User wrote:
Do you recommend that I set the profile option Concurrent: OPP Response Timeout to a higher value instead of increasing OPP Processes from 1 to 2? Yes.
I'm thinking that increasing OPP Response Timeout to a higher value will not solve our issue as it seems that once we get our first OPP Timeout error, all of the requests that need the OPP fail. We've had this occur on a Saturday, which is a day where the volume of jobs that need the OPP is very low. The error you are getting is related to the timeout and it has nothing to do with the number of OPP processes you are running on. Please set this profile option and check then (after you bounce the OPP).
Thanks,
Hussein -
Checkin activity via DTR command line tool
Hello,
I tried to maintain Access Control Lists in my DTR (Web AS 640, SP16), and now I have a weird situation:
The NW Developer Studio shows that acl.xml unter /ws is checked out by user superadmin (that's correct as I used that one to maintain the ACLs), but it doesn't show any activity of superadmin.
DTR command line tool shows the activity:
>acts -U superadmin -o -uf
ActualName State
act_w_system_config_active_u_superadmin_t_2006_06_06_12_42_33_GMT_6dca269b-9cb4-4d96-a663-fbe98c715265 Open
But when I try to checkin the tool cannot find the activity any more:
>checkin -a act_w_system_config_active_u_superadmin_t_2006_06_06_12_42_33_GMT_6dca269b-9cb4-4d96-a663-fbe98c715265 -w //
system/config/active/ -U superadmin
The specified activity does not exist. Please check and try again.
Any idea how I can get rid of this lock on acl.xml in /ws?
Thanks and best regards,
CorneliaHi,
perhaps your release is higher equal to 711.
From 7.11 onwards the DI command line tools are not provided in the eclipse/tools folder anymore.
Instead they are provdided in the SCA file DICLIENTS.SCA --> tcdicmd_tools~sda.sda
Extract this SDA file from the SCA and then unzip it to get the DI command line tools.
Hint: Once you rename the SCA to zip, you can extract with a normal extractor like winzip or winrar. Once you managed to extract the file tcdicmd_tools~sda.sda rename it also to zip and extract it too using normal extractor tools. Then you'll have a similar folder structure like on lower releases in the eclipse/tools folder was.
You find the SCA file here:
http://service.sap.com/patches --> Browse our Download Catalog - SAP NetWeaver and complementary products
-- SAP NETWEAVER CE -- SAP EHP1 FOR SAP NW CE 7.1 -- Entry by Component -- NW Development
Infrastructure --> DI CLIENTS 7.11
(Obviously if you have 720 or 730 then adjust the path accordingly)
See also https://cw.sdn.sap.com/cw/docs/DOC-109423
I hope this helps.
Best Regards,
Ervin -
How to initialize consumer from supplier via the command line ?
We have a small directory that gets loaded from scratch every night.
We also setted up replication to a couple of consumers (read only).
The problem is that since the data is loaded everynight, we get compliants in logs "Replica has a different generation ID than local database"
I can initialize the consumers via the gui. But how to do it from the command line from the master ? I know that an option is to do a db2ldif and then an ldif2db on the consumer but it's not an option for us.
I also tried setting the nsds5beginreplicarefresh to start, but that doesn't seem to do a full init.
There must be a way, as the gui actually does it.
TIABasically it's very simple. Supposing your replication is already setup and you reload data to your master. If you want the initialization pushed to all the replicas automatically, you can simply setup a flag in all the agreements. This flag is called nsDS5BeginReplicaRefresh.
Please check the link:
http://docs.sun.com/source/816-6699-10/confattr.html#18194
nsDS5BeginReplicaRefresh
Allows you to initialize a replica. This attribute is absent by default. However, if you add this attribute with a value of start, the server reinitializes the replica and removes the attribute value.
Property
Value
Entry DN
cn=ReplicationAgreementName,cn=replica,cn="suffixName",
cn=mapping tree,cn=config
Valid Range
stop | start
Default Value
N/A
Syntax
DirectoryString
Example
nsDS5BeginReplicaRefresh: start
Please note that this value is absent by default and will disappear whenever initialization to replica finished. Next time whenever you want it to happen again, use ldapmodify to set this flag up.
Also, if you want this happen to all the master's replicas, you have to setup for all the agreements.
I already tested and it turns out very magic.
So what you should do is whenver your master get reloaded, when it gets finished, call ldapmodify to set the attribute to be "start".
Hope it helps! -
Hi.
Trying to give some non-admin users the right to remote control workstations via the user object. I have followed the tids/documentation for
this when using ConsoleOne and that works just fine.
When trying to remote control a user object with desktop4.exe (dopps zenwsbrowser actually) there seems to be some rights missing. Making the
user into an admin solves the problem and until the remote controlled user changes IP on his workstation it keeps on working even when removing
admin rights.
So the question is simply put:
What rights is needed on user AND workstation objects to remote control with desktop4.exe? Or if someone knows how I can check what attributes
has changed on a user after a remote control has been performed that would be sweet too.
/anders westerbergAnders,
It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.
Has your problem been resolved? If not, you might try one of the following options:
- Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
- Check all of the other support tools and options available at
http://support.novell.com.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://support.novell.com/forums)
Be sure to read the forum FAQ about what to expect in the way of responses:
http://support.novell.com/forums/faq_general.html
If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.
Good luck!
Your Novell Product Support Forums Team
http://support.novell.com/forums/ -
Rollbak of SPAM transaction via the command line
Hi All,
Can you please tell me, what command line can I exucute in order to rollbak the installation of an addon via SPAM?
I can't not connect to my SAP solution manager via SAP GUI because the installation of the Addon failed.
ThanksOnce applied you cant uninstall the patch. So its better to open an OSS call with SAP to resolve your issue
Thanks
Prince Jose
Maybe you are looking for
-
As stated above, if i go out during the day, buy an app, download a song and take 20 photo's when i get home my devices will all take 30mins to sync before i can even browse websites or check my facebook at home. Can i set up my iCloud to only sync w
-
Errors Found after Server Diagnostics
Hi All I am in Outlooksoft 4.2 with SP1 , After Creating a new application set when I try to access the Manage Members it pop up with the following errors 1) Runt time error ' 429' : ActiveX component can't create object So I followed to do server
-
ECC 6.0 Upgrade - Problem in phase PARDIST_SHD
Upgrading from 4.6C to ECC 6.0 on Windows/SQL Server. Phase PARDIST_SHD failed with the following error: "Table change not possible. There is a DB trigger on the table." This problem is documented in the note 825146 (Add Info on upgrading to NW04s)
-
Recently I found that I could no longer enter text in the search field of Launchpad. To the best of my knowledge I haven't made any changes recently that would affect it. Rebooting doesn't change anything. Any thoughts?
-
Anybody has good experience with wireless printing? Airprint is not supported by older printers. Any expreriences with Printopia? or any other programs out there that allow you to print from iPhone or iPad? thanks