Content
Powershell script to delete particular type of file extension without removing the Folders
Hello All, I have requirement to remove the particular type of files extension from the computer without removing the folders. The files are in various path of the system and i have planned to map the C:/ and also log need to be stored for what are all…


How to fix Add-NetNatStaticMapping error "The process cannot access the file because it is being used by another process" ?
Hello, With a windows server 2019 and a VM in Hyper-V, I have created a virtual switch and NAT : When I try to add a mapping : Add-NetNatStaticMapping -NatName "NAT" -Protocol TCP -ExternalIPAddress "0.0.0.0/24" -ExternalPort…
AVD information
Hi All I am using azure virtual desktop. i have a Host Pool and i want to export all AVDs information to csv file. When i go to Azure Virtual Desktop-->Host Pools-->Pool1. i can export to csv file but i want to get what SKUs they are. i don't see…


How to get NIC Firmware versions
Ive been trying to get the NIC firmware versions of all of our physical servers but i cant seems to find a powershell code or script that can do this. I have tried wmiobject, ciminstance and get-netadapter but no firmware versions. Any suggestions? Any…


Script Returning Empty Values for memberOf
I've got a script that is supposed to pull the memberOf attribute for a list of device names that it pulls from a file, and the script successfully returns the name property. But the memberOf attribute is empty for all devices using the method below.…


Quest Active Directory command for moving Disabled Objects
Hi, I want a Quest Active Directory command for moving Disabled computers from one OU to Another. $SourceOU = "OU=IG Workstations W10,DC=igi,DC=ig,DC=local" $TargetOU = "OU=Disabled Computers,OU=Disabled…


How do I read an xlsx in Azure Data Lake from Powershell
Hi, What would be the best way to read in an xlsx to Powershell from the Azure data lake. I have tried the ImportExcel module however it does not like the https path? Any help appreciated


Adding LPR port (non TCP/IP) via powershell
Hi there I am having an issue with adding an LPR port to my machine via powershell. I need to create the following port correctly pictured below. This results in the correct port looking like this. Running the following script Add-PrinterPort -Name…


How to fix canonical issues with WordPress on App Services
I need to redirect www.example.com to example.com. I have a custom domain with SSL, https enforced. Http requests are being redirected to https and working as expected. Where, or how, do I configure a redirect to get the www.example to redirect to…


Need help to customize the PNP script for Sharepoint Access Report
I Need help to customize the PNP script for Sharepoint Access Report on each user specific access. Like user1 have 3 sites access with view permission . Next user2 on another row with same . I have attach the screenshot shows…


Create excel data to LDIF format using PowerShell
My Requirement is like, we will ask requester to fill an excel sheet where they will put the values in column uiddn(A1 in excel sheet) and nIds(B1 in excel sheet). For Example: uiddn nIds uid=uid12345,cn=abc,cn=def,dc=xyx…


using Azure CLI to change pipeline status Enabled/Disabled
Hi, i tried to use Aure CLI to get a list of a pipelines from one repository on azure devops and i am trying to find out if i can change the status of a pipeline to disabled. We have to do this via some migration bug when all the pipelines would start…


How to restart, logoff and shutdown client computer using PowerShell Remotely from Window Server Active Directory?
I am logged in to the client computer using PowerShell remotely. I am trying to logoff or restart this client computer but nothing working out. Please let me how to properly turn of the client computer using remote PowerShell. #Actve Directory #Window…


Receiving Remote Powershell errors when running enablement script on large list of users in MS Teams
We are in the midst of a migration of users from Cisco Call Manager to Teams. All users exist in the MS Teams Tenant and all we are doing is Enabling a set of users each night, in the neighborhood of +/- 250 per run, with 5 commands per user. At first,…


Testing existence of DWORD in the registry.
Hello, I am trying to test the existence of a registry DWORD (iexplorer.exe) within the registry but I am getting nothing in return... # Test for removal of the key if exists {If ((Get-ItemProperty -Path…


running a cmd within powershell
I am trying to run a cmd file through powershell. The file is located in a folder inside Program Files. I have tried invoke-item -path "c:\program files\myProgram\myfile.cmd" which gave me cmd file not found message. Then, I tried to…


4 keywords - Azure CLI, Azure PowerShell, Azure Cloud Shell and Bash
Hello everyone, Someone please explain why do we have 4 options in Azure cloud for any scripting? Also explain me the differences between the four options as shown below. 1. Azure CLI, 2. Azure PowerShell, 3. Azure Cloud Shell 4. Bash Thanks


Az Hybrid Connection Manager Configuration - Az Powershell Function
Hi All, I am configuring a Azure PowerShell function to communicate with Windows AD using Hybrid Connection Manager. Everything seems to be connected and I was able to run the basic cmdlet "Get-Service"(Code # 1) successfully. Code # 1 # Input…


How to fix The specified network password is not correct. powershell error
I am trying to run a PowerShell script and am being returned with the following error. Is anyone able to help? I have tried to run on the server and on my laptop and still being returned the same error after I authenticate using the domain admin…


Registry Address appends with folder address, throws error ?!
Hi, I have the below code which adds a newKey in the Registry, then adds Property and Value to the Key. $reg = "Registry::\" $keyPath = Join-Path -Path $reg -ChildPath 'HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows…

