Content
How to copy folder/subfolders from source to destination using csv in powershell
Hello, I am a new to Powershell and I have been given a task to copy all folders/subfolders files from source to destination using csv file in powershell. I have managed to pull files from source to one destination but what if I need to copy the same…


How to extract used or free ips for all vnet with ip address space in powershell script
Extract used or free ips for all vnet with subnet and also giving the ip address space for bith vnet by using powershell. and also get the result for extracting output in CSV file.


windows winrm server keeps replying 400 when I try to send encrypted kerberos message over HTTP
To start with, our product is written in Java, we use a custom transport that wraps org.apache.http.client and javax.security.auth to communicate to windows Remote management service. What we have now: firstly we authenticate through kerberos, then send…


How to give random bandwidth value using Windows Powershell?
I want to assign a random bandwidth value to my Windows machine using Powershell only. Does anyone know any commands to do this?


i tried to upgrade win 10 to win 11,but after upgrade my system bit locker was pause
Untitled.png I have a Dell Latitude 3420 laptop that I upgraded from Windows 10 to Windows 11. My laptop's BitLocker paused after I upgraded the operating system. When I right-clicked on the C drive, there was an option like resume BitLocker…


add normal user or users to local administrator group for certain time through GPO and PowerShell
Hi besides adding a normal user to the local administrator manually on his computer. how to add a normal user or users to the local administrator group on their computer for a certain time, where the user or users are automatically removed from the local…
How to get a list of shared links in a SharePoint Online document library? Any PowerShell or other way?
Hi there How to get a list of shared links in a SharePoint Online document library? Any PowerShell or other way? (Shared links when we click on the ellipsis next to a folder/file, and click Share, and type the emails of users) Thanks.


How to access sharepoint pages by authenticate using ADFS token - powershell or c# - On Premises
Hello, I have a requirement to warmup my SharePoint sites using PowerShell. My PowerShell script was running good the way of authentication using FEDAuth cookie using Invoke-webrequest & response. Now ADFS implemented their new changes (Self…


How to install SmbBandwidthLimit in Powershell?
I am trying to install SMB Bandwidth Limit feature but I am getting error, showing "The SMB Bandwidth Limit Feature is not installed". When I am trying to install it using Install-WindowsFeature FS-SMBB , it is showing "The term…


Log Parser + how to use dynamic filelogdate
I am trying to write a query in Log Parser 2.2 to dynamically fill in the LogFileDate field with todays date. I have to do this since W3C format doesn't allow for -iCheckPoint From my research, I can use powershell and the get-date function: E:"Log…


deploy powershell script
Hi All i want to deploy below PowerShell script using sccm on a collection. The script is working fine but how do i know how many servers this script got deployed successfully and on how many servers the script got failed. $registryPath =…


Why can't I use Invoke-WebRequest twice?
Hi All, I need to rely on the first Invoke-WebRequest to piece together a URL for the second Invoke-WebRequest, but the second time is forcibly terminated. My Script: Import-Module -ErrorAction Stop…


Active Directory managed service account clarification
Hello Everyone, I need some clarification and assistance in creating the gMSA that will be used in every IIS server across the Single Forest AD domain. How can I check if My AD Domain is capable of creating this gMSA ? Any assistance would be very much…


How to troubleshoot body of email is blank in Powershell emailing?
This is my code. The email comes through but the body is blank. If I do sendMail("This is a test") it does come through with that text in the body though. $servers =…


Win11 22H2 Broke PINTOHOME GPO Logon Script
I use a script set to run at logon to pin network folders to quick access on user desktops. After this update users that logon no longer see their shared folders. I am guessing it is due to the quick access being changed to "Home" in Windows 11…
How to Get Xpath the href for this url?
Hi All, About https://www.adobe.com/devnet-docs/acrobatetk/tools/ReleaseNotesDC/index.html this url, I need to get the href in the topmost position. Since his href is in a different position every time, how can I fix the href in the top link and get the…


WinRM cannot process the request.
I have local admin right on all remote servers that I'm trying to query the expiring certificate. I'm also able to query this same remote server for their Sql Server version by using Invoke-Sqlcmd -query "select @@version" -ServerInstance…


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. …


some properties are null inside parallel foreach block
For below sample code, $_.lastLogonTimestamp is always Null. Any idea? Most other properties can be retrieved OK. $users=get-aduser -filter * -properties lastLogonTimestamp $users|foreach -parallel{ $_.lastLogonTimestamp # this…
Exporting user last login to M365 or Azure to .CSV file ?
How can I extract and export the last user login time to the M365 portal or Azure AD as .CSV file? is there any PowerShell script or GUI procedure?

