title: PsExec use MKDIR
body: <p>Hi I try to create a folder on local user which doesn't have access right.
  So the script is to help user creating a folder by using domain admin account and will be converted to EXE when it run.
  So I figure out using PsExec to use it. But I'm no idea how to combine it with MKDIR.
  Here is the BAT script.</p>
  
  <pre><code>@echo off
  setlocal enableextensions
  set today=%date:~10,4%-%date:~7,2%-%date:~4,2%
  set todayyear=%date:~10,4%
  set todaymonth=%date:~10,4%-%date:~7,2%
  set pass_local=adminpass
  set path_pskill="\\SERVER\$PROGRAM\PsKill.exe"
  set path_psexec="\\SERVER\$PROGRAM\PsExec.exe"
  set path_backup=\\SERVER\$WORKSTATIONS\UPGRADE
  set path_sourcedrive=C:\Users
  set path_source01=AppData\Local\Microsoft\Outlook
  set path_source02=Contacts
  set path_source03=Desktop
  set path_source04=Documents
  set path_source05=Downloads
  set path_source06=Favorites
  set path_source07=Pictures
  set path_source08=Music
  set path_source09=Videos
  
  subst b: "%path_backup%"
  %path_psexec% \\%computername% -u DOMAIN\Administrator -p %pass_local% "cmd /C \"mkdir \"b:\%todayyear%\%todaymonth%\%username%\"\""
  
  subst b: /D
  </code></pre>
  
  <p>Other simple to understand is:</p>
  
  <pre><code>psexec.exe \\hostname -u DOMAIN\Administrator -p adminpass "cmd /C \"mkdir \"b:\%todayear%\%todaymonth%\%username\"\""
  </code></pre>
  
  <p>Anyone please can help ?</p>