Im trying to get a .cmd-script that pulls the serialnumber from the bios and outputs it in the chatwindow but I cant get it to work. code:
WMIC bios get serialnumber /format:list'
If I run the cmd on my computer it works fine but when I run it from rescue I get cryptic letters in chatwindow. What am I doing wrong?
While Im at it I can ask if there is a way to get the serial-information under the System Info tab in technician console?
I know it's been a while, but try this instead (courtesy of members of our support and development team).@echo off wmic SystemEnclosure GET SMBIOSAssetTag > tmp.txttype tmp.txt
What's happening is that the WMIC command outputs Unicode text as opposed to ASCII text (which the Tech console understands) the "type" command converts the Unicode to plain ASCII.
At this time the remote system serial number cannot be pulled into the System Info tab.
But what is the AML file?
Nevermore. If you need the AMLfile copy this to notepad
<name>SAMPLE - Defragment Status - C and D Drive</name>
C:\Logmein_Rescue_Scripts\Defrag_Info_Sample\defrag info Cdrive.cmd
<name>SAMPLE - Device Driver details</name>
SAMPLE - Software Deployment - Rescue AVI Converter
<name>SAMPLE - MAC Address retrieval</name>
<name>SAMPLE - IP Config command</name>
When you save it, go to Save as Type and change it to All Files. Then name it Rescue Sample Scripts Definition.XML . Then you are done
A useful thing to do is redirect output from VBS scripts to the console window, i.e. so that instead of say a message box popping up on the screen of the machine to which you are connected you get the output on the chat window in LogMeIn (by redirecting output to the console). There are 2 simple steps:
1) Use a batch file to call the script using 'cscript', format: cscript <VBscript name>
2) Add the VBscript file as a resource file
Example (OUTPUT A LIST OF PRINTERS):
1) Create a batch file called printer.bat which contains one line:
2) Create a VBscript file called printer.vbs which contains the following (to enumerate printers):
Dim objWMIService, objItem, colItems, strComputer, intPrinters
intPrinters = 1
' Pure WMI Section
Set objWMIService = GetObject _
("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery _
("SELECT * FROM Win32_Printer")
'Call Wait() ' Goto Sub Routine at the end
' On Error Resume Next
For Each objItem In colItems
sOutput = sOutput & vbCRLF & objItem.name
intPrinters = intPrinters + 1
If strComputer = "." then
strComputer = "Local Host"
else strComputer = strComputer
WScript.Echo "Wait 2 mins for " & strComputer _
& " to enumerate printers"
3) Add the batch file as the script file and the VBscript file as the resource file.
4) When you DEPLOY you should get a list of the remote printers...
Hi, I'm wondering if anyone has some examples of scripts for the Mac? Can we run commands in the Terminal? Applescript?
I want to script a reinstall of Java 1.5 which is removed during a Snow Leopard upgrade.
I want to know if it's possible to run these commands as a script
Step 1 Download a file eg
Step 2 Run these commands in Terminal
sudo mv 1.5.0 /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0-leopard
sudo rm 1.5.0
sudo ln -s 1.5.0-leopard 1.5.0
sudo chown -R root:wheel ./1.5.0-leopard
They should be run in a terminal window, but there may be a way to do it with AppleScript. I hope you can give me some pointers. The user will need to enter a password for the first sudo command