Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $DiretorioArquivo = ""
- Function PUPILOMAN {
- $ComandoGET = Get-ChildItem -Force E:\Raiz1 | select-object name
- foreach ( $ListaPastas in $ComandoGET){
- $ReplacePasta = $ListaPastas -replace "@{Name=", "" -replace "}", ""
- cd E:\Raiz1\Usuario\$ReplacePastaAppData\Roaming\Mozilla\Firefox\Profiles\
- $ComandoGetProfiles = Get-ChildItem -Force | select-object name
- foreach ( $ListaPastaProfile in $ComandoGetProfiles){
- $ReplacePastaProfile = $ListaPastaProfile -replace "@{Name=", "" -replace "}", ""
- robocopy /zb /e /sec /r:0 /w:0 "$DiretorioArquivo" "E:\Raiz1\Usuario\$ReplacePastaAppData\Roaming\Mozilla\Firefox\Profiles\$ReplacePastaProfile\"
- }
- }
- }
- PUPILOMAN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement