change backup location to Default User profile
This commit is contained in:
parent
7d7c775044
commit
a23cdcf345
|
@ -10,12 +10,12 @@ Positional parameters:
|
||||||
[2] b - backup
|
[2] b - backup
|
||||||
r - restore
|
r - restore
|
||||||
|
|
||||||
Administrator rights are not required
|
Administrator rights are not required for restore and required for backup.
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
|
|
||||||
:Start
|
:Start
|
||||||
set workingdir="%USERPROFILE%\AppData\Roaming\1C\1CEStart"
|
set workingdir="%USERPROFILE%\AppData\Roaming\1C\1CEStart"
|
||||||
set archivedir="D:\settings"
|
set archivedir="%SYSTEMDRIVE%\Users\Default\AppData\Roaming\1C\1CEStart"
|
||||||
set choice=%~2
|
set choice=%~2
|
||||||
|
|
||||||
:Set_Choice
|
:Set_Choice
|
||||||
|
|
32
README.md
32
README.md
|
@ -1,4 +1,5 @@
|
||||||
# Tweaks for Windows
|
# Tweaks for Windows
|
||||||
|
|
||||||
Tools for managing Windows setting
|
Tools for managing Windows setting
|
||||||
|
|
||||||
* [`hvswitch`.cmd](https://git.hmp.today/pavel.muhortov/tweaks-for-windows#hvswitch-cmd)
|
* [`hvswitch`.cmd](https://git.hmp.today/pavel.muhortov/tweaks-for-windows#hvswitch-cmd)
|
||||||
|
@ -6,7 +7,9 @@ Tools for managing Windows setting
|
||||||
* [`1cibases`.cmd](https://git.hmp.today/pavel.muhortov/tweaks-for-windows#1cibases-cmd)
|
* [`1cibases`.cmd](https://git.hmp.today/pavel.muhortov/tweaks-for-windows#1cibases-cmd)
|
||||||
|
|
||||||
____
|
____
|
||||||
|
|
||||||
## `hvswitch`.cmd
|
## `hvswitch`.cmd
|
||||||
|
|
||||||
**Description:** Microsoft Hyper-V switch on/off
|
**Description:** Microsoft Hyper-V switch on/off
|
||||||
**Dependencies:** Windows (tested version 10.0.19043)
|
**Dependencies:** Windows (tested version 10.0.19043)
|
||||||
|
|
||||||
|
@ -16,32 +19,40 @@ ____
|
||||||
| 2 | **[y]** |enable Hyper-V, if it off| `None` |
|
| 2 | **[y]** |enable Hyper-V, if it off| `None` |
|
||||||
| 2 | **[n]** |disable Hyper-V, if it on| `None` |
|
| 2 | **[n]** |disable Hyper-V, if it on| `None` |
|
||||||
|
|
||||||
|
|
||||||
Example usage in terminal:
|
Example usage in terminal:
|
||||||
|
|
||||||
```cmd
|
```cmd
|
||||||
.\hvswitch.cmd qn y
|
.\hvswitch.cmd qn y
|
||||||
```
|
```
|
||||||
|
|
||||||
____
|
____
|
||||||
|
|
||||||
## `rdpusers`.cmd
|
## `rdpusers`.cmd
|
||||||
|
|
||||||
**Description:** RDS Shadow Connection
|
**Description:** RDS Shadow Connection
|
||||||
**Dependencies:** Windows (tested version 6.3.9600), permission on target hostname (*gpedit.msc -> Computer Configuration -> Policies -> Administrative Templates -> Windows components -> Remote Desktop Services -> Remote Session Host -> Connections -> Set rules for remote control of Remote Desktop Services user sessions: Full Control without users's permission*)
|
**Dependencies:** Windows (tested version 6.3.9600), permission on target hostname (*gpedit.msc -> Computer Configuration -> Policies -> Administrative Templates -> Windows components -> Remote Desktop Services -> Remote Session Host -> Connections -> Set rules for remote control of Remote Desktop Services user sessions: Full Control without users's permission*)
|
||||||
|
|
||||||
|
|
||||||
| POSITION | PARAMETERS | DESCRIPTION | DEFAULT |
|
| POSITION | PARAMETERS | DESCRIPTION | DEFAULT |
|
||||||
|-----------|--------------|------------------------|---------------|
|
|-----------|--------------|------------------------|---------------|
|
||||||
| 1 | **[host]** |hostname or address with sessions for connect|`None`|
|
| 1 | **[host]** |hostname or address with sessions for connect|`None`|
|
||||||
|
|
||||||
|
|
||||||
Example usage in terminal:
|
Example usage in terminal:
|
||||||
|
|
||||||
```cmd
|
```cmd
|
||||||
.\rdpusers.cmd ts.domain.local
|
.\rdpusers.cmd ts.domain.local
|
||||||
```
|
```
|
||||||
|
|
||||||
____
|
____
|
||||||
|
|
||||||
## `1cibases`.cmd
|
## `1cibases`.cmd
|
||||||
**Description:** 1CEStart backup/restore settings
|
|
||||||
**Dependencies:** Windows (tested version 6.3.9600); launch method if automation is needed (*gpedit.msc -> User Configuration -> Administrative Templates -> System -> Logon -> Run these programs at user logon: C:\Windows\System32\GroupPolicy\User\Scripts\Logon\1cibases.cmd qn r)
|
**Description:**
|
||||||
|
> 1CEStart backup/restore settings
|
||||||
|
|
||||||
|
**Dependencies:**
|
||||||
|
>
|
||||||
|
> * Windows (tested version 6.3.9600)
|
||||||
|
> * privileged rights for backup
|
||||||
|
|
||||||
| POSITION | PARAMETERS | DESCRIPTION | DEFAULT |
|
| POSITION | PARAMETERS | DESCRIPTION | DEFAULT |
|
||||||
|-----------|--------------|------------------------|---------------|
|
|-----------|--------------|------------------------|---------------|
|
||||||
|
@ -49,8 +60,11 @@ ____
|
||||||
| 2 | **[b]** |restore | `None` |
|
| 2 | **[b]** |restore | `None` |
|
||||||
| 2 | **[r]** |backup | `None` |
|
| 2 | **[r]** |backup | `None` |
|
||||||
|
|
||||||
|
### `1cibases`.cmd setup
|
||||||
|
|
||||||
Example usage in terminal:
|
1\. Create and edit `%SYSTEMDRIVE%\Users\Default\AppData\Roaming\1C\1CEStart\ibases.v8i` manually or by backup your settings running ```.\1cibases.cmd qn b``` as Administrator. New user profiles will have this `ibases.v8i`.
|
||||||
```cmd
|
|
||||||
.\1cibases.cmd qn r
|
2\. Only if you need to rewrite user changes at their logon:
|
||||||
```
|
>
|
||||||
|
> * Create `%SYSTEMDRIVE%\Windows\System32\GroupPolicy\User\Scripts\Logon\1cibases.cmd`
|
||||||
|
> * gpedit.msc -> User Configuration -> Administrative Templates -> System -> Logon -> Run these programs at user logon: %SYSTEMDRIVE%\Windows\System32\GroupPolicy\User\Scripts\Logon\1cibases.cmd qn r
|
||||||
|
|
Loading…
Reference in New Issue
Block a user