Class WindowsRemoteProcessUtils
java.lang.Object
org.metricshub.wmi.windows.remote.WindowsRemoteProcessUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringBuilds a new output file name, with 99.9999999% chances of being unique on the remote systemstatic StringcopyLocalFilesToShare(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 CharsetgetWindowsEncodingCharset(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
-