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
# Move to the directory for CSV output (replace the path freely) | |
cd C:\work | |
# Connect to Microsoft Graph | |
### Sign in using a global administrator | |
### A consent page for requesting access to Entra ID will be displayed | |
Connect-MgGraph -Scope "AuditLog.Read.All", "Directory.Read.All" | |
# Define the properties to be acquired | |
### Compliance state change: IsCompliant |
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
# Move to the directory for CSV output (replace the path as needed) | |
cd C:\work | |
# Connect to Microsoft Graph | |
### Sign in using a global administrator account | |
### The consent page for accessing Entra ID will be displayed | |
Connect-MgGraph -Scope "AuditLog.Read.All", "Directory.Read.All", "Policy.Read.All" | |
# Get the date and time for the past 24 hours | |
$last24Hours = (Get-Date).AddHours(-24).ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ssZ") |
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
Param([switch]$Is64Bit = $false) | |
Function Restart-As64BitProcess { | |
If ([System.Environment]::Is64BitProcess) { return } | |
$Invocation = $($MyInvocation.PSCommandPath) | |
if ($Invocation -eq $null) { return } | |
$sysNativePath = $psHome.ToLower().Replace("syswow64", "sysnative") | |
$proc = Start-Process "$sysNativePath\powershell.exe" -ArgumentList "-ex bypass -file `"$Invocation`" -Is64Bit" -WindowStyle Hidden -Wait -PassThru | |
return $proc | |
} |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>PayloadContent</key> | |
<array> | |
<dict> | |
<key>AutoJoin</key> | |
<true/> | |
<key>CaptiveBypass</key> |
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
let | |
Source = (#"IP Address" as text) => let | |
Source = Json.Document(Web.Contents("http://ip-api.com/json/" & #"IP Address")), | |
#"Converted to Table" = Record.ToTable(Source), | |
#"Transposed Table" = Table.Transpose(#"Converted to Table"), | |
#"Promoted Headers" = Table.PromoteHeaders(#"Transposed Table") | |
in | |
#"Promoted Headers" | |
in | |
Source |
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
<WLANProfile xmlns="http://www.microsoft.com/networking/WLAN/profile/v1"> | |
<name>"①プロファイルの名前(自由)"</name> | |
<SSIDConfig> | |
<SSID> | |
<hex>"①で設定した値を16進数で変換したもの"</hex> | |
<name>"②SSID"</name> | |
</SSID> | |
<nonBroadcast>false</nonBroadcast> | |
</SSIDConfig> | |
<connectionType>ESS</connectionType> |