This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$NLMType = [Type]::GetTypeFromCLSID(‘DCB00C01-570F-4A9B-8D69-199FDBA5723B’) | |
$INetworkListManager = [Activator]::CreateInstance($NLMType) | |
$NLM_ENUM_NETWORK_CONNECTED = 1 | |
$NLM_NETWORK_CATEGORY_PUBLIC = 0x00 | |
$NLM_NETWORK_CATEGORY_PRIVATE = 0x01 | |
$INetworks = $INetworkListManager.GetNetworks($NLM_ENUM_NETWORK_CONNECTED) | |
foreach ($INetwork in $INetworks) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"LayoutType" : "PANEL", | |
"PanelRows" : "2", | |
"PanelCols" : "4", | |
"RowDataSQL" : "", | |
"FontSize" : "1.0", | |
"DBType" : "MICROSOFT", | |
"DBConnStr" : "data source=APSHODMS;initial catalog=MediatelAutodialer;persist security info=True;user id=mediatel;password=---", | |
"WebService" : "http://172.26.9.4:8888/RealTimeWS.asmx", | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function int_to_text($int, $x = 1) | |
{ | |
$len = strlen($int); | |
// desítky + jednotky | |
if(($len - 2) >= 0) | |
$des = substr($int, $len - 2, 2); //dvojciferne | |
else $des = substr($int, $len - 1, 1); //jednociferne | |
if($des < 21) | |
$des_text = int_to_text_basic($des, $x); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare @databasesToRestore table (BakFile nvarchar(128)); | |
insert @databasesToRestore(BakFile) values | |
('S545.bak'), | |
('S1101546.bak'); | |
---('S1101546.bak'), | |
---('S01601101547.bak'); | |
---('S7.bak'), | |
---('S01549.bak'), | |
---('S.bak'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-WebCertificate { | |
Param( | |
[parameter(Mandatory = $true)] | |
[String] | |
$Fqdn, | |
[parameter(Mandatory = $true)] | |
[String] | |
$CertificateOutputPath, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Settings] | |
Priority=FallbackDeployRoot, DefaultGateway, Default | |
[FallbackDeployRoot] | |
; Default deployment root in case of failure in the next step with the gateway selection | |
DeployRoot=\\CZ-PRG-MDT\ClientDeploymentShare$ | |
[DefaultGateway] | |
; Based on the default gateway we will select corresponding location section | |
172.24.39.254=CZ-PRAHA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Test-DnsResolving($DnsServer, $Delay, $Query) | |
{ | |
begin { | |
$testsCount = 0 | |
$latencySum = 0 | |
$max = [Double]0 | |
$min = [Double]99999 | |
[Console]::TreatControlCAsInput = $true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$hosts = 1..2 | foreach { ("swarm{0:00}.{1}" -f $_, $env:USERDNSDOMAIN).ToLower() } | |
# Install Docker Engine to all nodes | |
Invoke-Command -ComputerName $hosts -ScriptBlock { | |
Install-PackageProvider -name NuGet -MinimumVersion 2.8.5.201 -Force | |
Install-Module -Name DockerMsftProvider -Repository PSGallery -Force | |
Install-Package -Name docker -ProviderName DockerMsftProvider -Force | |
} | |
# Restart is needed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Connect-AzureAD | |
$skus = Get-AzureADSubscribedSku | |
$skus | Select -Property Sku*,ConsumedUnits -ExpandProperty PrepaidUnits | Select SkuPartNumber, ConsumedUnits, Enabled | |
$sku = $skus | where SkuPartNumber -eq "O365_BUSINESS_ESSENTIALS" | |
$sku.ServicePlans | |
$serviceToEnable = "57ff2da0-773e-42df-b2af-ffb7a2317929" | |
$users = Get-AzureADUser | |
$user = $users | Select -First 1 -Skip 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wmic path softwarelicensingservice get OA3xOriginalProductKey |
OlderNewer