Admin quotas by PowerShell
How to assign a quota template previously created through PowerShell to a specific folder?
Query on Snapsht
Hi All, I am using the PowerShell syntax below to take snapshots of Windows VMs. Will the current syntax use an incremental or full snapshot? I want to use a full snapshot. Additionally, I would like to take snapshots of Linux VMs. If I change -OsType…
hexadecimal value 0x00, is an invalid character. Line 2, position 1
VbrAnswerFile_install.txt Hi Experts, We are running an PowerShell comment in that PowerShell comment we are calling the XML file and trying to install veeam software. I am getting an error like "hexadecimal value 0x00, is an invalid character.…
Retrieving the disk space utilization on Azure VM using PowerShell script?
I need clarification on whether it is possible to query the Azure VM disk space utilization. The PowerShell command below does not accurately show the usage; it only displays the VM disk…
Changes made to the mail flow in EAC do not take effect immediately
Recently, I have made changes of mail flow in EAC but the rules did not take effect immediately. Sometime, I have to wait 2-3 hours or longer How to speed up to propagate the changes and apply them across the system? Could you provide the solutions on…
powershell login error
hi all i am new to powershell and azure world. i am trying to login to my office365 azure using powershell. my admin account is MFA enabled. i am using connect-azuread command. i get the prompt to enter username/password and then approve the request…
Get the list of the last logon users from a txt file using powershell
I want to get lastlgon from a list in the txt file My query on powershell gets the result for an account within the file, but with more users an error is generated. $file = Get-Content -Path "C:\Temp\UsersLastLogon.txt" Get-ADUser…
Remove Opinion Center
What is the powershell command to permanently uninstall the win11 opinion center from all users? Thanks
pc is freezing and humming when playing a game
when playing pogo games orm doing a jigsaw puzzle pc freezes and hums causing me to shut down pc
SOLVED! M365DSC certificate authentication fails with "does not have a private key" error
I am deploying an M365DSC infra for my org. I've followed the pre-requisites and installed and updated DSC on a stand-alone Azure VM. I intend to use certificate authentication and created the EntraID application using the…
M365DSC Certificate authentication fails with "does not have a private key" error
I am deploying M365DSC infra for my org. I have followed the pre-requisites and installed and updated DSC on a stand-alone Azure VM. I intend to use certificate authentication and created the EntraID application using the Update-M365DSCAzureAdApplication…
Deploy custom background to Microsoft Teams via Intune PowerShell scripts
Hi, I have been asked by my company to find a way to deploy corporate Backgrounds to Microsoft Teams. I found many sites that pushed me towards using Win32 Apps within Intune and the step-by-step guides where easy to follow. However, ever guide/forum I…
How to check the type of corruption in my mailbox before repairing it.
I want to check the type of corruption in my mailbox before repairing it. I used the New-MailboxRepairRequest with the -DetectOnly switch against all the corruption parameters. I check the status of the job using the Get-MailboxRepairRequest. Now I want…
Restore OneDrive files in bulk from Preservation Library - Powershell
Is there a way to pull files from the OneDrive Preservation library in bulk? User had two computers and had OneDrive sync'd on both. While in the process of issues they lost their OneDrive files and had cleared the trash. They are all now located in the…
Querying Win32_PageFileSetting results in empty response
I am trying to query some information from Win32_PageFileSetting WMI class and I am unable to gather any kind of information. I tried on multiple versions of PowerShell including: Major 5, Minor 1, Build 22621, Revision 4249 Major 5, Minor 1, Build…
Issues with Web Front End app for background PS scripts with PS remoting inside
Hi, I have issues with Web Front End app (running on IIS) for background PS scripts with PS remoting inside: $session = New-PSSession -ComputerName dcName -ConfigurationName DomainAdmins Invoke-Command -Session $session -ScriptBlock {...} …
while i close Negotiate and Kerberos,the winrm reports below error
While i close Negotiate and Kerberos, the winrm reports below error I can't do anything to solve this error, for example "winrm invoke Restore winrm/Config"
Warning PowerShell ID 300
Hi, More than a year after reporting the problem, I continue to receive the same PowerShell warning despite everything working normally and all versions being up to date. Maybe with this new information we can better understand the problem. I know it…
Set-ExecutionPolicy Unrestricted during script run ?
Hi, I'm doing server automation in a test environment, and sometimes the script shows the ExecutionPolicy before the script is run. I wanted to know if this can be changed from within the script I'm running. I have tried many methods for changing it from…
PowerShell Error:SecurityError: (:) [], PSSecurityException
Hi All, I am using Windows MDT to deploy OS and run 2 PowerShell script to install a software (with registry update) and enable BitLocker per our customization request. Environment: MDT: 6.3.8456.1000 ADK: 10.1.19041.1 Both of…