Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

powershell test-path remote computer

$cred = Get-Credential
Invoke-Command -ComputerName Computer1 -Credential $cred -ScriptBlock { Test-Path "C:Temp	est.txt" }
Source by www.reddit.com #
 
PREVIOUS NEXT
Tagged: #powershell #remote #computer
ADD COMMENT
Topic
Name
6+1 =