-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresetpolicy.cmd
24 lines (24 loc) · 1.49 KB
/
resetpolicy.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@echo off
:: +:::-----------------------------------------------------------------+
:: Copyright (C) 2017 Anne Gerben van Assen
:: +--------------+-----------------------------------------------------+
:: File: resetpolicy.cmd
:: +--------------+-----------------------------------------------------+
:: Purpose : run resetpolicy.vbs
:: +--------------+-----------------------------------------------------+
:: Author: Anne Gerben van Assen
:: +--------------+-----------------------------------------------------+
:: Date: 17-08-2017
:: +--------------+-----------------------------------------------------+
:: Version: 1.0.0
:: +--------------+-----------------------------------------------------+
:: File History:
:: +-------+----------+-------------------------------------------------+
:: Name Date Change
:: +-------+----------+------------------------------------------------+
:: AG 17-08-2017 initial version
:: +-------+----------+------------------------------------------------+
:: +--------------------------------------------------------------------+
title run resetpolicy.vbs
cls
powershell.exe -Command "Start-Process cmd '/c cd /d %cd% && %systemdrive%\Windows\system32\cscript.exe %~dp0resetpolicy.vbs' -Verb RunAs"