mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-26 12:47:21 +00:00
powershell fix
This commit is contained in:
1 parent
c101a58c44
commit
9286e4c805
2 files changed
+2
-2
No files matched your search
@@ -414,7 +414,7 @@ New-GPLink -Name "Chrome" -Target $workbenchou
|
||||
#Logon Script Reg Keys
|
||||
New-GPO -Name "User Logon Script"
|
||||
Set-GPRegistryValue -Name "User Logon Script" -Key "HKCU\Environment" -ValueName "LogonScript" -Type String -Value "C:\eidf\logon.ps1"
|
||||
Set-GPRegistryValue -Name "User Logon Script" -Key "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce" -ValueName "ExecutionPolicy" -Type String -Value "C:\eidf\logon.ps1"
|
||||
Set-GPRegistryValue -Name "User Logon Script" -Key "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce" -ValueName "ExecutionPolicy" -Type String -Value "powershell C:\eidf\logon.ps1"
|
||||
New-GPLink -Name "User Logon Script" -Target $workbenchou
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
- name: Copy logon script to VMs
|
||||
tags:
|
||||
- copy_logon_script
|
||||
- logon
|
||||
block:
|
||||
- name: Copy logon script to VMs
|
||||
win_copy:
|
||||
|
||||
Reference in new issue
Block a user