This file contains hidden or 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
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
Enable-RemoteDesktop | |
Disable-UAC | |
cinst git | |
cinst vscode | |
cinst python | |
This file contains hidden or 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
$targetFileName = "Ending_60p.txt" | |
$desktop = [Environment]::GetFolderPath("Desktop") | |
$targetFile = Join-Path $desktop $targetFileName | |
if(!(Test-Path $targetFile)) { | |
Write-Host "$targetFile が存在しませんでした" | |
exit | |
} |
This file contains hidden or 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
Write-Host "Outlookを終了します。" | |
taskkill /IM outlook.exe | |
Write-Host "Teamsを終了します。" | |
Get-Process | Where-Object {$_.ProcessName -eq "Teams"} | Stop-Process | |
Write-Host "5秒待ちます" | |
Start-Sleep 5 | |
Write-Host "Teamsのキャッシュファイルを削除します。" |
This file contains hidden or 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
param ( | |
[Parameter(mandatory=$true)] $MMAInstallerURI, | |
[Parameter(mandatory=$true)] $WorkSpaceID, | |
[Parameter(mandatory=$true)] $Key | |
) | |
#donwload | |
Invoke-WebRequest -UseBasicParsing -URI $MMAInstallerURI -OutFile .\MMASetup-AMD64.exe | |
#extract |
This file contains hidden or 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
Sub 部署名変更bySubscriptionGUID(ByVal guid As String, ByVal newDepartment As String) | |
Dim detailTable | |
Set detailTable = Worksheets("データソースfromAzure(detail)").ListObjects("detail") | |
For i = 1 To detailTable.ListRows.Count | |
If detailTable.ListColumns("サブスクリプション GUID (SubscriptionGuid)").DataBodyRange(i) = guid Then | |
detailTable.ListColumns("部署名 (Department Name)").DataBodyRange(i).Value = newDepartment | |
End If | |
Next |
This file contains hidden or 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
{ | |
"mode": "All", | |
"policyRule": { | |
"if": { | |
"allOf": [ | |
{ | |
"field": "type", | |
"equals": "Microsoft.Network/networkSecurityGroups/securityRules" | |
}, | |
{ |
This file contains hidden or 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-EXOPSSession | |
Get-Mailbox | ForEach-Object { Set-MailboxRegionalConfiguration -Identity $_.displayname -DateFormat "yyyy/MM/dd" -TimeFormat "H:mm" -TimeZone "Tokyo Standard Time" -LocalizeDefaultFolderName:$True -Language "ja-JP"} |
This file contains hidden or 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
Windows Registry Editor Version 5.00 | |
;CapsLockを右Ctrlにする | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] | |
"Scancode Map" = hex:00,00,00,00, 00,00,00,00, 02,00,00,00, 1D,E0,3A,00, 00,00,00,00 |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<unattend xmlns="urn:schemas-microsoft-com:unattend"> | |
<settings pass="oobeSystem"> | |
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<OOBE> | |
<HideEULAPage>true</HideEULAPage> | |
</OOBE> | |
<UserAccounts> | |
<AdministratorPassword> | |
<Value>SampleP@ssw0rd</Value> |