Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # connect to archive disk
- #
- $username = 'archive'
- $password = ConvertTo-SecureString 'qpJvMZwivnLAuQSuD9v2EwKBwTyVoHP51uc8qkOR6QZTM1eUJNb7Q2tViun7QIpFp4v3iHfEn9JM6mJbu+QvfQ==' -AsPlainText -Force
- $cred = new-object -typename System.Management.Automation.PSCredential `
- -argumentlist $username, $password
- $loc = '\\archive.file.core.windows.net\archive'
- new-psdrive -Name archive -PSProvider FileSystem -Root $loc -Credential $cred
- # move the packed files to new location - disabled due to network traffic (too high)
- <#
- ls archive:\
- cd archive:\packed
- #copy-item K:\Base\Media\collect\lala.txt archive:\packed
- copy-item K:\Base\Media\packed\*.7z archive:\packed
- #move-item K:\Base\Media\packed\*.7z archive:\packed
- (Get-History)[-1].EndExecutionTime - (Get-History)[-1].StartExecutionTime
- remove-psdrive archive
- get-psdrive
- #>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement