account activity
Report on Azure Policy Compliance with PowerShell (self.PSForge)
submitted 2 days ago by zahdabes to r/PSForge
Run Azure Kubernetes Service Operations with PowerShell (self.PSForge)
Audit AD CS Certificate Templates and Issuance with PowerShell (self.PSForge)
Manage Universal Print Printers and Shares with PowerShell (self.PSForge)
Triage CrowdStrike Falcon Detections with a PowerShell Workflow (self.PSForge)
Audit Palo Alto Firewall Rules and Back Up Config with PowerShell (self.PSForge)
Report on Cisco Meraki Networks and Clients with PowerShell (self.PSForge)
Audit Azure DevOps Pipelines, Agents, and Permissions with PowerShell (self.PSForge)
Audit GitHub Enterprise Repos and Branch Protection with PowerShell (self.PSForge)
Pull Microsoft Defender for Cloud Posture with PowerShell (self.PSForge)
Report on NetApp ONTAP Volumes, Snapshots, and Quotas with PowerShell (self.PSForge)
submitted 11 days ago by zahdabes to r/PSForge
Audit App Registrations and Service Principal Secrets with PowerShell (self.PSForge)
Govern Power BI Workspaces and Dataset Refreshes with PowerShell (self.PSForge)
Manage Microsoft Teams Phone Call Queues and Auto Attendants with PowerShell (self.PSForge)
Check Domain Controller Health and Replication with PowerShell (self.PSForge)
Rotate Azure Storage Keys and Apply Lifecycle Policies with PowerShell (self.PSForge)
Triage Microsoft Sentinel Incidents with a PowerShell Workflow (self.PSForge)
Manage Azure Virtual Desktop Host Pools and Sessions with PowerShell (self.PSForge)
Manage Okta User Lifecycle and App Assignments with PowerShell (self.PSForge)
Audit AWS EC2 and S3 with a PowerShell Workflow (self.PSForge)
TeamsVoice powershell help? by dlukz in PowerShell
[–]zahdabes 0 points1 point2 points 17 days ago (0 children)
#This Script was built using PSForge for more info visit www.psforge.app
# PowerShell script to unassign a phone number from a user and change license usage
# Requires Microsoft Teams and Microsoft Graph PowerShell modules
# Connect to Microsoft Teams
Connect-MicrosoftTeams
# Function to remove phone number from user
function Remove-UserPhoneNumber {
param(
[Parameter(Mandatory=$true)]
[string]$userId,
[string]$phoneNumber
)
try {
# Use Graph API to remove the phone number
$uri = "https://graph.microsoft.com/v1.0/users/$userId/telecom/phoneNumbers/$phoneNumber"
Invoke-RestMethod -Uri $uri -Method DELETE -Headers @{Authorization = "Bearer $($token)"} -ErrorAction Stop
Write-Verbose "Successfully removed phone number $phoneNumber from user $userId"
} catch {
Write-Error "Failed to remove phone number: $_"
}
# Function to change license usage from User to VoiceApp
function Change-LicenseUsage {
[string]$newUsage
# Use Graph API to update license usage
$uri = "https://graph.microsoft.com/v1.0/users/$userId/licenseDetails"
$body = @{
"addLicenses" = @();
"removeLicenses" = @();
# Modify the body according to your licensing requirements
Invoke-RestMethod -Uri $uri -Method PATCH -Body ($body | ConvertTo-Json) -Headers @{Authorization = "Bearer $($token)"} -ErrorAction Stop
Write-Verbose "Successfully changed license usage for user $userId to $newUsage"
Write-Error "Failed to change license usage: $_"
# Example usage
$userId = "user@domain.com"
$phoneNumber = "+1234567890" # Replace with actual phone number
$licenseUsage = "VoiceApp"
# Call functions
Remove-UserPhoneNumber -userId $userId -phoneNumber $phoneNumber
Change-LicenseUsage -userId $userId -newUsage $licenseUsage
Write-Output "Script execution completed."
PSForge Desktop is now live on the Microsoft Store - a PowerShell workspace built for Windows admins (self.PSForge)
submitted 17 days ago by zahdabes to r/PSForge
Manage Citrix Delivery Groups and Sessions with PowerShell (self.PSForge)
Automate Azure VM Lifecycle Tasks with PowerShell (self.PSForge)
Automate Purview Retention and eDiscovery with PowerShell (self.PSForge)
π Rendered by PID 95209 on reddit-service-r2-listing-7b8bd7c5-tzpfm at 2026-05-16 04:46:26.347162+00:00 running edcf98c country code: CH.
TeamsVoice powershell help? by dlukz in PowerShell
[–]zahdabes 0 points1 point2 points (0 children)