Content
How to remove bitlocker encryption from secondary hard drive.
Hi, I want to remove the BitLocker encryption from my D: drive as it is annoying and unnecessary. I tried using the powershell and the deactivate command but it is giving me an Access Denied error. Please advise how I can remove it.
Microsoft Graph scheduled task script while signed out doesn't work
Whenever I run the script manually in the task scheduler it works fine and able to output the logfile but when I run it as a scheduled task with setting "Whether user is logged on or not" it doesn't add a log file. it seems like it's not even…
Is there a way to troubleshoot an Unknown error when trying to use Set-MsolUserLicense in Powershell?
I have generated this test code to attempt assigning user license assignments to Azure via PowerShell. However, everything functions except the License Assignment. I have debugged every line and narrowed it down to an Unknown error during the…

how to replace an account executing a schedule task by gmsa using powershell
Good morning, I have a hundred scheduled tasks which are executed by a so-called "service" account, but which is I created a gMSA that I want to position on around fifty planned tasks. Manually when I modify the execution account individually…
How to export device local admin password using Microsoft graph Api using PowerShell
Am having a problem exporting local admin password for devices configured with LAPS using Microsoft graph api. The conventional get-lapsadpassword cmdlet works fine but graph api doesn't. I suspect the problem is in the query endpoint because when i run…

dsregcmd /status
You will have to forgive me. I am new to the command line and bat files so hopefully this is an easy question. When I run the dsregcmd /status it spits out a ton of info, ultimately i am interested in the "Device State" information. Is there…
Block in hyper V mode
Hello, I'm asking a question here because I haven't found an explanation anywhere on the Internet. I explain, I don't know how but I converted my administrator user account into a Hyper V account. I don't know at all how to go back. This option…
How to delete managed devices on Intune with Powershell?
I would like to know how to delete an Intune device using Powershell at the command level. I'm guessing the command is as follows, but I don't know the options, so I'd appreciate it if you could enlighten me. Command: Remove-DeviceManagement

Set-AzServiceBusGeoDRConfigurationFailOver error in Azure automation account
I am trying to trigger failover between my service bus namespaces. When I run the following command locally from my computer, it works fine. However, when I run it from a runbook in azure automation (PowerShell), it fails with the following error: A…
PowerShell starts running on its own, consumes most of the memory and cannot play my game.
Recently I have noticed that PowerShell would start running while I am playing a game (genshin impact). The window flashes for a short while and it disappears from taskbar. And then I noticed, the game would lag a lot! Even the simple static page would…
Find domain disabled users (in all sub-OU's)
Dear all, I'm working on a script that can find disabled user accounts within any Active Directory sub-OU of the domain. I tried the cmdlets Search-ADAccount and Get-ADUser, but it always ends up finding only two disabled user accounts located in…

Problems with DNS policy
Hi, community. I made a DNS policy for subnet, zone scope and added record type A. My A record, made above, resolving on client from subnet, it's OK. But while policy enabled, that client can't resolving other records in domain. Appears error: ***…

Programatically item level restore VM with Azure Backup
Anyone using Azure Backup for VMs who’s managed to do item-level restore (to original location) programmatically? With Powershell I get stuck at the step where I get the ”mount script” (exe) & password. Restoring entire VM is super easy because that…

How to disable and enableusb on one GPO
Hello Everyone I will create two GPOs. one GPO with the name DisableUSB and one enableUSB. disableUSB I set authenticated users, all users apply GPO. and enable USB add the user you want to enable. when run on the user's laptop the function is still…

How to export certain users from AD through matching users in csv file, in PowerShell?
Hi I have a list of users in a CSV file (600 user), and I want to use this CSV file to match it with AD users in order to extract/export from AD the users who matches with users in the CSV file using PowerShell, I will export each user with its…
How can I batch download multiple dropbox links from a website?
I'm browsing a site whose author includes multiple links to files on Dropbox. I want to download all of them without clicking each individual link. I have several Chrome extensions that batch download files, but they download the html "preview"…
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…
Wi-Fi disconnected by WSL
Wi-Fi disconnects when starting docker desktop or Ubuntu on WSL2. Ubuntu on WSL2 also cannot connect to the network. Wi-Fi reconnects when vEthernet (WSL) is disabled in changing adapter options. What kind of settings should I do to prevent Wi-Fi…
Powershell script - Sharepoint online - Copy Library contents to another library in a different site & filter the files copied.
Hi, I would like to get some help with creating a script. The powershell script needs to have the ability to sign in to sharepoint, have input prompts for site, site pages and library to copy from and to. I need to be able to copy library content files…

Compiling script components in SSIS package through code
Actually, we have SSIS packages built in visual studio 2017 and target version as Sql server 2016 and now as part of new changes, we are updating the sql server installed version from 2016 to 2022. because of this, we changed the visual studio to 2019…