Skip to content

Instantly share code, notes, and snippets.

@patsevanton
Forked from t1m0thyj/choco.wsb
Created February 28, 2022 05:15
Show Gist options
  • Select an option

  • Save patsevanton/e69ba82b8df218a89ba546c85ef4aabb to your computer and use it in GitHub Desktop.

Select an option

Save patsevanton/e69ba82b8df218a89ba546c85ef4aabb to your computer and use it in GitHub Desktop.

Revisions

  1. @t1m0thyj t1m0thyj revised this gist Jan 28, 2021. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions choco.wsb
    Original file line number Diff line number Diff line change
    @@ -2,10 +2,10 @@
    <MappedFolders>
    <MappedFolder>
    <HostFolder>C:\Users\Public\Documents\</HostFolder>
    <ReadOnly>true</ReadOnly>
    <ReadOnly>false</ReadOnly>
    </MappedFolder>
    </MappedFolders>
    <LogonCommand>
    <Command>powershell -Command "Start-Process powershell -Verb RunAs -ArgumentList \"-NoExit -Command Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))\""</Command>
    <Command>C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Unrestricted -Command "start powershell { -NoExit -Command \"&amp; { Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')); Import-Module "$env:ProgramData\chocolatey\helpers\chocolateyInstaller.psm1"; Update-SessionEnvironment; cd C:\Users\WDAGUtilityAccount }\" }"</Command>
    </LogonCommand>
    </Configuration>
  2. @t1m0thyj t1m0thyj created this gist Dec 15, 2020.
    11 changes: 11 additions & 0 deletions choco.wsb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    <Configuration>
    <MappedFolders>
    <MappedFolder>
    <HostFolder>C:\Users\Public\Documents\</HostFolder>
    <ReadOnly>true</ReadOnly>
    </MappedFolder>
    </MappedFolders>
    <LogonCommand>
    <Command>powershell -Command "Start-Process powershell -Verb RunAs -ArgumentList \"-NoExit -Command Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))\""</Command>
    </LogonCommand>
    </Configuration>