これはうまくいきません:
$server = "server";
$cmd = "hostname";
C:\Users\ss\Documents\Scripts\PSTools\PsExec.exe \\$server $cmd;
しかし、これは:
$server = "server";
C:\Users\ss\Documents\Scripts\PSTools\PsExec.exe \\$server hostname;
なんで?
これはうまくいきません:
$server = "server";
$cmd = "hostname";
C:\Users\ss\Documents\Scripts\PSTools\PsExec.exe \\$server $cmd;
しかし、これは:
$server = "server";
C:\Users\ss\Documents\Scripts\PSTools\PsExec.exe \\$server hostname;
なんで?