default selection is now none
This commit is contained in:
@@ -4,26 +4,17 @@ import { Script } from '@/domain/Script';
|
|||||||
import applicationFile from 'js-yaml-loader!./../application.yaml';
|
import applicationFile from 'js-yaml-loader!./../application.yaml';
|
||||||
import { parseCategory } from './CategoryParser';
|
import { parseCategory } from './CategoryParser';
|
||||||
|
|
||||||
interface ApplicationResult {
|
export function parseApplication(): Application {
|
||||||
readonly application: Application;
|
|
||||||
readonly selectedScripts: Script[];
|
|
||||||
}
|
|
||||||
|
|
||||||
export function buildApplication(): ApplicationResult {
|
|
||||||
const name = applicationFile.name as string;
|
const name = applicationFile.name as string;
|
||||||
const version = applicationFile.version as number;
|
const version = applicationFile.version as number;
|
||||||
const categories = new Array<Category>();
|
const categories = new Array<Category>();
|
||||||
const selectedScripts = new Array<Script>();
|
|
||||||
if (!applicationFile.actions || applicationFile.actions.length <= 0) {
|
if (!applicationFile.actions || applicationFile.actions.length <= 0) {
|
||||||
throw new Error('Application does not define any action');
|
throw new Error('Application does not define any action');
|
||||||
}
|
}
|
||||||
for (const action of applicationFile.actions) {
|
for (const action of applicationFile.actions) {
|
||||||
const category = parseCategory({
|
const category = parseCategory(action);
|
||||||
category: action,
|
|
||||||
selectedScripts,
|
|
||||||
});
|
|
||||||
categories.push(category);
|
categories.push(category);
|
||||||
}
|
}
|
||||||
const app = new Application(name, version, categories);
|
const app = new Application(name, version, categories);
|
||||||
return { application: app, selectedScripts };
|
return app;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,58 +5,48 @@ import { parseDocUrls } from './DocumentationParser';
|
|||||||
|
|
||||||
let categoryIdCounter: number = 0;
|
let categoryIdCounter: number = 0;
|
||||||
|
|
||||||
interface IParsingContext {
|
|
||||||
category: YamlCategory;
|
|
||||||
selectedScripts: Script[];
|
|
||||||
}
|
|
||||||
|
|
||||||
interface ICategoryChildren {
|
interface ICategoryChildren {
|
||||||
subCategories: Category[];
|
subCategories: Category[];
|
||||||
subScripts: Script[];
|
subScripts: Script[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export function parseCategory(context: IParsingContext): Category {
|
export function parseCategory(category: YamlCategory): Category {
|
||||||
if (!context.category.children || context.category.children.length <= 0) {
|
if (!category.children || category.children.length <= 0) {
|
||||||
throw Error('Category has no children');
|
throw Error('Category has no children');
|
||||||
}
|
}
|
||||||
const children: ICategoryChildren = {
|
const children: ICategoryChildren = {
|
||||||
subCategories: new Array<Category>(),
|
subCategories: new Array<Category>(),
|
||||||
subScripts: new Array<Script>(),
|
subScripts: new Array<Script>(),
|
||||||
};
|
};
|
||||||
for (const categoryOrScript of context.category.children) {
|
for (const categoryOrScript of category.children) {
|
||||||
parseCategoryChild(categoryOrScript, children, context);
|
parseCategoryChild(categoryOrScript, children, category);
|
||||||
}
|
}
|
||||||
return new Category(
|
return new Category(
|
||||||
/*id*/ categoryIdCounter++,
|
/*id*/ categoryIdCounter++,
|
||||||
/*name*/ context.category.category,
|
/*name*/ category.category,
|
||||||
/*docs*/ parseDocUrls(context.category),
|
/*docs*/ parseDocUrls(category),
|
||||||
/*categories*/ children.subCategories,
|
/*categories*/ children.subCategories,
|
||||||
/*scripts*/ children.subScripts,
|
/*scripts*/ children.subScripts,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function parseCategoryChild(
|
function parseCategoryChild(
|
||||||
categoryOrScript: any, children: ICategoryChildren, parent: IParsingContext) {
|
categoryOrScript: any, children: ICategoryChildren, parent: YamlCategory) {
|
||||||
if (isCategory(categoryOrScript)) {
|
if (isCategory(categoryOrScript)) {
|
||||||
const subCategory = parseCategory(
|
const subCategory = parseCategory(categoryOrScript as YamlCategory);
|
||||||
{
|
|
||||||
category: categoryOrScript as YamlCategory,
|
|
||||||
selectedScripts: parent.selectedScripts,
|
|
||||||
});
|
|
||||||
children.subCategories.push(subCategory);
|
children.subCategories.push(subCategory);
|
||||||
} else if (isScript(categoryOrScript)) {
|
} else if (isScript(categoryOrScript)) {
|
||||||
const yamlScript = categoryOrScript as YamlScript;
|
const yamlScript = categoryOrScript as YamlScript;
|
||||||
const script = new Script(
|
const script = new Script(
|
||||||
/* name */ yamlScript.name,
|
/* name */ yamlScript.name,
|
||||||
/* code */ yamlScript.code,
|
/* code */ yamlScript.code,
|
||||||
/* docs */ parseDocUrls(yamlScript));
|
/* docs */ parseDocUrls(yamlScript),
|
||||||
|
/* is recommended? */ yamlScript.recommend);
|
||||||
children.subScripts.push(script);
|
children.subScripts.push(script);
|
||||||
if (yamlScript.default === true) {
|
|
||||||
parent.selectedScripts.push(script);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
throw new Error(`Child element is neither a category or a script.
|
throw new Error(`Child element is neither a category or a script.
|
||||||
Parent: ${parent.category.category}, element: ${categoryOrScript}`);
|
Parent: ${parent.category}, element: ${categoryOrScript}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import { IUserSelection } from './Selection/IUserSelection';
|
|||||||
import { AsyncLazy } from '../../infrastructure/Threading/AsyncLazy';
|
import { AsyncLazy } from '../../infrastructure/Threading/AsyncLazy';
|
||||||
import { Signal } from '../../infrastructure/Events/Signal';
|
import { Signal } from '../../infrastructure/Events/Signal';
|
||||||
import { ICategory } from '../../domain/ICategory';
|
import { ICategory } from '../../domain/ICategory';
|
||||||
import { buildApplication } from '../Parser/ApplicationParser';
|
import { parseApplication } from '../Parser/ApplicationParser';
|
||||||
import { IApplicationState } from './IApplicationState';
|
import { IApplicationState } from './IApplicationState';
|
||||||
import { Script } from '../../domain/Script';
|
import { Script } from '../../domain/Script';
|
||||||
import { Application } from '../../domain/Application';
|
import { Application } from '../../domain/Application';
|
||||||
@@ -21,8 +21,9 @@ export class ApplicationState implements IApplicationState {
|
|||||||
|
|
||||||
/** Application instance with all scripts. */
|
/** Application instance with all scripts. */
|
||||||
private static instance = new AsyncLazy<IApplicationState>(() => {
|
private static instance = new AsyncLazy<IApplicationState>(() => {
|
||||||
const app = buildApplication();
|
const application = parseApplication();
|
||||||
const state = new ApplicationState(app.application, app.selectedScripts);
|
const selectedScripts = new Array<Script>();
|
||||||
|
const state = new ApplicationState(application, selectedScripts);
|
||||||
return Promise.resolve(state);
|
return Promise.resolve(state);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -33,33 +34,13 @@ export class ApplicationState implements IApplicationState {
|
|||||||
|
|
||||||
private constructor(
|
private constructor(
|
||||||
/** Inner instance of the all scripts */
|
/** Inner instance of the all scripts */
|
||||||
private readonly app: Application,
|
public readonly app: Application,
|
||||||
/** Initially selected scripts */
|
/** Initially selected scripts */
|
||||||
public readonly defaultScripts: Script[]) {
|
public readonly defaultScripts: Script[]) {
|
||||||
this.selection = new UserSelection(app, defaultScripts);
|
this.selection = new UserSelection(app, defaultScripts);
|
||||||
this.code = new ApplicationCode(this.selection, app.version.toString());
|
this.code = new ApplicationCode(this.selection, app.version.toString());
|
||||||
this.filter = new UserFilter(app);
|
this.filter = new UserFilter(app);
|
||||||
}
|
}
|
||||||
|
|
||||||
public getCategory(categoryId: number): ICategory | undefined {
|
|
||||||
return this.app.findCategory(categoryId);
|
|
||||||
}
|
|
||||||
|
|
||||||
public get categories(): ReadonlyArray<ICategory> {
|
|
||||||
return this.app.categories;
|
|
||||||
}
|
|
||||||
|
|
||||||
public get appName(): string {
|
|
||||||
return this.app.name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public get appVersion(): number {
|
|
||||||
return this.app.version;
|
|
||||||
}
|
|
||||||
|
|
||||||
public get appTotalScripts(): number {
|
|
||||||
return this.app.totalScripts;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export { IApplicationState, IUserFilter };
|
export { IApplicationState, IUserFilter };
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { IApplication } from './../../domain/IApplication';
|
||||||
import { IUserFilter } from './Filter/IUserFilter';
|
import { IUserFilter } from './Filter/IUserFilter';
|
||||||
import { IUserSelection } from './Selection/IUserSelection';
|
import { IUserSelection } from './Selection/IUserSelection';
|
||||||
import { ISignal } from '@/infrastructure/Events/ISignal';
|
import { ISignal } from '@/infrastructure/Events/ISignal';
|
||||||
@@ -10,11 +11,6 @@ export interface IApplicationState {
|
|||||||
readonly code: IApplicationCode;
|
readonly code: IApplicationCode;
|
||||||
readonly filter: IUserFilter;
|
readonly filter: IUserFilter;
|
||||||
readonly stateChanged: ISignal<IApplicationState>;
|
readonly stateChanged: ISignal<IApplicationState>;
|
||||||
readonly categories: ReadonlyArray<ICategory>;
|
|
||||||
readonly appName: string;
|
|
||||||
readonly appVersion: number;
|
|
||||||
readonly appTotalScripts: number;
|
|
||||||
readonly selection: IUserSelection;
|
readonly selection: IUserSelection;
|
||||||
readonly defaultScripts: ReadonlyArray<IScript>;
|
readonly app: IApplication;
|
||||||
getCategory(categoryId: number): ICategory | undefined;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,26 +9,26 @@ actions:
|
|||||||
children:
|
children:
|
||||||
-
|
-
|
||||||
name: Clear Listary indexes
|
name: Clear Listary indexes
|
||||||
default: false
|
recommend: false
|
||||||
code: del /f /s /q %appdata%\Listary\UserData > nul
|
code: del /f /s /q %appdata%\Listary\UserData > nul
|
||||||
-
|
-
|
||||||
name: Clear Java cache
|
name: Clear Java cache
|
||||||
default: true
|
recommend: true
|
||||||
code: rd /s /q "%APPDATA%\Sun\Java\Deployment\cache"
|
code: rd /s /q "%APPDATA%\Sun\Java\Deployment\cache"
|
||||||
-
|
-
|
||||||
name: Clear Flash traces
|
name: Clear Flash traces
|
||||||
default: true
|
recommend: true
|
||||||
code: rd /s /q "%APPDATA%\Macromedia\Flash Player"
|
code: rd /s /q "%APPDATA%\Macromedia\Flash Player"
|
||||||
-
|
-
|
||||||
name: Clear Steam dumps, logs and traces
|
name: Clear Steam dumps, logs and traces
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
del /f /q %ProgramFiles(x86)%\Steam\Dumps
|
del /f /q %ProgramFiles(x86)%\Steam\Dumps
|
||||||
del /f /q %ProgramFiles(x86)%\Steam\Traces
|
del /f /q %ProgramFiles(x86)%\Steam\Traces
|
||||||
del /f /q %ProgramFiles(x86)%\Steam\appcache\*.log
|
del /f /q %ProgramFiles(x86)%\Steam\appcache\*.log
|
||||||
-
|
-
|
||||||
name: Clear Visual Studio telemetry & feedback data
|
name: Clear Visual Studio telemetry & feedback data
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
rmdir /s /q "%AppData%\vstelemetry" 2>nul
|
rmdir /s /q "%AppData%\vstelemetry" 2>nul
|
||||||
rmdir /s /q "%LocalAppData%\Microsoft\VSApplicationInsights" 2>nul
|
rmdir /s /q "%LocalAppData%\Microsoft\VSApplicationInsights" 2>nul
|
||||||
@@ -45,7 +45,7 @@ actions:
|
|||||||
children:
|
children:
|
||||||
-
|
-
|
||||||
name: Clear windows recent files
|
name: Clear windows recent files
|
||||||
default: true
|
recommend: true
|
||||||
docs: https://www.tenforums.com/tutorials/3476-reset-clear-recent-items-frequent-places-windows-10-a.html
|
docs: https://www.tenforums.com/tutorials/3476-reset-clear-recent-items-frequent-places-windows-10-a.html
|
||||||
code: |-
|
code: |-
|
||||||
rd /s /q "%USERPROFILE%\Recent"
|
rd /s /q "%USERPROFILE%\Recent"
|
||||||
@@ -54,56 +54,56 @@ actions:
|
|||||||
del /f /q %APPDATA%\Microsoft\Windows\Recent\CustomDestinations\*
|
del /f /q %APPDATA%\Microsoft\Windows\Recent\CustomDestinations\*
|
||||||
-
|
-
|
||||||
name: Clear regedit last key
|
name: Clear regedit last key
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit" /va /f
|
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit" /va /f
|
||||||
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Regedit" /va /f
|
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Regedit" /va /f
|
||||||
-
|
-
|
||||||
name: Clear regedit favorites
|
name: Clear regedit favorites
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit\Favorites" /va /f
|
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit\Favorites" /va /f
|
||||||
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Regedit\Favorites" /va /f
|
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Regedit\Favorites" /va /f
|
||||||
-
|
-
|
||||||
name: Clear list of recent programs opened
|
name: Clear list of recent programs opened
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\LastVisitedPidlMRU" /va /f
|
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\LastVisitedPidlMRU" /va /f
|
||||||
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\LastVisitedPidlMRULegacy" /va /f
|
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\LastVisitedPidlMRULegacy" /va /f
|
||||||
-
|
-
|
||||||
name: Clear Adobe Media Browser MRU
|
name: Clear Adobe Media Browser MRU
|
||||||
default: true
|
recommend: true
|
||||||
code: reg delete "HKEY_CURRENT_USER\Software\Adobe\MediaBrowser\MRU" /va /f
|
code: reg delete "HKEY_CURRENT_USER\Software\Adobe\MediaBrowser\MRU" /va /f
|
||||||
-
|
-
|
||||||
name: Clear MSPaint MRU
|
name: Clear MSPaint MRU
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Paint\Recent File List" /va /f
|
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Paint\Recent File List" /va /f
|
||||||
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Paint\Recent File List" /va /f
|
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Paint\Recent File List" /va /f
|
||||||
-
|
-
|
||||||
name: Clear Wordpad MRU
|
name: Clear Wordpad MRU
|
||||||
default: true
|
recommend: true
|
||||||
code: reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Wordpad\Recent File List" /va /f
|
code: reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Wordpad\Recent File List" /va /f
|
||||||
-
|
-
|
||||||
name: Clear Map Network Drive MRU MRU
|
name: Clear Map Network Drive MRU MRU
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Map Network Drive MRU" /va /f
|
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Map Network Drive MRU" /va /f
|
||||||
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Map Network Drive MRU" /va /f
|
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Map Network Drive MRU" /va /f
|
||||||
-
|
-
|
||||||
name: Clear Windows Search Assistant history
|
name: Clear Windows Search Assistant history
|
||||||
default: true
|
recommend: true
|
||||||
code: reg delete "HKEY_CURRENT_USER\Software\Microsoft\Search Assistant\ACMru" /va /f
|
code: reg delete "HKEY_CURRENT_USER\Software\Microsoft\Search Assistant\ACMru" /va /f
|
||||||
-
|
-
|
||||||
name: Clear list of Recent Files Opened, by Filetype
|
name: Clear list of Recent Files Opened, by Filetype
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs" /va /f
|
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs" /va /f
|
||||||
reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs" /va /f
|
reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs" /va /f
|
||||||
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU" /va /f
|
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU" /va /f
|
||||||
-
|
-
|
||||||
name: Clear windows media player recent files and urls
|
name: Clear windows media player recent files and urls
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg delete "HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Player\RecentFileList" /va /f
|
reg delete "HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Player\RecentFileList" /va /f
|
||||||
reg delete "HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Player\RecentURLList" /va /f
|
reg delete "HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Player\RecentURLList" /va /f
|
||||||
@@ -111,13 +111,13 @@ actions:
|
|||||||
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MediaPlayer\Player\RecentURLList" /va /f
|
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MediaPlayer\Player\RecentURLList" /va /f
|
||||||
-
|
-
|
||||||
name: Clear Most Recent Application's Use of DirectX
|
name: Clear Most Recent Application's Use of DirectX
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Direct3D\MostRecentApplication" /va /f
|
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Direct3D\MostRecentApplication" /va /f
|
||||||
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Direct3D\MostRecentApplication" /va /f
|
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Direct3D\MostRecentApplication" /va /f
|
||||||
-
|
-
|
||||||
name: Clear Windows Run MRU & typedpaths
|
name: Clear Windows Run MRU & typedpaths
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU" /va /f
|
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU" /va /f
|
||||||
reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\TypedPaths" /va /f
|
reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\TypedPaths" /va /f
|
||||||
@@ -126,7 +126,7 @@ actions:
|
|||||||
children:
|
children:
|
||||||
-
|
-
|
||||||
name: Clear Internet Explorer traces
|
name: Clear Internet Explorer traces
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
del /f /q "%localappdata%\Microsoft\Windows\INetCache\IE\*"
|
del /f /q "%localappdata%\Microsoft\Windows\INetCache\IE\*"
|
||||||
reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\TypedURLs" /va /f
|
reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\TypedURLs" /va /f
|
||||||
@@ -142,7 +142,7 @@ actions:
|
|||||||
rd /s /q "%localappdata%\Microsoft\InternetExplorer\DOMStore"
|
rd /s /q "%localappdata%\Microsoft\InternetExplorer\DOMStore"
|
||||||
-
|
-
|
||||||
name: Clear Google Chrome traces
|
name: Clear Google Chrome traces
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
del /f /q "%localappdata%\Google\Software Reporter Tool\*.log"
|
del /f /q "%localappdata%\Google\Software Reporter Tool\*.log"
|
||||||
rd /s /q "%USERPROFILE%\Local Settings\Application Data\Google\Chrome\User Data"
|
rd /s /q "%USERPROFILE%\Local Settings\Application Data\Google\Chrome\User Data"
|
||||||
@@ -154,7 +154,7 @@ actions:
|
|||||||
children:
|
children:
|
||||||
-
|
-
|
||||||
name: Clear browsing history and caches
|
name: Clear browsing history and caches
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
set ignoreFiles="content-prefs.sqlite" "permissions.sqlite" "favicons.sqlite"
|
set ignoreFiles="content-prefs.sqlite" "permissions.sqlite" "favicons.sqlite"
|
||||||
for %%d in ("%APPDATA%\Mozilla\Firefox\Profiles\"
|
for %%d in ("%APPDATA%\Mozilla\Firefox\Profiles\"
|
||||||
@@ -178,21 +178,21 @@ actions:
|
|||||||
)
|
)
|
||||||
-
|
-
|
||||||
name: Clear all user settings and data
|
name: Clear all user settings and data
|
||||||
default: false
|
recommend: false
|
||||||
enables: Clear browsing history and caches
|
enables: Clear browsing history and caches
|
||||||
code: |-
|
code: |-
|
||||||
rd "%localappdata%\Local\Mozilla\Firefox\Profiles"
|
rd "%localappdata%\Local\Mozilla\Firefox\Profiles"
|
||||||
rd /s /q "%APPDATA%\Mozilla\Firefox\Profiles"
|
rd /s /q "%APPDATA%\Mozilla\Firefox\Profiles"
|
||||||
-
|
-
|
||||||
name: Clear Opera traces
|
name: Clear Opera traces
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
rd /s /q "%USERPROFILE%\AppData\Local\Opera\Opera"
|
rd /s /q "%USERPROFILE%\AppData\Local\Opera\Opera"
|
||||||
rd /s /q "%APPDATA%\Opera\Opera"
|
rd /s /q "%APPDATA%\Opera\Opera"
|
||||||
rd /s /q "%USERPROFILE%\Local Settings\Application Data\Opera\Opera"
|
rd /s /q "%USERPROFILE%\Local Settings\Application Data\Opera\Opera"
|
||||||
-
|
-
|
||||||
name: Clear Safari traces
|
name: Clear Safari traces
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
rd /s /q "%USERPROFILE%\AppData\Local\Apple Computer\Safari\Traces"
|
rd /s /q "%USERPROFILE%\AppData\Local\Apple Computer\Safari\Traces"
|
||||||
rd /s /q "%APPDATA%\Apple Computer\Safari"
|
rd /s /q "%APPDATA%\Apple Computer\Safari"
|
||||||
@@ -206,11 +206,11 @@ actions:
|
|||||||
children:
|
children:
|
||||||
-
|
-
|
||||||
name: Clear thumbnail cache
|
name: Clear thumbnail cache
|
||||||
default: false
|
recommend: false
|
||||||
code: del /f /s /q /a %LocalAppData%\Microsoft\Windows\Explorer\*.db
|
code: del /f /s /q /a %LocalAppData%\Microsoft\Windows\Explorer\*.db
|
||||||
-
|
-
|
||||||
name: Clear Windows log files
|
name: Clear Windows log files
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
del /f /q %SystemRoot%\Temp\CBS\*
|
del /f /q %SystemRoot%\Temp\CBS\*
|
||||||
del /f /q %SystemRoot%\comsetup.log
|
del /f /q %SystemRoot%\comsetup.log
|
||||||
@@ -246,14 +246,14 @@ actions:
|
|||||||
rd /s /q "%localappdata%\Microsoft\Windows\Traces"
|
rd /s /q "%localappdata%\Microsoft\Windows\Traces"
|
||||||
-
|
-
|
||||||
name: Clear Windows temp files
|
name: Clear Windows temp files
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
del /f /q %localappdata%\Temp\*
|
del /f /q %localappdata%\Temp\*
|
||||||
rd /s /q "%WINDIR%\Temp"
|
rd /s /q "%WINDIR%\Temp"
|
||||||
rd /s /q "%TEMP%"
|
rd /s /q "%TEMP%"
|
||||||
-
|
-
|
||||||
name: Clear main telemetry file
|
name: Clear main telemetry file
|
||||||
default: true
|
recommend: true
|
||||||
code: echo "" > %ProgramData%\Microsoft\Diagnosis\ETLTraces\AutoLogger\AutoLogger-Diagtrack-Listener.etl
|
code: echo "" > %ProgramData%\Microsoft\Diagnosis\ETLTraces\AutoLogger\AutoLogger-Diagtrack-Listener.etl
|
||||||
-
|
-
|
||||||
name: Empty trash bin
|
name: Empty trash bin
|
||||||
@@ -263,25 +263,25 @@ actions:
|
|||||||
children:
|
children:
|
||||||
-
|
-
|
||||||
name: Disable ad customization with Advertising ID
|
name: Disable ad customization with Advertising ID
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo" /v "Enabled" /t REG_DWORD /d 0 /f
|
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo" /v "Enabled" /t REG_DWORD /d 0 /f
|
||||||
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo" /v "DisabledByGroupPolicy" /t REG_DWORD /d 1 /f
|
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo" /v "DisabledByGroupPolicy" /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
name: Disable online device metadata collection
|
name: Disable online device metadata collection
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata" /v "PreventDeviceMetadataFromNetwork" /t REG_DWORD /d 1 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata" /v "PreventDeviceMetadataFromNetwork" /t REG_DWORD /d 1 /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Device Metadata" /v "PreventDeviceMetadataFromNetwork" /t REG_DWORD /d 1 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Device Metadata" /v "PreventDeviceMetadataFromNetwork" /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
name: Opt out from Windows privacy consent
|
name: Opt out from Windows privacy consent
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKCU\SOFTWARE\Microsoft\Personalization\Settings" /v "AcceptedPrivacyPolicy" /t REG_DWORD /d 0 /f
|
reg add "HKCU\SOFTWARE\Microsoft\Personalization\Settings" /v "AcceptedPrivacyPolicy" /t REG_DWORD /d 0 /f
|
||||||
reg add "HKU\DefaultUser\Software\Microsoft\Personalization\Settings" /v "AcceptedPrivacyPolicy" /d "0" /t REG_DWORD /f
|
reg add "HKU\DefaultUser\Software\Microsoft\Personalization\Settings" /v "AcceptedPrivacyPolicy" /d "0" /t REG_DWORD /f
|
||||||
-
|
-
|
||||||
name: Disable windows telemetry & data collection
|
name: Disable windows telemetry & data collection
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "AllowTelemetry" /d 0 /t REG_DWORD /f
|
reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "AllowTelemetry" /d 0 /t REG_DWORD /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f
|
||||||
@@ -295,7 +295,7 @@ actions:
|
|||||||
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "AITEnable" /t REG_DWORD /d 0 /f
|
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "AITEnable" /t REG_DWORD /d 0 /f
|
||||||
-
|
-
|
||||||
name: Disable Windows feedback
|
name: Disable Windows feedback
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Siuf\Rules" /v "NumberOfSIUFInPeriod" /t REG_DWORD /d 0 /f
|
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Siuf\Rules" /v "NumberOfSIUFInPeriod" /t REG_DWORD /d 0 /f
|
||||||
:: removing this value sets feedback frequency to never
|
:: removing this value sets feedback frequency to never
|
||||||
@@ -304,7 +304,7 @@ actions:
|
|||||||
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "DoNotShowFeedbackNotifications" /t REG_DWORD /d 1 /f
|
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "DoNotShowFeedbackNotifications" /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
name: Disable text and handwriting collection
|
name: Disable text and handwriting collection
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\InputPersonalization" /v "RestrictImplicitInkCollection" /t REG_DWORD /d 1 /f
|
reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\InputPersonalization" /v "RestrictImplicitInkCollection" /t REG_DWORD /d 1 /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\InputPersonalization" /v "RestrictImplicitInkCollection" /t REG_DWORD /d 1 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\InputPersonalization" /v "RestrictImplicitInkCollection" /t REG_DWORD /d 1 /f
|
||||||
@@ -321,124 +321,124 @@ actions:
|
|||||||
children:
|
children:
|
||||||
-
|
-
|
||||||
name: Deny app access to location
|
name: Deny app access to location
|
||||||
default: false
|
recommend: false
|
||||||
code: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessLocation" /t REG_DWORD /d 2 /f
|
code: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessLocation" /t REG_DWORD /d 2 /f
|
||||||
-
|
-
|
||||||
name: Deny app access to motion data
|
name: Deny app access to motion data
|
||||||
default: false
|
recommend: false
|
||||||
code: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessMotion" /t REG_DWORD /d 2 /f
|
code: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessMotion" /t REG_DWORD /d 2 /f
|
||||||
-
|
-
|
||||||
name: Deny app access to phone
|
name: Deny app access to phone
|
||||||
default: false
|
recommend: false
|
||||||
code: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessPhone" /t REG_DWORD /d 2 /f
|
code: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessPhone" /t REG_DWORD /d 2 /f
|
||||||
-
|
-
|
||||||
name: Deny app access to trusted devices
|
name: Deny app access to trusted devices
|
||||||
default: false
|
recommend: false
|
||||||
code: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessTrustedDevices" /t REG_DWORD /d 2 /f
|
code: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessTrustedDevices" /t REG_DWORD /d 2 /f
|
||||||
-
|
-
|
||||||
name: Deny app sync with devices
|
name: Deny app sync with devices
|
||||||
default: false
|
recommend: false
|
||||||
code: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsSyncWithDevices" /t REG_DWORD /d 2 /f
|
code: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsSyncWithDevices" /t REG_DWORD /d 2 /f
|
||||||
-
|
-
|
||||||
name: Deny app access to camera
|
name: Deny app access to camera
|
||||||
default: false
|
recommend: false
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\webcam" /v "Value" /d "Deny" /t REG_SZ /f
|
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\webcam" /v "Value" /d "Deny" /t REG_SZ /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessCamera" /t REG_DWORD /d 2 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessCamera" /t REG_DWORD /d 2 /f
|
||||||
-
|
-
|
||||||
name: Deny app access to microphone
|
name: Deny app access to microphone
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\microphone" /v "Value" /d "Deny" /t REG_SZ /f
|
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\microphone" /v "Value" /d "Deny" /t REG_SZ /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessMicrophone" /t REG_DWORD /d 2 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessMicrophone" /t REG_DWORD /d 2 /f
|
||||||
-
|
-
|
||||||
name: Deny app access to diagnostics info about your other apps
|
name: Deny app access to diagnostics info about your other apps
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\appDiagnostics" /v "Value" /d "Deny" /t REG_SZ /f
|
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\appDiagnostics" /v "Value" /d "Deny" /t REG_SZ /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsGetDiagnosticInfo" /t REG_DWORD /d 2 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsGetDiagnosticInfo" /t REG_DWORD /d 2 /f
|
||||||
-
|
-
|
||||||
name: Deny app access to your file system
|
name: Deny app access to your file system
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\broadFileSystemAccess" /v "Value" /d "Deny" /t REG_SZ /f
|
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\broadFileSystemAccess" /v "Value" /d "Deny" /t REG_SZ /f
|
||||||
-
|
-
|
||||||
name: Deny app access to your contacts
|
name: Deny app access to your contacts
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\contacts" /v "Value" /d "Deny" /t REG_SZ /f
|
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\contacts" /v "Value" /d "Deny" /t REG_SZ /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessContacts" /t REG_DWORD /d 2 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessContacts" /t REG_DWORD /d 2 /f
|
||||||
-
|
-
|
||||||
name: Deny app access to Notifications
|
name: Deny app access to Notifications
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\userNotificationListener" /v "Value" /d "Deny" /t REG_SZ /f
|
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\userNotificationListener" /v "Value" /d "Deny" /t REG_SZ /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessNotifications" /t REG_DWORD /d 2 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessNotifications" /t REG_DWORD /d 2 /f
|
||||||
-
|
-
|
||||||
name: Deny app access to Account Information
|
name: Deny app access to Account Information
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\userAccountInformation" /v "Value" /d "Deny" /t REG_SZ /f
|
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\userAccountInformation" /v "Value" /d "Deny" /t REG_SZ /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessAccountInfo" /t REG_DWORD /d 2 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessAccountInfo" /t REG_DWORD /d 2 /f
|
||||||
-
|
-
|
||||||
name: Deny app access to Calendar
|
name: Deny app access to Calendar
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\appointments" /v "Value" /d "Deny" /t REG_SZ /f
|
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\appointments" /v "Value" /d "Deny" /t REG_SZ /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessCalendar" /t REG_DWORD /d 2 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessCalendar" /t REG_DWORD /d 2 /f
|
||||||
-
|
-
|
||||||
name: Deny app access to call history
|
name: Deny app access to call history
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\phoneCallHistory" /v "Value" /d "Deny" /t REG_SZ /f
|
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\phoneCallHistory" /v "Value" /d "Deny" /t REG_SZ /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessCallHistory" /t REG_DWORD /d 2 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessCallHistory" /t REG_DWORD /d 2 /f
|
||||||
-
|
-
|
||||||
name: Deny app access to email
|
name: Deny app access to email
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\email" /v "Value" /d "Deny" /t REG_SZ /f
|
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\email" /v "Value" /d "Deny" /t REG_SZ /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessEmail" /t REG_DWORD /d 2 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessEmail" /t REG_DWORD /d 2 /f
|
||||||
-
|
-
|
||||||
name: Deny app access to tasks
|
name: Deny app access to tasks
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\userDataTasks" /v "Value" /d "Deny" /t REG_SZ /f
|
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\userDataTasks" /v "Value" /d "Deny" /t REG_SZ /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessTasks" /t REG_DWORD /d 2 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessTasks" /t REG_DWORD /d 2 /f
|
||||||
-
|
-
|
||||||
name: Deny app access to messaging
|
name: Deny app access to messaging
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\chat" /v "Value" /d "Deny" /t REG_SZ /f
|
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\chat" /v "Value" /d "Deny" /t REG_SZ /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessMessaging" /t REG_DWORD /d 2 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessMessaging" /t REG_DWORD /d 2 /f
|
||||||
-
|
-
|
||||||
name: Deny app access to radios
|
name: Deny app access to radios
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\radios" /v "Value" /d "Deny" /t REG_SZ /f
|
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\radios" /v "Value" /d "Deny" /t REG_SZ /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessRadios" /t REG_DWORD /d 2 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessRadios" /t REG_DWORD /d 2 /f
|
||||||
-
|
-
|
||||||
name: Deny app access to videos
|
name: Deny app access to videos
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\videosLibrary" /v "Value" /d "Deny" /t REG_SZ /f
|
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\videosLibrary" /v "Value" /d "Deny" /t REG_SZ /f
|
||||||
-
|
-
|
||||||
name: Deny app access to pictures
|
name: Deny app access to pictures
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\picturesLibrary" /v "Value" /d "Deny" /t REG_SZ /f
|
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\picturesLibrary" /v "Value" /d "Deny" /t REG_SZ /f
|
||||||
-
|
-
|
||||||
name: Deny app access to documents
|
name: Deny app access to documents
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\documentsLibrary" /v "Value" /d "Deny" /t REG_SZ /f
|
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\documentsLibrary" /v "Value" /d "Deny" /t REG_SZ /f
|
||||||
-
|
-
|
||||||
name: Deny app access to bluetooth devices
|
name: Deny app access to bluetooth devices
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\bluetoothSync" /v "Value" /d "Deny" /t REG_SZ /f
|
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\bluetoothSync" /v "Value" /d "Deny" /t REG_SZ /f
|
||||||
-
|
-
|
||||||
name: Deny location access
|
name: Deny location access
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors" /v "DisableLocation" /d "1" /t REG_DWORD /f
|
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors" /v "DisableLocation" /d "1" /t REG_DWORD /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors" /v "DisableLocationScripting" /t REG_DWORD /d 1 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors" /v "DisableLocationScripting" /t REG_DWORD /d 1 /f
|
||||||
@@ -448,7 +448,7 @@ actions:
|
|||||||
reg add "HKLM\SYSTEM\CurrentControlSet\Services\lfsvc\Service\Configuration" /v "Status" /d "0" /t REG_DWORD /f
|
reg add "HKLM\SYSTEM\CurrentControlSet\Services\lfsvc\Service\Configuration" /v "Status" /d "0" /t REG_DWORD /f
|
||||||
-
|
-
|
||||||
name: Deny sensor access
|
name: Deny sensor access
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Sensor\Overrides\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}" /v "SensorPermissionState" /d "0" /t REG_DWORD /f
|
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Sensor\Overrides\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}" /v "SensorPermissionState" /d "0" /t REG_DWORD /f
|
||||||
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}" /v Value /t REG_SZ /d Deny /f
|
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}" /v Value /t REG_SZ /d Deny /f
|
||||||
@@ -458,7 +458,7 @@ actions:
|
|||||||
children:
|
children:
|
||||||
-
|
-
|
||||||
name: Disable cortana
|
name: Disable cortana
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "AllowCortana" /t REG_DWORD /d 0 /f
|
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "AllowCortana" /t REG_DWORD /d 0 /f
|
||||||
reg add "HKLM\SOFTWARE\Microsoft\PolicyManager\default\Experience\AllowCortana" /v "value" /t REG_DWORD /d 0 /f
|
reg add "HKLM\SOFTWARE\Microsoft\PolicyManager\default\Experience\AllowCortana" /v "value" /t REG_DWORD /d 0 /f
|
||||||
@@ -473,26 +473,26 @@ actions:
|
|||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "DisableWebSearch" /t REG_DWORD /d 1 /
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "DisableWebSearch" /t REG_DWORD /d 1 /
|
||||||
-
|
-
|
||||||
name: Disable web search in search bar
|
name: Disable web search in search bar
|
||||||
default: true
|
recommend: true
|
||||||
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v DisableWebSearch /t REG_DWORD /d 1 /f
|
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v DisableWebSearch /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
name: Disable search web when searching pc
|
name: Disable search web when searching pc
|
||||||
default: true
|
recommend: true
|
||||||
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v ConnectedSearchUseWeb /t REG_DWORD /d 0 /f
|
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v ConnectedSearchUseWeb /t REG_DWORD /d 0 /f
|
||||||
-
|
-
|
||||||
name: Disable search indexing encrypted items / stores
|
name: Disable search indexing encrypted items / stores
|
||||||
default: true
|
recommend: true
|
||||||
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v AllowIndexingEncryptedStoresOrItems /t REG_DWORD /d 0 /f
|
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v AllowIndexingEncryptedStoresOrItems /t REG_DWORD /d 0 /f
|
||||||
-
|
-
|
||||||
name: Disable location based info in searches
|
name: Disable location based info in searches
|
||||||
default: true
|
recommend: true
|
||||||
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v AllowSearchToUseLocation /t REG_DWORD /d 0 /f
|
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v AllowSearchToUseLocation /t REG_DWORD /d 0 /f
|
||||||
-
|
-
|
||||||
name: Disable language detection
|
name: Disable language detection
|
||||||
default: true
|
recommend: true
|
||||||
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v AlwaysUseAutoLangDetection /t REG_DWORD /d 0 /f
|
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v AlwaysUseAutoLangDetection /t REG_DWORD /d 0 /f
|
||||||
name: Turn Off Suggested Content in Settings app
|
name: Turn Off Suggested Content in Settings app
|
||||||
default: true
|
recommend: true
|
||||||
docs: https://www.tenforums.com/tutorials/100541-turn-off-suggested-content-settings-app-windows-10-a.html
|
docs: https://www.tenforums.com/tutorials/100541-turn-off-suggested-content-settings-app-windows-10-a.html
|
||||||
code: |-
|
code: |-
|
||||||
reg add HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager /v "SubscribedContent-338393Enabled" /d "0" /t REG_DWORD /f
|
reg add HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager /v "SubscribedContent-338393Enabled" /d "0" /t REG_DWORD /f
|
||||||
@@ -500,13 +500,13 @@ actions:
|
|||||||
reg add HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager /v "SubscribedContent-353696Enabled" /d "0" /t REG_DWORD /f
|
reg add HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager /v "SubscribedContent-353696Enabled" /d "0" /t REG_DWORD /f
|
||||||
-
|
-
|
||||||
name: Disable biometrics
|
name: Disable biometrics
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKLM\SOFTWARE\Policies\Microsoft\Biometrics" /v "Enabled" /t REG_DWORD /d 0 /f
|
reg add "HKLM\SOFTWARE\Policies\Microsoft\Biometrics" /v "Enabled" /t REG_DWORD /d 0 /f
|
||||||
reg add "HKLM\SYSTEM\CurrentControlSet\Services\WbioSrvc" /v "Start" /t REG_DWORD /d 4 /f
|
reg add "HKLM\SYSTEM\CurrentControlSet\Services\WbioSrvc" /v "Start" /t REG_DWORD /d 4 /f
|
||||||
-
|
-
|
||||||
name: Disable Wi-Fi sense
|
name: Disable Wi-Fi sense
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKLM\SOFTWARE\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting" /v "value" /t REG_DWORD /d 0 /f
|
reg add "HKLM\SOFTWARE\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting" /v "value" /t REG_DWORD /d 0 /f
|
||||||
reg add "HKLM\SOFTWARE\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots" /v "value" /t REG_DWORD /d 0 /f
|
reg add "HKLM\SOFTWARE\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots" /v "value" /t REG_DWORD /d 0 /f
|
||||||
@@ -514,57 +514,57 @@ actions:
|
|||||||
-
|
-
|
||||||
name: Disable App Launch Tracking
|
name: Disable App Launch Tracking
|
||||||
docs: https://www.thewindowsclub.com/enable-or-disable-app-launch-tracking-in-windows-10
|
docs: https://www.thewindowsclub.com/enable-or-disable-app-launch-tracking-in-windows-10
|
||||||
default: true
|
recommend: true
|
||||||
code: reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_TrackProgs" /d "0" /t REG_DWORD /f
|
code: reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_TrackProgs" /d "0" /t REG_DWORD /f
|
||||||
-
|
-
|
||||||
name: Disable Inventory Collector
|
name: Disable Inventory Collector
|
||||||
default: true
|
recommend: true
|
||||||
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "DisableInventory" /t REG_DWORD /d 1 /f
|
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "DisableInventory" /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
name: Disable Auto Downloading Maps
|
name: Disable Auto Downloading Maps
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Maps" /v "AllowUntriggeredNetworkTrafficOnSettingsPage" /t REG_DWORD /d 0 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Maps" /v "AllowUntriggeredNetworkTrafficOnSettingsPage" /t REG_DWORD /d 0 /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Maps" /v "AutoDownloadAndUpdateMapData" /t REG_DWORD /d 0 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Maps" /v "AutoDownloadAndUpdateMapData" /t REG_DWORD /d 0 /f
|
||||||
-
|
-
|
||||||
name: Disable targeted tips
|
name: Disable targeted tips
|
||||||
default: true
|
recommend: true
|
||||||
code: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CloudContent" /v "DisableSoftLanding" /t REG_DWORD /d 1 /f
|
code: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CloudContent" /v "DisableSoftLanding" /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
name: Disable steps recorder
|
name: Disable steps recorder
|
||||||
default: true
|
recommend: true
|
||||||
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "DisableUAR" /t REG_DWORD /d 1 /f
|
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "DisableUAR" /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
name: Disable game screen recording
|
name: Disable game screen recording
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKCU\System\GameConfigStore" /v "GameDVR_Enabled" /t REG_DWORD /d 0 /f
|
reg add "HKCU\System\GameConfigStore" /v "GameDVR_Enabled" /t REG_DWORD /d 0 /f
|
||||||
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\GameDVR" /v "AllowGameDVR" /t REG_DWORD /d 0 /f
|
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\GameDVR" /v "AllowGameDVR" /t REG_DWORD /d 0 /f
|
||||||
-
|
-
|
||||||
name: Disable Windows DRM internet access
|
name: Disable Windows DRM internet access
|
||||||
docs: https://getadmx.com/?Category=Windows_10_2016&Policy=Microsoft.Policies.DigitalRights2::DisableOnline
|
docs: https://getadmx.com/?Category=Windows_10_2016&Policy=Microsoft.Policies.DigitalRights2::DisableOnline
|
||||||
default: true
|
recommend: true
|
||||||
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\WMDRM" /v "DisableOnline" /t REG_DWORD /d 1 /f
|
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\WMDRM" /v "DisableOnline" /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
name: Disable feedback on write (sending typing info)
|
name: Disable feedback on write (sending typing info)
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKLM\SOFTWARE\Microsoft\Input\TIPC" /v "Enabled" /t REG_DWORD /d 0 /f
|
reg add "HKLM\SOFTWARE\Microsoft\Input\TIPC" /v "Enabled" /t REG_DWORD /d 0 /f
|
||||||
reg add "HKCU\SOFTWARE\Microsoft\Input\TIPC" /v "Enabled" /t REG_DWORD /d 0 /f
|
reg add "HKCU\SOFTWARE\Microsoft\Input\TIPC" /v "Enabled" /t REG_DWORD /d 0 /f
|
||||||
-
|
-
|
||||||
name: Disable Activity Feed
|
name: Disable Activity Feed
|
||||||
default: true
|
recommend: true
|
||||||
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v "EnableActivityFeed" /d "0" /t REG_DWORD /f
|
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v "EnableActivityFeed" /d "0" /t REG_DWORD /f
|
||||||
-
|
-
|
||||||
name: Disable Windows Insider Program
|
name: Disable Windows Insider Program
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\PreviewBuilds" /v "AllowBuildPreview" /t REG_DWORD /d 0 /f
|
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\PreviewBuilds" /v "AllowBuildPreview" /t REG_DWORD /d 0 /f
|
||||||
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\PreviewBuilds" /v "EnableConfigFlighting" /t REG_DWORD /d 0 /f
|
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\PreviewBuilds" /v "EnableConfigFlighting" /t REG_DWORD /d 0 /f
|
||||||
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\PreviewBuilds" /v "EnableExperimentation" /t REG_DWORD /d 0 /f
|
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\PreviewBuilds" /v "EnableExperimentation" /t REG_DWORD /d 0 /f
|
||||||
-
|
-
|
||||||
name: Disable the Windows Connect Now wizard
|
name: Disable the Windows Connect Now wizard
|
||||||
default: false
|
recommend: false
|
||||||
docs:
|
docs:
|
||||||
- https://docs.microsoft.com/en-us/windows/win32/wcn/about-windows-connect-now
|
- https://docs.microsoft.com/en-us/windows/win32/wcn/about-windows-connect-now
|
||||||
- https://www.windows-security.org/f637a705712eb59f8cd410673c96472e/prohibit-access-of-the-windows-connect-now-wizards
|
- https://www.windows-security.org/f637a705712eb59f8cd410673c96472e/prohibit-access-of-the-windows-connect-now-wizards
|
||||||
@@ -574,7 +574,7 @@ actions:
|
|||||||
children:
|
children:
|
||||||
-
|
-
|
||||||
name: Disable all settings sync
|
name: Disable all settings sync
|
||||||
default: true
|
recommend: true
|
||||||
enabler: all those bottom
|
enabler: all those bottom
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableSettingSync" /t REG_DWORD /d 2 /f
|
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableSettingSync" /t REG_DWORD /d 2 /f
|
||||||
@@ -583,50 +583,50 @@ actions:
|
|||||||
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\SettingSync" /v "SyncPolicy" /t REG_DWORD /d 5 /f
|
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\SettingSync" /v "SyncPolicy" /t REG_DWORD /d 5 /f
|
||||||
-
|
-
|
||||||
name: Disable Application Setting Sync
|
name: Disable Application Setting Sync
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableApplicationSettingSync" /t REG_DWORD /d 2 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableApplicationSettingSync" /t REG_DWORD /d 2 /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableApplicationSettingSyncUserOverride" /t REG_DWORD /d 1 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableApplicationSettingSyncUserOverride" /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
name: Disable App Sync Setting Sync
|
name: Disable App Sync Setting Sync
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableAppSyncSettingSync" /t REG_DWORD /d 2 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableAppSyncSettingSync" /t REG_DWORD /d 2 /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableAppSyncSettingSyncUserOverride" /t REG_DWORD /d 1 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableAppSyncSettingSyncUserOverride" /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
name: Disable Credentials Setting Sync
|
name: Disable Credentials Setting Sync
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableCredentialsSettingSync" /t REG_DWORD /d 2 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableCredentialsSettingSync" /t REG_DWORD /d 2 /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableCredentialsSettingSyncUserOverride" /t REG_DWORD /d 1 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableCredentialsSettingSyncUserOverride" /t REG_DWORD /d 1 /f
|
||||||
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\SettingSync\Groups\Credentials" /v "Enabled" /t REG_DWORD /d 0 /f
|
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\SettingSync\Groups\Credentials" /v "Enabled" /t REG_DWORD /d 0 /f
|
||||||
-
|
-
|
||||||
name: Disable Desktop Theme Setting Sync
|
name: Disable Desktop Theme Setting Sync
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableDesktopThemeSettingSync" /t REG_DWORD /d 2 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableDesktopThemeSettingSync" /t REG_DWORD /d 2 /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableDesktopThemeSettingSyncUserOverride" /t REG_DWORD /d 1 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableDesktopThemeSettingSyncUserOverride" /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
name: Disable Personalization Setting Sync
|
name: Disable Personalization Setting Sync
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisablePersonalizationSettingSync" /t REG_DWORD /d 2 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisablePersonalizationSettingSync" /t REG_DWORD /d 2 /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisablePersonalizationSettingSyncUserOverride" /t REG_DWORD /d 1 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisablePersonalizationSettingSyncUserOverride" /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
name: Disable Start Layout Setting Sync
|
name: Disable Start Layout Setting Sync
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableStartLayoutSettingSync" /t REG_DWORD /d 2 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableStartLayoutSettingSync" /t REG_DWORD /d 2 /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableStartLayoutSettingSyncUserOverride" /t REG_DWORD /d 1 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableStartLayoutSettingSyncUserOverride" /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
name: Disable Web Browser Setting Sync
|
name: Disable Web Browser Setting Sync
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableWebBrowserSettingSync" /t REG_DWORD /d 2 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableWebBrowserSettingSync" /t REG_DWORD /d 2 /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableWebBrowserSettingSyncUserOverride" /t REG_DWORD /d 1 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableWebBrowserSettingSyncUserOverride" /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
name: Disable Windows Setting Sync
|
name: Disable Windows Setting Sync
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableWindowsSettingSync" /t REG_DWORD /d 2 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableWindowsSettingSync" /t REG_DWORD /d 2 /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableWindowsSettingSyncUserOverride" /t REG_DWORD /d 1 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableWindowsSettingSyncUserOverride" /t REG_DWORD /d 1 /f
|
||||||
@@ -641,36 +641,36 @@ actions:
|
|||||||
children:
|
children:
|
||||||
-
|
-
|
||||||
name: Disable SQM 64 bit OS key
|
name: Disable SQM 64 bit OS key
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VSCommon\14.0\SQM" /v OptIn /t REG_DWORD /d 0 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VSCommon\14.0\SQM" /v OptIn /t REG_DWORD /d 0 /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VSCommon\15.0\SQM" /v OptIn /t REG_DWORD /d 0 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VSCommon\15.0\SQM" /v OptIn /t REG_DWORD /d 0 /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VSCommon\16.0\SQM" /v OptIn /t REG_DWORD /d 0 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VSCommon\16.0\SQM" /v OptIn /t REG_DWORD /d 0 /f
|
||||||
-
|
-
|
||||||
name: Disable SQM 32 bit OS key
|
name: Disable SQM 32 bit OS key
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VSCommon\14.0\SQM" /v OptIn /t REG_DWORD /d 0 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VSCommon\14.0\SQM" /v OptIn /t REG_DWORD /d 0 /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VSCommon\15.0\SQM" /v OptIn /t REG_DWORD /d 0 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VSCommon\15.0\SQM" /v OptIn /t REG_DWORD /d 0 /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VSCommon\16.0\SQM" /v OptIn /t REG_DWORD /d 0 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VSCommon\16.0\SQM" /v OptIn /t REG_DWORD /d 0 /f
|
||||||
-
|
-
|
||||||
name: Disable SQM group policy
|
name: Disable SQM group policy
|
||||||
default: true
|
recommend: true
|
||||||
code: reg add "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\VisualStudio\SQM" /v OptIn /t REG_DWORD /d 0 /f
|
code: reg add "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\VisualStudio\SQM" /v OptIn /t REG_DWORD /d 0 /f
|
||||||
-
|
-
|
||||||
name: Disable visual studio telemetry
|
name: Disable visual studio telemetry
|
||||||
default: true
|
recommend: true
|
||||||
code: reg add "HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\Telemetry" /v TurnOffSwitch /t REG_DWORD /d 1 /f
|
code: reg add "HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\Telemetry" /v TurnOffSwitch /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
name: Disable Visual Studio feedback
|
name: Disable Visual Studio feedback
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\VisualStudio\Feedback" /v DisableFeedbackDialog /t REG_DWORD /d 1 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\VisualStudio\Feedback" /v DisableFeedbackDialog /t REG_DWORD /d 1 /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\VisualStudio\Feedback" /v DisableEmailInput /t REG_DWORD /d 1 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\VisualStudio\Feedback" /v DisableEmailInput /t REG_DWORD /d 1 /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\VisualStudio\Feedback" /v DisableScreenshotCapture /t REG_DWORD /d 1 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\VisualStudio\Feedback" /v DisableScreenshotCapture /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
name: Stop and disable Visual Studio Standard Collector Service
|
name: Stop and disable Visual Studio Standard Collector Service
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
sc stop "VSStandardCollectorService150"
|
sc stop "VSStandardCollectorService150"
|
||||||
net stop VSStandardCollectorService150 2>nul
|
net stop VSStandardCollectorService150 2>nul
|
||||||
@@ -680,7 +680,7 @@ actions:
|
|||||||
children:
|
children:
|
||||||
-
|
-
|
||||||
name: Disable Microsoft SpyNet (Windows Defender cloud export for analysis)
|
name: Disable Microsoft SpyNet (Windows Defender cloud export for analysis)
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Reporting" /v "DisableGenericRePorts" /t REG_DWORD /d 1 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Reporting" /v "DisableGenericRePorts" /t REG_DWORD /d 1 /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" /v "LocalSettingOverrideSpynetReporting" /t REG_DWORD /d 0 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" /v "LocalSettingOverrideSpynetReporting" /t REG_DWORD /d 0 /f
|
||||||
@@ -688,15 +688,15 @@ actions:
|
|||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" /v "SubmitSamplesConsent" /t REG_DWORD /d 2 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" /v "SubmitSamplesConsent" /t REG_DWORD /d 2 /f
|
||||||
-
|
-
|
||||||
name: Disable sending infection information
|
name: Disable sending infection information
|
||||||
default: true
|
recommend: true
|
||||||
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\MRT" /v "DontReportInfectionInformation" /t REG_DWORD /d 1 /f
|
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\MRT" /v "DontReportInfectionInformation" /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
name: Disable NetCore Cli telemetry
|
name: Disable NetCore Cli telemetry
|
||||||
default: true
|
recommend: true
|
||||||
code: setx DOTNET_CLI_TELEMETRY_OPTOUT 1
|
code: setx DOTNET_CLI_TELEMETRY_OPTOUT 1
|
||||||
-
|
-
|
||||||
name: Disable Visual Studio Code telemetry
|
name: Disable Visual Studio Code telemetry
|
||||||
default: true
|
recommend: true
|
||||||
docs: https://code.visualstudio.com/docs/getstarted/telemetry
|
docs: https://code.visualstudio.com/docs/getstarted/telemetry
|
||||||
code: |-
|
code: |-
|
||||||
mkdir %appdata%\Code\User
|
mkdir %appdata%\Code\User
|
||||||
@@ -704,7 +704,7 @@ actions:
|
|||||||
echo { "telemetry.enableCrashReporter": false, "telemetry.enableTelemetry": false } > %appdata%\Code\User\settings.json
|
echo { "telemetry.enableCrashReporter": false, "telemetry.enableTelemetry": false } > %appdata%\Code\User\settings.json
|
||||||
-
|
-
|
||||||
name: Disable Microsoft Office telemetry
|
name: Disable Microsoft Office telemetry
|
||||||
default: true
|
recommend: true
|
||||||
docs: https://docs.microsoft.com/en-us/deployoffice/compat/manage-the-privacy-of-data-monitored-by-telemetry-in-office
|
docs: https://docs.microsoft.com/en-us/deployoffice/compat/manage-the-privacy-of-data-monitored-by-telemetry-in-office
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKCU\SOFTWARE\Policies\Microsoft\Office\16.0\osm" /v "Enablelogging" /t REG_DWORD /d 0 /f
|
reg add "HKCU\SOFTWARE\Policies\Microsoft\Office\16.0\osm" /v "Enablelogging" /t REG_DWORD /d 0 /f
|
||||||
@@ -717,61 +717,61 @@ actions:
|
|||||||
children:
|
children:
|
||||||
-
|
-
|
||||||
name: Disable live tile data collection
|
name: Disable live tile data collection
|
||||||
default: true
|
recommend: true
|
||||||
code: reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\MicrosoftEdge\Main" /v "PreventLiveTileDataCollection" /t REG_DWORD /d 1 /f
|
code: reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\MicrosoftEdge\Main" /v "PreventLiveTileDataCollection" /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
name: Disable MFU tracking
|
name: Disable MFU tracking
|
||||||
default: true
|
recommend: true
|
||||||
code: reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\EdgeUI" /v "DisableMFUTracking" /t REG_DWORD /d 1 /f
|
code: reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\EdgeUI" /v "DisableMFUTracking" /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
name: Disable recent apps
|
name: Disable recent apps
|
||||||
default: true
|
recommend: true
|
||||||
code: reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\EdgeUI" /v "DisableRecentApps" /t REG_DWORD /d 1 /f
|
code: reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\EdgeUI" /v "DisableRecentApps" /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
name: Turn off backtracking
|
name: Turn off backtracking
|
||||||
default: true
|
recommend: true
|
||||||
code: reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\EdgeUI" /v "TurnOffBackstack" /t REG_DWORD /d 1 /f
|
code: reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\EdgeUI" /v "TurnOffBackstack" /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
name: Disable Search Suggestions in Edge
|
name: Disable Search Suggestions in Edge
|
||||||
default: true
|
recommend: true
|
||||||
code: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MicrosoftEdge\SearchScopes" /v "ShowSearchSuggestionsGlobal" /t REG_DWORD /d 0 /f
|
code: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MicrosoftEdge\SearchScopes" /v "ShowSearchSuggestionsGlobal" /t REG_DWORD /d 0 /f
|
||||||
-
|
-
|
||||||
category: Configure Internet Explorer
|
category: Configure Internet Explorer
|
||||||
children:
|
children:
|
||||||
-
|
-
|
||||||
name: Disable Geolocation in Internet Explorer
|
name: Disable Geolocation in Internet Explorer
|
||||||
default: true
|
recommend: true
|
||||||
code: reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Geolocation" /v "PolicyDisableGeolocation" /t REG_DWORD /d 1 /f
|
code: reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Geolocation" /v "PolicyDisableGeolocation" /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
name: Disable Internet Explorer InPrivate logging
|
name: Disable Internet Explorer InPrivate logging
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Safety\PrivacIE" /v "DisableLogging" /t REG_DWORD /d 1 /f
|
reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Safety\PrivacIE" /v "DisableLogging" /t REG_DWORD /d 1 /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Safety\PrivacIE" /v "DisableLogging" /t REG_DWORD /d 1 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Safety\PrivacIE" /v "DisableLogging" /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
name: Disable Internet Explorer CEIP
|
name: Disable Internet Explorer CEIP
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\SQM" /v "DisableCustomerImprovementProgram" /t REG_DWORD /d 0 /f
|
reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\SQM" /v "DisableCustomerImprovementProgram" /t REG_DWORD /d 0 /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\SQM" /v "DisableCustomerImprovementProgram" /t REG_DWORD /d 0 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\SQM" /v "DisableCustomerImprovementProgram" /t REG_DWORD /d 0 /f
|
||||||
-
|
-
|
||||||
name: Disable calling legacy WCM policies
|
name: Disable calling legacy WCM policies
|
||||||
default: true
|
recommend: true
|
||||||
code: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings" /v "CallLegacyWCMPolicies" /t REG_DWORD /d 0 /f
|
code: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings" /v "CallLegacyWCMPolicies" /t REG_DWORD /d 0 /f
|
||||||
-
|
-
|
||||||
name: Disable SSLv3 fallback
|
name: Disable SSLv3 fallback
|
||||||
default: true
|
recommend: true
|
||||||
code: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings" /v "EnableSSL3Fallback" /t REG_DWORD /d 0 /f
|
code: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings" /v "EnableSSL3Fallback" /t REG_DWORD /d 0 /f
|
||||||
-
|
-
|
||||||
name: Disable ignoring cert errors
|
name: Disable ignoring cert errors
|
||||||
default: true
|
recommend: true
|
||||||
code: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings" /v "PreventIgnoreCertErrors" /t REG_DWORD /d 1 /f
|
code: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings" /v "PreventIgnoreCertErrors" /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
category: Configure Google Chrome
|
category: Configure Google Chrome
|
||||||
children:
|
children:
|
||||||
-
|
-
|
||||||
name: Disable Chrome Software Reporter Tool
|
name: Disable Chrome Software Reporter Tool
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
icacls "%localappdata%\Google\Chrome\User Data\SwReporter" /inheritance:r /deny "*S-1-1-0:(OI)(CI)(F)" "*S-1-5-7:(OI)(CI)(F)"
|
icacls "%localappdata%\Google\Chrome\User Data\SwReporter" /inheritance:r /deny "*S-1-1-0:(OI)(CI)(F)" "*S-1-5-7:(OI)(CI)(F)"
|
||||||
cacls "%localappdata%\Google\Chrome\User Data\SwReporter" /e /c /d %username%
|
cacls "%localappdata%\Google\Chrome\User Data\SwReporter" /e /c /d %username%
|
||||||
@@ -782,13 +782,13 @@ actions:
|
|||||||
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun" /v "1" /t REG_SZ /d "software_reporter_tool.exe" /f
|
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun" /v "1" /t REG_SZ /d "software_reporter_tool.exe" /f
|
||||||
-
|
-
|
||||||
name: Disable Chrome metrics reporting
|
name: Disable Chrome metrics reporting
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome" /v "MetricsReportingEnabled" /t REG_DWORD /d 0 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome" /v "MetricsReportingEnabled" /t REG_DWORD /d 0 /f
|
||||||
reg add "HKEY_CURRENT_USER\SOFTWARE\Policies\Google\Chrome" /v "MetricsReportingEnabled" /t REG_DWORD /d 0 /f
|
reg add "HKEY_CURRENT_USER\SOFTWARE\Policies\Google\Chrome" /v "MetricsReportingEnabled" /t REG_DWORD /d 0 /f
|
||||||
-
|
-
|
||||||
name: Disable Google update service
|
name: Disable Google update service
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
sc config gupdate start= disabled
|
sc config gupdate start= disabled
|
||||||
sc config gupdatem start= disabled
|
sc config gupdatem start= disabled
|
||||||
@@ -796,25 +796,25 @@ actions:
|
|||||||
schtasks /Change /DISABLE /TN "GoogleUpdateTaskMachineUA"
|
schtasks /Change /DISABLE /TN "GoogleUpdateTaskMachineUA"
|
||||||
-
|
-
|
||||||
name: Disable Adobe Acrobat update service
|
name: Disable Adobe Acrobat update service
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
sc config AdobeARMservice start= disabled
|
sc config AdobeARMservice start= disabled
|
||||||
schtasks /Change /DISABLE /TN "Adobe Acrobat Update Task"
|
schtasks /Change /DISABLE /TN "Adobe Acrobat Update Task"
|
||||||
-
|
-
|
||||||
name: Disable Razer Game Scanner Service
|
name: Disable Razer Game Scanner Service
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
sc stop "Razer Game Scanner Service"
|
sc stop "Razer Game Scanner Service"
|
||||||
sc config "Razer Game Scanner Service" start= disabled
|
sc config "Razer Game Scanner Service" start= disabled
|
||||||
-
|
-
|
||||||
name: Disable Logitech Gaming Registry Service
|
name: Disable Logitech Gaming Registry Service
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
sc stop "LogiRegistryService"
|
sc stop "LogiRegistryService"
|
||||||
sc config "LogiRegistryService" start= disabled
|
sc config "LogiRegistryService" start= disabled
|
||||||
-
|
-
|
||||||
name: Disable Dropbox auto update service
|
name: Disable Dropbox auto update service
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
sc config dbupdate start= disabled
|
sc config dbupdate start= disabled
|
||||||
sc config dbupdatem start= disabled
|
sc config dbupdatem start= disabled
|
||||||
@@ -825,11 +825,11 @@ actions:
|
|||||||
children:
|
children:
|
||||||
-
|
-
|
||||||
name: Do not send Windows Media Player statistics
|
name: Do not send Windows Media Player statistics
|
||||||
default: true
|
recommend: true
|
||||||
code: reg add "HKCU\SOFTWARE\Microsoft\MediaPlayer\Preferences" /v "UsageTracking" /t REG_DWORD /d 0 /f
|
code: reg add "HKCU\SOFTWARE\Microsoft\MediaPlayer\Preferences" /v "UsageTracking" /t REG_DWORD /d 0 /f
|
||||||
-
|
-
|
||||||
name: Disable meta data retrieval
|
name: Disable meta data retrieval
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\WindowsMediaPlayer" /v "PreventCDDVDMetadataRetrieval" /t REG_DWORD /d 1 /f
|
reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\WindowsMediaPlayer" /v "PreventCDDVDMetadataRetrieval" /t REG_DWORD /d 1 /f
|
||||||
reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\WindowsMediaPlayer" /v "PreventMusicFileMetadataRetrieval" /t REG_DWORD /d 1 /f
|
reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\WindowsMediaPlayer" /v "PreventMusicFileMetadataRetrieval" /t REG_DWORD /d 1 /f
|
||||||
@@ -844,33 +844,33 @@ actions:
|
|||||||
children:
|
children:
|
||||||
-
|
-
|
||||||
name: Spectre variant 2 and meltdown (Intel)
|
name: Spectre variant 2 and meltdown (Intel)
|
||||||
default: false
|
recommend: false
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v FeatureSettingsOverride /t REG_DWORD /d 0 /f
|
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v FeatureSettingsOverride /t REG_DWORD /d 0 /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v FeatureSettingsOverrideMask /t REG_DWORD /d 3 /f
|
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v FeatureSettingsOverrideMask /t REG_DWORD /d 3 /f
|
||||||
-
|
-
|
||||||
name: Spectre variant 2 and meltdown (AMD)
|
name: Spectre variant 2 and meltdown (AMD)
|
||||||
default: false
|
recommend: false
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v FeatureSettingsOverride /t REG_DWORD /d 64 /f
|
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v FeatureSettingsOverride /t REG_DWORD /d 64 /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v FeatureSettingsOverrideMask /t REG_DWORD /d 3 /f
|
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v FeatureSettingsOverrideMask /t REG_DWORD /d 3 /f
|
||||||
-
|
-
|
||||||
name: Spectre variant 2 and meltdown (HyperV)
|
name: Spectre variant 2 and meltdown (HyperV)
|
||||||
default: false
|
recommend: false
|
||||||
code: reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization" /v MinVmVersionForCpuBasedMitigations /t REG_SZ /d "1.0" /f
|
code: reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization" /v MinVmVersionForCpuBasedMitigations /t REG_SZ /d "1.0" /f
|
||||||
-
|
-
|
||||||
name: Disable administrative shares
|
name: Disable administrative shares
|
||||||
default: true
|
recommend: true
|
||||||
code: reg add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" /v "AutoShareWks" /t REG_DWORD /d 0 /f
|
code: reg add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" /v "AutoShareWks" /t REG_DWORD /d 0 /f
|
||||||
-
|
-
|
||||||
name: Force enable data execution prevention (DEP)
|
name: Force enable data execution prevention (DEP)
|
||||||
default: false
|
recommend: false
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKEY_LOCAL_MACHINE \ SOFTWARE \ Policies \ Microsoft \ Windows \ Explorer" /v "NoDataExecutionPrevention" /t REG_DWORD /d 0 /f
|
reg add "HKEY_LOCAL_MACHINE \ SOFTWARE \ Policies \ Microsoft \ Windows \ Explorer" /v "NoDataExecutionPrevention" /t REG_DWORD /d 0 /f
|
||||||
reg add "HKEY_LOCAL_MACHINE \ SOFTWARE \ Policies \ Microsoft \ Windows \ System" /v "DisableHHDEP" /t REG_DWORD /d 0 /f
|
reg add "HKEY_LOCAL_MACHINE \ SOFTWARE \ Policies \ Microsoft \ Windows \ System" /v "DisableHHDEP" /t REG_DWORD /d 0 /f
|
||||||
-
|
-
|
||||||
name: Disable AutoPlay and AutoRun
|
name: Disable AutoPlay and AutoRun
|
||||||
default: false
|
recommend: false
|
||||||
docs:
|
docs:
|
||||||
- https://en.wikipedia.org/wiki/AutoRun
|
- https://en.wikipedia.org/wiki/AutoRun
|
||||||
- https://www.stigviewer.com/stig/windows_10/2019-01-04/finding/V-63667
|
- https://www.stigviewer.com/stig/windows_10/2019-01-04/finding/V-63667
|
||||||
@@ -882,59 +882,59 @@ actions:
|
|||||||
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "NoAutoplayfornonVolume" /t REG_DWORD /d 1 /f
|
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "NoAutoplayfornonVolume" /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
name: Disable remote Assistance
|
name: Disable remote Assistance
|
||||||
default: true
|
recommend: true
|
||||||
docs: https://www.stigviewer.com/stig/windows_10/2019-01-04/finding/V-63651
|
docs: https://www.stigviewer.com/stig/windows_10/2019-01-04/finding/V-63651
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Remote Assistance" /v "fAllowToGetHelp" /t REG_DWORD /d 0 /f
|
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Remote Assistance" /v "fAllowToGetHelp" /t REG_DWORD /d 0 /f
|
||||||
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Remote Assistance" /v "fAllowFullControl" /t REG_DWORD /d 0 /f
|
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Remote Assistance" /v "fAllowFullControl" /t REG_DWORD /d 0 /f
|
||||||
-
|
-
|
||||||
name: Disable lock screen camera
|
name: Disable lock screen camera
|
||||||
default: true
|
recommend: true
|
||||||
docs: https://www.stigviewer.com/stig/windows_8_8.1/2014-06-27/finding/V-43237
|
docs: https://www.stigviewer.com/stig/windows_8_8.1/2014-06-27/finding/V-43237
|
||||||
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Personalization" /v "NoLockScreenCamera" /t REG_DWORD /d 1 /f
|
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Personalization" /v "NoLockScreenCamera" /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
name: Prevent the storage of the LAN Manager hash of passwords
|
name: Prevent the storage of the LAN Manager hash of passwords
|
||||||
default: true
|
recommend: true
|
||||||
docs: https://www.stigviewer.com/stig/windows_10/2019-01-04/finding/V-63797
|
docs: https://www.stigviewer.com/stig/windows_10/2019-01-04/finding/V-63797
|
||||||
code: reg add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /v "NoLMHash" /t REG_DWORD /d 1 /f
|
code: reg add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /v "NoLMHash" /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
name: Disable Windows Installer Always install with elevated privileges
|
name: Disable Windows Installer Always install with elevated privileges
|
||||||
default: true
|
recommend: true
|
||||||
docs: https://www.stigviewer.com/stig/windows_10/2019-01-04/finding/V-63797
|
docs: https://www.stigviewer.com/stig/windows_10/2019-01-04/finding/V-63797
|
||||||
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Installer" /v "AlwaysInstallElevated" /t REG_DWORD /d 0 /f
|
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Installer" /v "AlwaysInstallElevated" /t REG_DWORD /d 0 /f
|
||||||
-
|
-
|
||||||
name: Prevent WinRM from using Basic Authentication
|
name: Prevent WinRM from using Basic Authentication
|
||||||
default: true
|
recommend: true
|
||||||
docs: https://www.stigviewer.com/stig/windows_10/2019-01-04/finding/V-63335
|
docs: https://www.stigviewer.com/stig/windows_10/2019-01-04/finding/V-63335
|
||||||
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WinRM\Client" /v "AllowBasic" /t REG_DWORD /d 0 /f
|
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WinRM\Client" /v "AllowBasic" /t REG_DWORD /d 0 /f
|
||||||
-
|
-
|
||||||
name: Restrict anonymous enumeration of shares
|
name: Restrict anonymous enumeration of shares
|
||||||
default: true
|
recommend: true
|
||||||
docs: https://www.stigviewer.com/stig/windows_10/2019-01-04/finding/V-63749
|
docs: https://www.stigviewer.com/stig/windows_10/2019-01-04/finding/V-63749
|
||||||
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WinRM\Client" /v "AllowBasic" /t REG_DWORD /d 0 /f
|
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WinRM\Client" /v "AllowBasic" /t REG_DWORD /d 0 /f
|
||||||
-
|
-
|
||||||
name: Systems must be maintained at a supported (security) level
|
name: Systems must be maintained at a supported (security) level
|
||||||
default: true
|
recommend: true
|
||||||
docs: https://www.stigviewer.com/stig/windows_10/2019-01-04/finding/V-63349
|
docs: https://www.stigviewer.com/stig/windows_10/2019-01-04/finding/V-63349
|
||||||
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WinRM\Client" /v "AllowBasic" /t REG_DWORD /d 0 /f
|
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WinRM\Client" /v "AllowBasic" /t REG_DWORD /d 0 /f
|
||||||
-
|
-
|
||||||
name: Refuse less secure authentication
|
name: Refuse less secure authentication
|
||||||
default: true
|
recommend: true
|
||||||
docs: https://www.stigviewer.com/stig/windows_10/2019-01-04/finding/V-63801
|
docs: https://www.stigviewer.com/stig/windows_10/2019-01-04/finding/V-63801
|
||||||
code: reg add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /v "LmCompatibilityLevel" /t REG_DWORD /d 5 /f
|
code: reg add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /v "LmCompatibilityLevel" /t REG_DWORD /d 5 /f
|
||||||
-
|
-
|
||||||
name: Enable Structured Exception Handling Overwrite Protection (SEHOP)
|
name: Enable Structured Exception Handling Overwrite Protection (SEHOP)
|
||||||
default: true
|
recommend: true
|
||||||
docs: https://www.stigviewer.com/stig/windows_10/2019-01-04/finding/V-68849
|
docs: https://www.stigviewer.com/stig/windows_10/2019-01-04/finding/V-68849
|
||||||
code: reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel" /v "DisableExceptionChainValidation" /t REG_DWORD /d 0 /f
|
code: reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel" /v "DisableExceptionChainValidation" /t REG_DWORD /d 0 /f
|
||||||
-
|
-
|
||||||
name: Block Anonymous enumeration of SAM accounts
|
name: Block Anonymous enumeration of SAM accounts
|
||||||
default: true
|
recommend: true
|
||||||
docs: https://www.stigviewer.com/stig/windows_10/2019-01-04/finding/V-63745
|
docs: https://www.stigviewer.com/stig/windows_10/2019-01-04/finding/V-63745
|
||||||
code: reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel" /v "DisableExceptionChainValidation" /t REG_DWORD /d 0 /f
|
code: reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel" /v "DisableExceptionChainValidation" /t REG_DWORD /d 0 /f
|
||||||
-
|
-
|
||||||
name: Restrict anonymous access to Named Pipes and Shares
|
name: Restrict anonymous access to Named Pipes and Shares
|
||||||
default: true
|
recommend: true
|
||||||
docs: https://www.stigviewer.com/stig/windows_10/2019-01-04/finding/V-63759
|
docs: https://www.stigviewer.com/stig/windows_10/2019-01-04/finding/V-63759
|
||||||
code: reg add "HKLM\SYSTEM\CurrentControlSet\Services\LanManServer\Parameters" /v "RestrictNullSessAccess" /t REG_DWORD /d 1 /f
|
code: reg add "HKLM\SYSTEM\CurrentControlSet\Services\LanManServer\Parameters" /v "RestrictNullSessAccess" /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
@@ -942,11 +942,11 @@ actions:
|
|||||||
children:
|
children:
|
||||||
-
|
-
|
||||||
name: Disable Windows Defender
|
name: Disable Windows Defender
|
||||||
default: false
|
recommend: false
|
||||||
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f
|
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
name: Disable Smart Screen
|
name: Disable Smart Screen
|
||||||
default: false
|
recommend: false
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v "EnableSmartScreen" /t REG_DWORD /d 0 /f
|
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v "EnableSmartScreen" /t REG_DWORD /d 0 /f
|
||||||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v "SmartScreenEnabled" /t REG_SZ /d "Off" /f
|
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v "SmartScreenEnabled" /t REG_SZ /d "Off" /f
|
||||||
@@ -955,18 +955,18 @@ actions:
|
|||||||
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost" /v "EnableWebContentEvaluation" /t REG_DWORD /d 0 /f
|
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost" /v "EnableWebContentEvaluation" /t REG_DWORD /d 0 /f
|
||||||
-
|
-
|
||||||
name: Disable scheduled On Demand anti malware scanner (MRT)
|
name: Disable scheduled On Demand anti malware scanner (MRT)
|
||||||
default: false
|
recommend: false
|
||||||
code: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MRT" /v "DontOfferThroughWUAU" /t REG_DWORD /d 1 /f
|
code: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MRT" /v "DontOfferThroughWUAU" /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
category: UI for privacy
|
category: UI for privacy
|
||||||
children:
|
children:
|
||||||
-
|
-
|
||||||
name: Disable lock screen app notifications
|
name: Disable lock screen app notifications
|
||||||
default: true
|
recommend: true
|
||||||
code: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System" /v "DisableLockScreenAppNotifications" /t REG_DWORD /d 1 /f
|
code: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System" /v "DisableLockScreenAppNotifications" /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
name: Disable online content in explorer
|
name: Disable online content in explorer
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "AllowOnlineTips" /t REG_DWORD /d 0 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "AllowOnlineTips" /t REG_DWORD /d 0 /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoInternetOpenWith" /t REG_DWORD /d 1 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoInternetOpenWith" /t REG_DWORD /d 1 /f
|
||||||
@@ -975,21 +975,21 @@ actions:
|
|||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoWebServices" /t REG_DWORD /d 1 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoWebServices" /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
name: Disable & auto-clear recent documents in explorer
|
name: Disable & auto-clear recent documents in explorer
|
||||||
default: true
|
recommend: true
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoRecentDocsHistory" /t REG_DWORD /d 1 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoRecentDocsHistory" /t REG_DWORD /d 1 /f
|
||||||
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "ClearRecentDocsOnExit" /t REG_DWORD /d 1 /f
|
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "ClearRecentDocsOnExit" /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
name: Disable Live Tiles push notifications
|
name: Disable Live Tiles push notifications
|
||||||
default: true
|
recommend: true
|
||||||
code: reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications" /v "NoTileApplicationNotification" /t REG_DWORD /d 1 /f
|
code: reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications" /v "NoTileApplicationNotification" /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
name: Turn off "Look For An App In The Store" option
|
name: Turn off "Look For An App In The Store" option
|
||||||
default: true
|
recommend: true
|
||||||
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "NoUseStoreOpenWith" /t REG_DWORD /d 1 /f
|
code: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "NoUseStoreOpenWith" /t REG_DWORD /d 1 /f
|
||||||
-
|
-
|
||||||
name: Do not show recently used files in Quick Access
|
name: Do not show recently used files in Quick Access
|
||||||
default: true
|
recommend: true
|
||||||
docs: https://www.tenforums.com/tutorials/2713-add-remove-recent-files-quick-access-windows-10-a.html
|
docs: https://www.tenforums.com/tutorials/2713-add-remove-recent-files-quick-access-windows-10-a.html
|
||||||
code: |-
|
code: |-
|
||||||
if %PROCESSOR_ARCHITECTURE%==x86 ( REM is 32 bit?
|
if %PROCESSOR_ARCHITECTURE%==x86 ( REM is 32 bit?
|
||||||
@@ -1003,13 +1003,13 @@ actions:
|
|||||||
children:
|
children:
|
||||||
# -
|
# -
|
||||||
# name: Run script on start-up (EXPERIMENTAL)
|
# name: Run script on start-up (EXPERIMENTAL)
|
||||||
# default: false
|
# recommend: false
|
||||||
# code: |-
|
# code: |-
|
||||||
# del /f /q %AppData%\Microsoft\Windows\Start Menu\Programs\Startup\privacy-cleanup.bat
|
# del /f /q %AppData%\Microsoft\Windows\Start Menu\Programs\Startup\privacy-cleanup.bat
|
||||||
# copy "%~dpnx0" "%AppData%\Microsoft\Windows\Start Menu\Programs\Startup\privacy-cleanup"
|
# copy "%~dpnx0" "%AppData%\Microsoft\Windows\Start Menu\Programs\Startup\privacy-cleanup"
|
||||||
-
|
-
|
||||||
name: Change NTP (time) server to pool.ntp.org
|
name: Change NTP (time) server to pool.ntp.org
|
||||||
default: false
|
recommend: false
|
||||||
code: |-
|
code: |-
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\W32time\Parameters" /v "NtpServer" /t REG_SZ /d "pool.ntp.org, 0x8" /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\W32time\Parameters" /v "NtpServer" /t REG_SZ /d "pool.ntp.org, 0x8" /f
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\W32time\Parameters" /v "Type" /t REG_SZ /d "NTP" /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\W32time\Parameters" /v "Type" /t REG_SZ /d "NTP" /f
|
||||||
@@ -1020,7 +1020,7 @@ actions:
|
|||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\W32time\TimeProviders\NtpClient" /v "SpecialPollInterval" /t REG_DWORD /d 1024 /f
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\W32time\TimeProviders\NtpClient" /v "SpecialPollInterval" /t REG_DWORD /d 1024 /f
|
||||||
-
|
-
|
||||||
name: Apply settings for all future users (EXPERIMENTAL)
|
name: Apply settings for all future users (EXPERIMENTAL)
|
||||||
default: false
|
recommend: false
|
||||||
code: |-
|
code: |-
|
||||||
REG UNLOAD HKU\DefaultUser
|
REG UNLOAD HKU\DefaultUser
|
||||||
reg load HKU\DefaultUser %SystemDrive%\Users\Default\NTUSER.DAT
|
reg load HKU\DefaultUser %SystemDrive%\Users\Default\NTUSER.DAT
|
||||||
|
|||||||
2
src/application/application.yaml.d.ts
vendored
2
src/application/application.yaml.d.ts
vendored
@@ -9,7 +9,7 @@ declare module 'js-yaml-loader!*' {
|
|||||||
export interface YamlScript extends YamlDocumentable {
|
export interface YamlScript extends YamlDocumentable {
|
||||||
name: string;
|
name: string;
|
||||||
code: string;
|
code: string;
|
||||||
default: boolean;
|
recommend: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface YamlCategory extends YamlDocumentable {
|
export interface YamlCategory extends YamlDocumentable {
|
||||||
|
|||||||
@@ -21,7 +21,13 @@ export class Application implements IApplication {
|
|||||||
}
|
}
|
||||||
this.flattened = flatten(categories);
|
this.flattened = flatten(categories);
|
||||||
if (this.flattened.allCategories.length === 0) {
|
if (this.flattened.allCategories.length === 0) {
|
||||||
throw new Error('An application must consist of at least one category');
|
throw new Error('Application must consist of at least one category');
|
||||||
|
}
|
||||||
|
if (this.flattened.allScripts.length === 0) {
|
||||||
|
throw new Error('Application must consist of at least one script');
|
||||||
|
}
|
||||||
|
if (this.flattened.allScripts.filter((script) => script.isRecommended).length === 0) {
|
||||||
|
throw new Error('Application must consist of at least one recommended script');
|
||||||
}
|
}
|
||||||
ensureNoDuplicates(this.flattened.allCategories);
|
ensureNoDuplicates(this.flattened.allCategories);
|
||||||
ensureNoDuplicates(this.flattened.allScripts);
|
ensureNoDuplicates(this.flattened.allScripts);
|
||||||
@@ -31,6 +37,10 @@ export class Application implements IApplication {
|
|||||||
return this.flattened.allCategories.find((category) => category.id === categoryId);
|
return this.flattened.allCategories.find((category) => category.id === categoryId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public getRecommendedScripts(): readonly IScript[] {
|
||||||
|
return this.flattened.allScripts.filter((script) => script.isRecommended);
|
||||||
|
}
|
||||||
|
|
||||||
public findScript(scriptId: string): IScript | undefined {
|
public findScript(scriptId: string): IScript | undefined {
|
||||||
return this.flattened.allScripts.find((script) => script.id === scriptId);
|
return this.flattened.allScripts.find((script) => script.id === scriptId);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,13 @@ import { IScript } from '@/domain/IScript';
|
|||||||
import { ICategory } from '@/domain/ICategory';
|
import { ICategory } from '@/domain/ICategory';
|
||||||
|
|
||||||
export interface IApplication {
|
export interface IApplication {
|
||||||
|
readonly name: string;
|
||||||
|
readonly version: number;
|
||||||
readonly categories: ReadonlyArray<ICategory>;
|
readonly categories: ReadonlyArray<ICategory>;
|
||||||
|
readonly totalScripts: number;
|
||||||
|
readonly totalCategories: number;
|
||||||
|
|
||||||
|
getRecommendedScripts(): ReadonlyArray<IScript>;
|
||||||
findCategory(categoryId: number): ICategory | undefined;
|
findCategory(categoryId: number): ICategory | undefined;
|
||||||
findScript(scriptId: string): IScript | undefined;
|
findScript(scriptId: string): IScript | undefined;
|
||||||
getAllScripts(): ReadonlyArray<IScript>;
|
getAllScripts(): ReadonlyArray<IScript>;
|
||||||
|
|||||||
@@ -4,5 +4,6 @@ import { IDocumentable } from './IDocumentable';
|
|||||||
export interface IScript extends IEntity<string>, IDocumentable {
|
export interface IScript extends IEntity<string>, IDocumentable {
|
||||||
readonly name: string;
|
readonly name: string;
|
||||||
readonly code: string;
|
readonly code: string;
|
||||||
|
readonly isRecommended: boolean;
|
||||||
readonly documentationUrls: ReadonlyArray<string>;
|
readonly documentationUrls: ReadonlyArray<string>;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,7 +28,11 @@ export class Script extends BaseEntity<string> implements IScript {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(public name: string, public code: string, public documentationUrls: ReadonlyArray<string>) {
|
constructor(
|
||||||
|
public name: string,
|
||||||
|
public code: string,
|
||||||
|
public documentationUrls: ReadonlyArray<string>,
|
||||||
|
public isRecommended: boolean) {
|
||||||
super(name);
|
super(name);
|
||||||
if (code == null || code.length === 0) {
|
if (code == null || code.length === 0) {
|
||||||
throw new Error('Code is empty or null');
|
throw new Error('Code is empty or null');
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ export default class CardList extends StatefulVue {
|
|||||||
|
|
||||||
public async mounted() {
|
public async mounted() {
|
||||||
const state = await this.getCurrentStateAsync();
|
const state = await this.getCurrentStateAsync();
|
||||||
this.setCategories(state.categories);
|
this.setCategories(state.app.categories);
|
||||||
}
|
}
|
||||||
|
|
||||||
public onSelected(categoryId: number, isExpanded: boolean) {
|
public onSelected(categoryId: number, isExpanded: boolean) {
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ export default class CardListItem extends StatefulVue {
|
|||||||
|
|
||||||
private async getCardTitleAsync(categoryId: number): Promise<string | undefined> {
|
private async getCardTitleAsync(categoryId: number): Promise<string | undefined> {
|
||||||
const state = await this.getCurrentStateAsync();
|
const state = await this.getCurrentStateAsync();
|
||||||
const category = state.getCategory(this.categoryId);
|
const category = state.app.findCategory(this.categoryId);
|
||||||
return category ? category.name : undefined;
|
return category ? category.name : undefined;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { INode } from './../SelectableTree/INode';
|
|||||||
|
|
||||||
export class ScriptNodeParser {
|
export class ScriptNodeParser {
|
||||||
public static parseNodes(categoryId: number, state: IApplicationState): INode[] | undefined {
|
public static parseNodes(categoryId: number, state: IApplicationState): INode[] | undefined {
|
||||||
const category = state.getCategory(categoryId);
|
const category = state.app.findCategory(categoryId);
|
||||||
if (!category) {
|
if (!category) {
|
||||||
throw new Error(`Category with id ${categoryId} does not exist`);
|
throw new Error(`Category with id ${categoryId} does not exist`);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,14 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="part">Select:</div>
|
<div class="part">Select:</div>
|
||||||
|
<div class="part">
|
||||||
|
<SelectableOption
|
||||||
|
label="None"
|
||||||
|
:enabled="isNoneSelected"
|
||||||
|
@click="selectNoneAsync()">
|
||||||
|
</SelectableOption>
|
||||||
|
</div>
|
||||||
|
<div class="part"> | </div>
|
||||||
<div class="part">
|
<div class="part">
|
||||||
<SelectableOption
|
<SelectableOption
|
||||||
label="Recommended"
|
label="Recommended"
|
||||||
@@ -14,14 +22,6 @@
|
|||||||
:enabled="isAllSelected"
|
:enabled="isAllSelected"
|
||||||
@click="selectAllAsync()" />
|
@click="selectAllAsync()" />
|
||||||
</div>
|
</div>
|
||||||
<div class="part"> | </div>
|
|
||||||
<div class="part">
|
|
||||||
<SelectableOption
|
|
||||||
label="None"
|
|
||||||
:enabled="isNoneSelected"
|
|
||||||
@click="selectNoneAsync()">
|
|
||||||
</SelectableOption>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -63,7 +63,7 @@ export default class TheSelector extends StatefulVue {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const state = await this.getCurrentStateAsync();
|
const state = await this.getCurrentStateAsync();
|
||||||
state.selection.selectOnly(state.defaultScripts);
|
state.selection.selectOnly(state.app.getRecommendedScripts());
|
||||||
}
|
}
|
||||||
|
|
||||||
public async selectNoneAsync(): Promise<void> {
|
public async selectNoneAsync(): Promise<void> {
|
||||||
@@ -76,8 +76,8 @@ export default class TheSelector extends StatefulVue {
|
|||||||
|
|
||||||
private updateSelections(state: IApplicationState) {
|
private updateSelections(state: IApplicationState) {
|
||||||
this.isNoneSelected = state.selection.totalSelected === 0;
|
this.isNoneSelected = state.selection.totalSelected === 0;
|
||||||
this.isAllSelected = state.selection.totalSelected === state.appTotalScripts;
|
this.isAllSelected = state.selection.totalSelected === state.app.totalScripts;
|
||||||
this.isRecommendedSelected = this.areSame(state.defaultScripts, state.selection.selectedScripts);
|
this.isRecommendedSelected = this.areSame(state.app.getRecommendedScripts(), state.selection.selectedScripts);
|
||||||
}
|
}
|
||||||
|
|
||||||
private areSame(scripts: ReadonlyArray<IScript>, other: ReadonlyArray<IScript>): boolean {
|
private areSame(scripts: ReadonlyArray<IScript>, other: ReadonlyArray<IScript>): boolean {
|
||||||
|
|||||||
@@ -20,8 +20,8 @@ export default class TheHeader extends StatefulVue {
|
|||||||
|
|
||||||
public async mounted() {
|
public async mounted() {
|
||||||
const state = await this.getCurrentStateAsync();
|
const state = await this.getCurrentStateAsync();
|
||||||
this.title = state.appName;
|
this.title = state.app.name;
|
||||||
this.subtitle = `Privacy generator tool for Windows v${state.appVersion}`;
|
this.subtitle = `Privacy generator tool for Windows v${state.app.version}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ describe('UserSelection', () => {
|
|||||||
// arrange
|
// arrange
|
||||||
const app = new ApplicationStub()
|
const app = new ApplicationStub()
|
||||||
.withCategory(new CategoryStub(1)
|
.withCategory(new CategoryStub(1)
|
||||||
.withScripts('s1', 's2', 's3', 's4'));
|
.withScriptIds('s1', 's2', 's3', 's4'));
|
||||||
const selectedScripts = [new ScriptStub('s1'), new ScriptStub('s2'), new ScriptStub('s3')];
|
const selectedScripts = [new ScriptStub('s1'), new ScriptStub('s2'), new ScriptStub('s3')];
|
||||||
const sut = new UserSelection(app, selectedScripts);
|
const sut = new UserSelection(app, selectedScripts);
|
||||||
|
|
||||||
@@ -26,7 +26,7 @@ describe('UserSelection', () => {
|
|||||||
// arrange
|
// arrange
|
||||||
const app = new ApplicationStub()
|
const app = new ApplicationStub()
|
||||||
.withCategory(new CategoryStub(1)
|
.withCategory(new CategoryStub(1)
|
||||||
.withScripts('s1', 's2', 's3', 's4'));
|
.withScriptIds('s1', 's2', 's3', 's4'));
|
||||||
const selectedScripts = [new ScriptStub('s1'), new ScriptStub('s2'), new ScriptStub('s3')];
|
const selectedScripts = [new ScriptStub('s1'), new ScriptStub('s2'), new ScriptStub('s3')];
|
||||||
const sut = new UserSelection(app, selectedScripts);
|
const sut = new UserSelection(app, selectedScripts);
|
||||||
const expected = [new ScriptStub('s2'), new ScriptStub('s3'), new ScriptStub('s4')];
|
const expected = [new ScriptStub('s2'), new ScriptStub('s3'), new ScriptStub('s4')];
|
||||||
|
|||||||
62
tests/unit/domain/Application.spec.ts
Normal file
62
tests/unit/domain/Application.spec.ts
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
import { ScriptStub } from './../stubs/ScriptStub';
|
||||||
|
import { CategoryStub } from './../stubs/CategoryStub';
|
||||||
|
import { Application } from './../../../src/domain/Application';
|
||||||
|
import 'mocha';
|
||||||
|
import { expect } from 'chai';
|
||||||
|
|
||||||
|
describe('Application', () => {
|
||||||
|
it('getRecommendedScripts returns as expected', () => {
|
||||||
|
// arrange
|
||||||
|
const expected = [
|
||||||
|
new ScriptStub('S3').withIsRecommended(true),
|
||||||
|
new ScriptStub('S4').withIsRecommended(true),
|
||||||
|
];
|
||||||
|
const sut = new Application('name', 2, [
|
||||||
|
new CategoryStub(3).withScripts(expected[0], new ScriptStub('S1').withIsRecommended(false)),
|
||||||
|
new CategoryStub(2).withScripts(expected[1], new ScriptStub('S2').withIsRecommended(false)),
|
||||||
|
]);
|
||||||
|
|
||||||
|
// act
|
||||||
|
const actual = sut.getRecommendedScripts();
|
||||||
|
|
||||||
|
// assert
|
||||||
|
expect(expected[0]).to.deep.equal(actual[0]);
|
||||||
|
expect(expected[1]).to.deep.equal(actual[1]);
|
||||||
|
});
|
||||||
|
it('cannot construct without categories', () => {
|
||||||
|
// arrange
|
||||||
|
const categories = [];
|
||||||
|
|
||||||
|
// act
|
||||||
|
function construct() { return new Application('name', 2, categories); }
|
||||||
|
|
||||||
|
// assert
|
||||||
|
expect(construct).to.throw('Application must consist of at least one category');
|
||||||
|
});
|
||||||
|
it('cannot construct without scripts', () => {
|
||||||
|
// arrange
|
||||||
|
const categories = [
|
||||||
|
new CategoryStub(3),
|
||||||
|
new CategoryStub(2),
|
||||||
|
];
|
||||||
|
|
||||||
|
// act
|
||||||
|
function construct() { return new Application('name', 2, categories); }
|
||||||
|
|
||||||
|
// assert
|
||||||
|
expect(construct).to.throw('Application must consist of at least one script');
|
||||||
|
});
|
||||||
|
it('cannot construct without any recommended scripts', () => {
|
||||||
|
// arrange
|
||||||
|
const categories = [
|
||||||
|
new CategoryStub(3).withScripts(new ScriptStub('S1').withIsRecommended(false)),
|
||||||
|
new CategoryStub(2).withScripts(new ScriptStub('S2').withIsRecommended(false)),
|
||||||
|
];
|
||||||
|
|
||||||
|
// act
|
||||||
|
function construct() { return new Application('name', 2, categories); }
|
||||||
|
|
||||||
|
// assert
|
||||||
|
expect(construct).to.throw('Application must consist of at least one recommended script');
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -4,12 +4,12 @@ import { Script } from '@/domain/Script';
|
|||||||
|
|
||||||
describe('Script', () => {
|
describe('Script', () => {
|
||||||
|
|
||||||
it('cannot construct with duplicate lines', async () => {
|
it('cannot construct with duplicate lines', () => {
|
||||||
// arrange
|
// arrange
|
||||||
const code = 'duplicate\nduplicate\ntest\nduplicate';
|
const code = 'duplicate\nduplicate\ntest\nduplicate';
|
||||||
|
|
||||||
// act
|
// act
|
||||||
function construct() { return new Script('ScriptName', code, []); }
|
function construct() { return new Script('ScriptName', code, [], true); }
|
||||||
|
|
||||||
// assert
|
// assert
|
||||||
expect(construct).to.throw();
|
expect(construct).to.throw();
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
import { IApplication, ICategory, IScript } from '@/domain/IApplication';
|
import { IApplication, ICategory, IScript } from '@/domain/IApplication';
|
||||||
|
|
||||||
export class ApplicationStub implements IApplication {
|
export class ApplicationStub implements IApplication {
|
||||||
|
public readonly totalScripts = 0;
|
||||||
|
public readonly totalCategories = 0;
|
||||||
|
public readonly name = 'StubApplication';
|
||||||
|
public readonly version = 1;
|
||||||
public readonly categories = new Array<ICategory>();
|
public readonly categories = new Array<ICategory>();
|
||||||
|
|
||||||
public withCategory(category: ICategory): IApplication {
|
public withCategory(category: ICategory): IApplication {
|
||||||
@@ -10,11 +14,12 @@ export class ApplicationStub implements IApplication {
|
|||||||
public findCategory(categoryId: number): ICategory {
|
public findCategory(categoryId: number): ICategory {
|
||||||
throw new Error('Method not implemented.');
|
throw new Error('Method not implemented.');
|
||||||
}
|
}
|
||||||
|
public getRecommendedScripts(): readonly IScript[] {
|
||||||
|
throw new Error('Method not implemented.');
|
||||||
|
}
|
||||||
public findScript(scriptId: string): IScript {
|
public findScript(scriptId: string): IScript {
|
||||||
throw new Error('Method not implemented.');
|
throw new Error('Method not implemented.');
|
||||||
}
|
}
|
||||||
|
|
||||||
public getAllScripts(): ReadonlyArray<IScript> {
|
public getAllScripts(): ReadonlyArray<IScript> {
|
||||||
throw new Error('Method not implemented.');
|
throw new Error('Method not implemented.');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,10 +11,16 @@ export class CategoryStub extends BaseEntity<number> implements ICategory {
|
|||||||
constructor(id: number) {
|
constructor(id: number) {
|
||||||
super(id);
|
super(id);
|
||||||
}
|
}
|
||||||
public withScripts(...scriptIds: string[]): CategoryStub {
|
public withScriptIds(...scriptIds: string[]): CategoryStub {
|
||||||
for (const scriptId of scriptIds) {
|
for (const scriptId of scriptIds) {
|
||||||
this.scripts.push(new ScriptStub(scriptId));
|
this.scripts.push(new ScriptStub(scriptId));
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
public withScripts(...scripts: IScript[]): CategoryStub {
|
||||||
|
for (const script of scripts) {
|
||||||
|
this.scripts.push(script);
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,8 +5,14 @@ export class ScriptStub extends BaseEntity<string> implements IScript {
|
|||||||
public readonly name = `name${this.id}`;
|
public readonly name = `name${this.id}`;
|
||||||
public readonly code = `name${this.id}`;
|
public readonly code = `name${this.id}`;
|
||||||
public readonly documentationUrls = new Array<string>();
|
public readonly documentationUrls = new Array<string>();
|
||||||
|
public isRecommended = false;
|
||||||
|
|
||||||
constructor(public readonly id: string) {
|
constructor(public readonly id: string) {
|
||||||
super(id);
|
super(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public withIsRecommended(value: boolean): ScriptStub {
|
||||||
|
this.isRecommended = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user