Automating with PowerShell - Move user's onedrive files to an archive folder on SharePoint when offboarding employee
Currently we go through a manual process of; login to office365 with global admin. go to the user's properties and create onedrive link to the user's files. click the link, select all files/folders then move them to a sharepoint archive…
Protect Powershell script to be not editable, but executable
Hi, can you anybody show me how can I protect a script, so that the script cannot be changed (modified), but it's can be run for example every night at 00:00 as scheduled task? Thank you.
Script to deny access to this computer over the network - Windows
For a college study, I need to study ways to create a script to deny computer access, which is done by going into: "run: gpedit.msc" Computer Configuration Windows Settings Security Settings Local Policies User…
SQL User Password Rotation in MBAM Platform
Hi all, I have a server with the MBAM platform installed, and the MBAM database resides on a SQL instance in another server. A password change for the SQL user is needed, but it is unclear where to update it in the MBAM platform and if it is necessary…
My PC randomly shuts down during gaming. How do I find the cause to this?
Hello, I just upgraded all new parts to my PC except for my graphics card and power supply. I thought the issue was coming from the power supply so i bought a new 1000w one. Specs: MSI MAG x870, AMD Radeon 6900 XT, AMD Ryzen 7 9700X, 2x DDR5 RAM, 1 Hard…
The local farm is not accessible. cmdlets with featuredependencyid are not registered
Dears, Hope this mail finds you well. We are facing an issue with our SharePoint server while opening either the Windows PowerShell or SharePoint Management Shell, throwing an error as “The local farm is not accessible..”. I tried to run the Shell with…
Powershell 5.1 not accepting keyboard input when using Remote Desktop HTML5 Web Client
Install the latest RDS HTML5 client on a RDS deployment as specified here: https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/clients/remote-desktop-web-client-admin Open a web browser session and start an RDS session. …
How to run a batch file when windows 11 when shutdown is activated
I need to activate a USB relay using serial code on shutdown
Connect-MgGraph
I want to connect to Azure MS Graph using an Azure Service Principal. How can I generate a certificate for the Azure Service Principal? I have the Client ID and Tenant ID. I need to fetch users information from Azure AD, and I have the required Graph API…
Need help with Powershell 7.4 Invoke-RestMethod error: 'Operation is not valid due to the current state of the object
Hello I'm trying to run an API Patch request, using Invoke-RestMethod, to update one item(email address) at the endpoint whilst looping through a dataset which has the item value to update and the parameter for the uri. I am, however, receiving an error…
Powershell ISE Illegal characters in path with literalpath
Hello! I have encountered the problem of running PowerShell cmdlets using "LiteralPath" in PowerShell ISE, when folder is existing. Error message: Get-ChildItem : Illegal characters in path. At line:1 char:1 + Get-ChildItem -LiteralPath…
I need to create a PowerShell script that fixes several AD accounts in the office field with the new office spelling, all at once, from capital to normal case. I do not need change the normal office spelling for those that are correctly spelled. Using the
I need to create a PowerShell script that fixes several AD accounts in the office field with the new office spelling, all at once, from capital to normal case. I do not need change the normal office spelling for those that are correctly spelled. Using…
Adobe Acrobat DC on Powershell
I am a newbie on this forum but has developed some simple powershell scripts for file manipulation in the past. Part my task right now is to combine .pdf files into a portfolio using adobe acrobat through powershelll. My code looks like this cls …
remote quota assignment. automation.
Having a quota template already created in a FS, and in the same FS there is the user's personal folder created. How can I automate the quota assignment, when the user logs in for the first time in his Workstation (win11) and already has access to his…
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…
WMI connection Problem on Windows10
Hello, In a VMware environment, I installed Windows Server 2016 as the Domain Controller. Additionally, I set up another Windows Server where I configured WMI permissions, granting WMI namespace access to a domain user. Afterward, I applied a GPO with…
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…
impossible to ask microsoft a question through their rubbish Q & A panel - not finding tags
impossible to ask microsoft a question through their rubbish Q & A panel - not finding tags
PowerShell script help required: Confirming computer exists under all domain controllers in a domain?
Hi all. I'm new to PowerShell coding and require assistance if anyone can help me? I work with a domain that has 5 domain controllers. 4 are local, 1 is remote and there is a 20 minute replication delay between the locals and remote. This cannot be…
powershell move adobject with rename
hi! can somebody help. i need to move disabled users to DisabledAccounts OU, but it stops - because already exists $Users = Get-ADUser -Filter 'enabled -eq $false' -searchbase "OU=Company,DC=next,DC=local" -Properties LastLogonDate | where…