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 GetTableInformation() | |
| Set 購入リストテーブル = Worksheets("購入").ListObjects("購入リストテーブル") | |
| For i = 1 To 購入リストテーブル.ListRows.Count | |
| 商品名 = 購入リストテーブル.ListColumns("商品名").DataBodyRange(i) | |
| Debug.Print 商品名 | |
| 単価 = 購入リストテーブル.ListColumns("単価").DataBodyRange(i) | |
| Debug.Print 単価 | |
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 AddRecordToTable() | |
| Set 購入リストテーブル = Worksheets("購入").ListObjects("購入リストテーブル") | |
| With 購入リストテーブル.ListRows.Add | |
| .Range(1).Value = "商品名" | |
| .Range(2).Value = "100" | |
| .Range(3).Value = "3" | |
| .Range(4).Value = "300" | |
| End With | |
| End Sub |
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> |
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
| 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
| { | |
| "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
| 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
| 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
| 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のキャッシュファイルを削除します。" |