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-ExecutionPolicy RemoteSigned -force | |
| . { iwr -useb https://boxstarter.org/bootstrapper.ps1 } | iex; | |
| Install-BoxstarterPackage -PackageName https://gist.githubusercontent.com/ebibibi/cc53c859f2af91737889c2a6f6eb0aa5/raw/boxstarter.txt |
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 |