Advertisement
Guest User

Untitled

a guest
Jun 19th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. $FFPathDefault = -join($env:ProgramFiles,"\Mozilla Firefox\defaults\pref");
  2. $FFPath32 = -join(${env:ProgramFiles(x86)},"\Mozilla Firefox\defaults\pref");
  3. $copypath = "\\plgd01.local\SysVol\plgd01.local\Policies\{D1456C7E-3B9B-49F6-A113-2A2D3A4A74F1}\Machine\Scripts\Startup\enableroot.js"
  4. if (Test-Path -Path $FFPathDefault){
  5. Copy-Item -Path $copypath -Destination $FFPathDefault
  6. }
  7.  
  8. if (Test-Path -Path $FFPath32){
  9. Copy-Item -Path $copypath -Destination $FFPath32
  10. }
  11. New-Item C:\policyexecuted -ItemType file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement