Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $FFPathDefault = -join($env:ProgramFiles,"\Mozilla Firefox\defaults\pref");
- $FFPath32 = -join(${env:ProgramFiles(x86)},"\Mozilla Firefox\defaults\pref");
- $copypath = "\\plgd01.local\SysVol\plgd01.local\Policies\{D1456C7E-3B9B-49F6-A113-2A2D3A4A74F1}\Machine\Scripts\Startup\enableroot.js"
- if (Test-Path -Path $FFPathDefault){
- Copy-Item -Path $copypath -Destination $FFPathDefault
- }
- if (Test-Path -Path $FFPath32){
- Copy-Item -Path $copypath -Destination $FFPath32
- }
- New-Item C:\policyexecuted -ItemType file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement