Class WindowsRemoteProcessUtils
java.lang.Object
org.metricshub.wmi.windows.remote.WindowsRemoteProcessUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Builds a new output file name, with 99.9999999% chances of being unique on the remote systemstatic String
copyLocalFilesToShare
(String command, List<String> localFiles, String uncSharePath, String remotePath) Copy the local files to the share and update the command with their path as seen in the remote system.static Charset
getWindowsEncodingCharset
(WindowsRemoteExecutor windowsRemoteExecutor, long timeout) Get the CharSet from the Win32_OperatingSystem CodeSet.
-
Method Details
-
getWindowsEncodingCharset
public static Charset getWindowsEncodingCharset(WindowsRemoteExecutor windowsRemoteExecutor, long timeout) throws TimeoutException, WqlQuerySyntaxException, WindowsRemoteException Get the CharSet from the Win32_OperatingSystem CodeSet. (if not found by default Latin-1 windows-1252)- Parameters:
windowsRemoteExecutor
- WindowsRemoteExecutor instancetimeout
- Timeout in milliseconds.- Returns:
- the encoding charset from Win32_OperatingSystem
- Throws:
TimeoutException
- To notify userName of timeoutWqlQuerySyntaxException
- On WQL syntax errorsWindowsRemoteException
- For any problem encountered on remote- See Also:
-
buildNewOutputFileName
Builds a new output file name, with 99.9999999% chances of being unique on the remote system- Returns:
- file name
-