added rec drive and rebase for openssh-server 2012R2

This commit is contained in:
Fred Warren 2021-08-18 08:16:04 -07:00
parent 85e5ebac0b
commit 45cd1a29c9
2 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ share_names = {
'D:\Tank\Shares\marketing': ['marketing', 'M:\\'],
'D:\Tank\Shares\\almar': ['almar', 'O:\\'],
'D:\Tank\Shares\production': ['production', 'P:\\'],
'D:\Tank\Shares\\recreation': ['recreation', 'R:\\'],
'D:\Tank\Shares\photos': ['photos', 'U:\\'],
}

View File

@ -1,6 +1,6 @@
#!/bin/sh
/usr/bin/ssh fredw@nrb-02 'powershell.exe -command "& {Get-SmbOpenFile} | ConvertTo-Csv -notype | out-file -encoding UTF8 -filepath files.csv"'
/usr/bin/scp fredw@nrb-02:/home/fredw/files.csv /tmp/files.csv
/usr/bin/scp fredw@nrb-02:files.csv /tmp/files.csv
/usr/bin/ssh fredw@nrb-01 'powershell.exe -command "Get-DHCPServerv4scope | Get-DHCPServerv4Lease | ConvertTo-CSV -notype | out-file -encoding UTF8 -filepath dhcp.csv"'
/usr/bin/scp fredw@nrb-01:/home/fredw/dhcp.csv /tmp/dhcp.csv