- Карта расположения въезда в ОС "Судостроитель": https://is.gd/utakub
- от станции м. Нивки: https://is.gd/onamik
- от станции м. Сырец: https://is.gd/awavam
@echo off | |
setlocal enabledelayedexpansion | |
set args=%* | |
set args=%args:"='% | |
set args=%args:(=`(% | |
set args=%args:)=`)% | |
set invalid="=' | |
if !args! == !invalid! ( set args= ) | |
powershell.exe -noLogo -noProfile -executionPolicy Unrestricted -command "Invoke-Shimgen -path %args%; exit $lastExitCode" |
# by Brandon Padgett | |
function Resolve-Module | |
{ | |
[Cmdletbinding()] | |
Param | |
( | |
[Parameter(Mandatory)] | |
[string[]] $Name | |
) |
<# | |
.SYNOPSIS | |
Get-ADK: Get and install Windows Assessment and Deployment Kit (WADK) | |
.DESCRIPTION | |
Get-ADK is utility for downloading and installing multiple versions of Windows ADK tool. | |
Usage: | |
.\Get-ADK.ps1 command [arguments] |
#region Module initialization | |
foreach ($subDir in "private", "public") | |
{ | |
$currentFunctions = @() | |
Get-ChildItem -path (Join-Path -path $PSScriptRoot -childPath $subDir) ` | |
-filter *.ps1 -file -recurse | | |
ForEach-Object { | |
. $_.FullName |
$outdated = (choco outdated) -join "`n" | |
$outdated = ($outdated -replace '(?sx) ^ .* \n\n (.*) \n\n .* $', '$1') -split "`n" | |
$outdated | | |
ForEach-Object { | |
if ($_ -match '(?x) ^ (?<name> [^|]+) \| (?<old> [^|]+) \| (?<new> [^|]+) \| (?<pinned> [^|]+) $') { | |
[psCustomObject] $Matches | |
} | |
} | | |
Select-Object Name, New, Old, Pinned |
function Select-AllWordsMatch { | |
[CmdletBinding()] | |
Param( | |
[Parameter( | |
Mandatory, | |
Position = 0, | |
ValueFromPipelineByPropertyName | |
)] | |
[Alias( 'Word' )] |
function Get-dotNetCultures | |
{ | |
[Globalization.CultureInfo]::GetCultures( | |
[Globalization.CultureTypes]::AllCultures -as [uint32] -band | |
-bnot ( | |
[Globalization.CultureTypes]::NeutralCultures | |
) | |
) |
# Based on https://serverfault.com/questions/852144/how-do-i-remotely-manage-hyper-v-2016-standalone-via-windows-10 | |
# on the Server which you are going to start managing remotely^ | |
# 1. run sconfig in cmd.exe | |
# 2. Set computer name (eg. server-1) (do NOT use periods) | |
# 3. Configure remote management (disabled => enabled) | |
# 4. Configure Remote Desktop (disabled => enabled) | |
# 5. start Powershell | |
# the following should be entered in Powershell window |