# grantSmbAccess.ps1 $computername='fileserver' $shareName='TEST' $account='domain\groupOrUsername' $accessType='read' # also change or full invoke-command -computername $computername -scriptblock{…
# Prep on Client $domain='intranet.kimconnect.com' Enable-WSManCredSSP -Role "Client" -DelegateComputer "*.$domain" # Prep on Server Enable-WSManCredSSP…
$filePath="C:\Program Files\Google\Chrome\Application\chrome.exe" function findPidOfFile($filepath){ try{ if (!(Get-Command handle.exe -ErrorAction SilentlyContinue)) { if (!(Get-Command choco.exe -ErrorAction…