8,343 questions with Windows for business | Windows Server | User experience | PowerShell tags
SCCM Configuration Item \ Baseline Powershell script issues
I found a PowerShell Script that uses the SCCM Configuration Items and Baselines to ensure DNS is set correctly. This script is awesome however it allow allows you to set to DNS servers. I need to set 4. I am not sure what I am doing wrong any help would…
Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Intune | Configuration Manager | Other
cannot respond to powershell question about region code
I can't actually respond to the query The source requires the current machine's 2-letter geographic region to be sent to the backend service to function properly (ex. "US"). I have typed in Y and YES but neither of those worked, and neither of…
Windows for business | Windows Server | User experience | PowerShell
Rename my files
see my script Add-Type -AssemblyName System.Windows.Forms # --- Helper functions --- function Select-FolderDialog { $dialog = New-Object System.Windows.Forms.FolderBrowserDialog if ($dialog.ShowDialog() -eq…
Windows for business | Windows Server | User experience | PowerShell
Get-EXOMailboxPermission issues
Hi all I have a script that goes through all mailboxes (about 6k) in our org and collects access data. Then, based on this data, we can find out which user has access to what mailboxes. To speedup the process, I run 48 streams in parallel. For some…
Exchange Online
Windows for business | Windows Server | User experience | PowerShell
How to fix Error Acquiring Token
I'm getting this error whenever i try to connect to Exchange online using PowerShell as Admin and I can't figure out how to fix it. Error Acquiring Token: Unknown Status: Unexpected Error: 0xffffffff80070520 Context: (pii) Tag: 0x21420087 (error code…
Exchange Online
Exchange | Exchange Server | Management
Windows for business | Windows Server | User experience | PowerShell
how to install powershell?
pool game says it needs development action to continue I don't know how to proceed how to install powershell
Windows for business | Windows Server | User experience | PowerShell
Facing : Connect-ExchangeOnline: A parameter cannot be found that matches parameter name 'Organization'.
Hi all, I tried following the document: https://learn.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth but unable to get through this step:…
Exchange | Exchange Server | Development
Exchange | Exchange Server | Management
Windows for business | Windows Server | User experience | PowerShell
Possibility for Automation of DC promo and DC Demotion?
Hi Team, As new to the Automation part and exploring the few opportunities to utilize Automation for my some of the tech, like we do the DC promotion and DC Demotion activity manually on our environment, where as we have lots of servers in line to be…
Windows for business | Windows Server | User experience | PowerShell
WARNING: The version '1.4.8.1' of module 'PackageManagement' is currently in use. Retry the operation after closing the applications.
I can't seem to update modules. I do not know why I keep getting this error. WARNING: The version '1.4.8.1' of module 'PackageManagement' is currently in use. Retry the operation after closing the applications. I'm trying to update Exchange…
Windows for business | Windows Server | User experience | PowerShell
Is this the best it can get?
Add-Type -AssemblyName System.Windows.Forms $dictDialog = New-Object System.Windows.Forms.OpenFileDialog $dictDialog.Title = "Select dictionary.txt" $dictDialog.Filter = "All files (.)|." $null =…
Windows for business | Windows Server | User experience | PowerShell
Is there a PowerShell script that gets all SharePoint sites and the owners of the site
Using the PowerShell commands below, it lists all sites and sub sites including the title, author and url of those site. However, the author property returns the user who created the site not the site owner. Write-Host("Getting Site…
Microsoft 365 and Office | SharePoint Server | For business
Windows for business | Windows Server | User experience | PowerShell
Command to get monitor model number and serial number
simple Command to get monitor model number and serial number just like below
Windows for business | Windows Server | User experience | PowerShell
how to export the list of email forwarding on O365 including all the mailbox(shared, live etc)
I tried to export the list in powershell, but i very less details, one of my friend export in some other way, he got some other users. Please do the needful.
Exchange Online
Microsoft 365 and Office | Development | Office JavaScript API
Microsoft 365 and Office | Development | Microsoft 365 Publishing
Windows for business | Windows Server | User experience | PowerShell
SharePoint online: Get permission from each document folder by PowerShell via CSV file
Hi, I'm looking for solution on following. I want to get permission from a document library the folder and subfolder with permission settings and want it as CSV file output. During searching, I found this script, but it doesn't include the…
Microsoft 365 and Office | SharePoint | For business | Windows
Windows for business | Windows Server | User experience | PowerShell
how to fix The term 'az' is not recognized as the name of a cmdlet, function, script file ?
Hi when I run the command "az dt list -o table" in Powershell from visual studio code, I get the following error: The term 'az' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the…
Azure Cloud Services
Windows for business | Windows Server | User experience | PowerShell
Powershell command runs really slow on first run, then runs fine until powershell is closed
OK so we deploy pipelines to a couple of servers, both are identical and get the same scripts but 1 shows the issue and the other does not. Both are Windows Server 2019 with the same specs The issue simplified down is, when you open a Powershell…
Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Server | User experience | Other
Export all NSG Rules in a subscription to one CSV file
Please provide a PowerShell script to export all Azure NSG's along with rules in one subscription to one csv file
Windows for business | Windows Server | User experience | PowerShell
Azure DevOps API is not returning all users - Only the First 498 users are returned
The below code is fetching only the first 498 users. How to fetch all the users from Azure DevOps Variables $organization = "" $pat = "" $base64AuthInfo =…
Windows for business | Windows Server | User experience | PowerShell
Windows powershell starts old python
Hello together, this is what I get if I try to start my new installed python 3.11.4: PS C:\Users\XXX> python Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 19:29:22) [MSC v.1916 32 bit (Intel)] on win32 Type "help",…
Windows for business | Windows Server | User experience | PowerShell
Intune script that will check the uptime of each machine in the organization and restart laptop after checks
Hello everyone, I need your help, please, because I’m feeling desperate. I want to create a detection and a remediation script in Intune. As a result, I would like it to check if the uptime of each machine reaches 5 days and send a warning to the user:…